Conflict with J&E and Javo Directory

Hi,

The plugin has been having some serious conflicts with the theme I have running and, needless to say, I won't be changing my theme.

I've eliminated all other issues - other plugin conflicts etc. Even the WPMU dashboard works ok and causes no issues. But the J&E plugin (particularly, the job upload form) does not function with my theme (works ok with twentyfourteen). Not only that, but some of my theme's features completely stop working when J&E is activated.

I'm using the Javo Directory theme. On the job upload form, I'll see spinning circles at the right end of each form element (suggesting it's waiting on something to load). Additionally, the date picker does not come up when you click in that field, the "add image" button does nothing and the "publish" submit button also does not function.

On the other side, my grid/masonry features from the theme will not display when J&E is activated.

Comments 39

It does sound like there is definitely some scripts conflicting. However, it would really help if you could provide a link to a publicly accessible page where we can inspect stuff in browser console.

If that is not possible, we would need a copy of your theme to test with. As it is a premium theme (and I personally do not have a copy of it), can you please post a copy of your theme to Dropbox, or any other file sharing service that you may use.

I hope you are well today and many thanks for sharing the theme, which help me debug quickly :slight_smile:

I'm using the Javo Directory theme. On the job upload form, I'll see spinning circles at the right end of each form element (suggesting it's waiting on something to load). Additionally, the date picker does not come up when you click in that field, the "add image" button does nothing and the "publish" submit button also does not function.

This issue is come from the theme, they have an error javascript block in common.js, and that start from here, line 109 file common.jsvar scrollTop = this.$window.scrollTop();
The variable this.$window is not defined, so it's null, and we call a function from a null variable => error.
For fix that, we need to update tovar scrollTop = $(window).scrollTop();
That will fix the form, also the scroll function of the theme :slight_smile:

On the other side, my grid/masonry features from the theme will not display when J&E is activated.

I do a quick test with the theme and J&E, the place I think it is masony is on homepage, but that still work for me. Do you have any links for this issue?

1. When using mobile browser, submenus of the main menu will not open up when you click on the top menu item (e.g. CATEGORIES, WRITE A REVIEW, ASK AN EXPERT)

2. Date picker in the job form pops up the calendar but I'm unable to select a date. Nothing happens when you click or tap on a date. This happens in desktop and mobile browsing.

3. The login modal no longer works. It flashes and then disappears.

Not an issue, but would love if you could provide me with the PHP code to grab the number of jobs a user has submitted. Was planning to dig around for it but hopefully you can make life easier for me. Will use it in each user's dashboard.

1. When using mobile browser, submenus of the main menu will not open up when you click on the top menu item (e.g. CATEGORIES, WRITE A REVIEW, ASK AN EXPERT)

As you can see, when in full site, when you click, it will show a small form, this not the behaviour of J&E, it seem your site issue when working with mobile, I think better we should check with the theme supporter.

2. Date picker in the job form pops up the calendar but I'm unable to select a date. Nothing happens when you click or tap on a date. This happens in desktop and mobile browsing.

I want to check this on your site, just for sure, I need an admin account, so that will help me easier to trace things. Can you please send in:

- Mark to my attention - ATTN: Hoang Ngo
- Link back to this thread
- Include admin/network access
- Include FTP (in case I need to check some code)
- Include any relevant URLS for your site

On the contact form, select "I have a different question", this ensures it comes through and gets assigned to me.

Thanks!!.

3. The login modal no longer works. It flashes and then disappears.

It might be a conflict, can you please send me the link?

Not an issue, but would love if you could provide me with the PHP code to grab the number of jobs a user has submitted. Was planning to dig around for it but hopefully you can make life easier for me. Will use it in each user's dashboard.

Here you goJobsExperts_Core_Models_Job::instance()->get_all()
This will query all the jobs model, you can check the class JobsExperts_Core_Models_Job for more information about the properties.

If you have any issues please don't hesitate to let us know so we can assist

Based on your email, I was actually expecting to see a response here but nothing seems to have been posted.

Were you able to reproduce issue with sub-menus on mobile/touchscreen devices?

As it relates to the modal, I see where the "toggle-data" attribute is used to call it. Can you give an example of how code is used to call that element instead. I will code it in myself, I just need an example as a starting point.

Yep, I can also confirm that the fix in common.js proposed by @Hoang Ngo does indeed resolve the issue with the loading spinner on the input fields... and the popup forms on the add-an-expert page too. :slight_smile:

I also see the issue with not being able to pick a date on the add-a-job page. However, the menu font is not getting mysteriously changed on my test install.

That does appear to be a local issue.

So let's see what Hoang has to say when he gets back online, shall we?

No Patrick, the fix for common.js no longer resolves ANY of the issues. They made changes to that file in the latest version. I uploaded a copy of the new theme version to Dropbox and shared with Hoang. Problems are now being passed off as a local issue or a theme issue. I'm going to ask you guys not to pass the buck. None of these issues were there prior to the installation of J&E. None of the other plugins cause these or any similar issues.

As for the reference to the data toggle being used to call the login modal, from everything I've read thus far online, this is generally how it's done, so I cannot and will not fault the theme developers for that issue.

I would hope that actually fixing these issues would make the J&E plugin better and also improve the knowledgebase of WPMU. I'm getting the sense that rather than actually correct problems, the aim is to find fault elsewhere.

As things stand, the Jobs & Experts plugin and the underlying code is the problem and I'm still hoping that yourself, @Hoang Ngo and others will rectify this.

As for the reference to the data toggle being used to call the login modal, from everything I've read thus far online, this is generally how it's done, so I cannot and will not fault the theme developers for that issue.

Actually, this issue is well reported. Usually we prefer to use the html data-attributes, because it very convenience. But, in wordpress screnario, themes/plugins can include every script file, and when we dev that, we need to prevent the conflict in minimum.

Toggle is on and off, so your theme include bootstrap.js, and when you click, that is on. But if both your theme, and J&E included bootstrap.js, so if you are using toggle, a click will be on and then, immediately off. I don't pass the ball, this is a potential issue and I believe the theme developer will glad to know it, as it an improvement too.

I also got and read your feedback very carefully, and I do appreciate that :smiley:

For now, the issue can be prevent, I will remove the include bootstrap, so the modal will work fine again (that why I expect the FTP access), but if any other plugins having bootstrap there again, the issue surely will come up.

Also, just sent you an email for clarify the FTP, I will put your thread in priority for now, so we will resolve it quickly :slight_smile:.

Hey @Hoang Ngo, appreciate the effort. Unfortunately, the new update has taken us back to square one. If I have to choose, I prefer to have the mobile menus and modals working and let the user type in the date. So please, revert to previous update.

I'll also speak with the theme developers to hear what their suggestions are.

How do you rate me?

Thank you for rating your experience!

We’re thrilled to hear you had a great experience with . Would you like to leave a comment about your experience?
Thanks for voting on your experience with , we’d love to get some feedback please.
Ohh no! We’re really sorry to hear you didn’t have a pleasant experience with , we’re always looking at how we can improve and would appreciate you provide some further feedback here please.
Type your feedback here

it's great that you had a positive one. Based on your experience in this ticket would you please be kind enough to rate us externally on: