Tips and Tricks HQ Support Portal › Forums › WP eMember › All the jQuery
- This topic has 4 replies, 2 voices, and was last updated 14 years, 2 months ago by midnightdonkey.
-
AuthorPosts
-
September 3, 2010 at 11:26 pm #1777midnightdonkeyMember
Hi, I just purchased all three of your plugins (well, the main ones, affiliate, member and estore).
I’ve been setting things up and it’s all going ok.. Better than DAP or Wishlist.
One thing I’ve realized though is all the jQuery – it’s conflicting with the jQuery on my theme.
I had to remove the accordian file in the admin area because it was disabling all javascript in the admin area – including dragging widgets etc..
Now I’ve been playing with things on the actual site and I see that the forgot your password jquery isn’t working, and is infact disabling the rest of the jQuery on the site. I’m sure I can find where to remove this script, but then I’m left with a forgot password link that does nothing. Is there a non-jQuery way to do this? I just think a lot of this scripting is overkill. Also, I tried to remove your CSS file too and was surprised by all the hidden elements no longer hidden. I’d much rather have static pages for forgot your password and such – instead of using jQuery.
Here’s the error Firebug is spitting at me –
jQuery(“.forgot_pass_link”).click(function (e) {jQuery(“#mailMsg”).html(“”).hide();jQuery(“#mailForm”).show();jQuery(“.eMember_text_input”).val(“”);})
.overlay is not a function
[Break on this error] closeOnClick: false
I found the script in the emember_password_sender_box.php file and commented it out – which will obvious hurt certain features. But it fixed everything else jQuery that was broken.
Also – I’ve set up a test user, it says I’m logged in, says my membership level, and says my account is active – but when I try to access a category that I set to hide in general protection, I get this message:
Your membership level does not allow you to view rest of content.
I’ve double checked for this membership level that nothing is checked in the protection area – and I have the Globally Allow Access boxes checked. Any idea what’s happening?
Let me know,
Tom
September 4, 2010 at 1:34 am #23904amin007Participant“One thing I’ve realized though is all the jQuery – it’s conflicting with the jQuery on my theme.” – WordPress has nice guideline on how JQuery should be used by plugins and themes. If every plugin and theme developer follows it then why should there be any conflict? We are not going to hold ourselves from developing better looking interfaces for the plugins just because someone out there might not follow the WordPress guidelines and develop a badly coded theme or plugin which might conflict.
If there is an error on our part we will definitely take a look and fix as necessary. All you gotta do is bring it to our attention. You shouldn’t have to comment out code to get it working… if you like we will jump on your test site (if you have any) and take a look at whats happening.
Now onto your content protection issue:
You may have overlooked this help text that you can find below the “Global Access To” field:
“Globally turn on or off access to content (eg. posts, pages, comments) for this membership level here. Checking these checkboxes do not give the member access to all content. It simply allows you to customize the content protection via the Manage Content Protection menu”
So just by checking the “Global Access To” checkboxes won’t give a user access. It enables the ability to customize the contect protection (it come in more handy when you want to quickly disable all access for a particular membership in one hit). Please browse to the “Manage Content Protection” menu and allow access to the content in question for this membership level and let me know what you find.
Yes, I agree that the field name is not the best but I am still trying to find a compact and good name for it. So if you have a suggestion please throw it in
September 4, 2010 at 2:11 am #23905midnightdonkeyMemberThanks for replying so quickly – and sorry if I came off a little rude, wasn’t my intention.
I notice what I did wrong with the content protection issue – it’s working now : )
Do you have an email we can communicate through? It’d be great if you could take a look for me.
September 5, 2010 at 12:52 am #23906amin007ParticipantSent you an email.
September 7, 2010 at 9:02 pm #23907midnightdonkeyMemberHi, thanks for working with me!
I fixed the confliction with jQuery Tabs – maybe you can let me know if this still achieves what the plugin wants.
I simply replaced this line in wp_eMember1.php:
wp_enqueue_script(‘jquery.datepicker’,WP_EMEMBER_URL.’/js/jquery-ui-1.7.2.custom.min.js’,array(‘jquery-ui-core’));
with..
wp_enqueue_script(‘jquery-ui-core’);
Also – I had to remove the accordian.js file, as it was also conflicting with jQuery Tabs.
-
AuthorPosts
- You must be logged in to reply to this topic.