Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Troubleshooting › Nested Shortcode (Not Resolved by editing wp_eMember1.php)
- This topic has 8 replies, 3 voices, and was last updated 12 years, 9 months ago by admin.
-
AuthorPosts
-
February 13, 2012 at 7:36 pm #5548reepsyMember
I have a situation with two wp-eMember shortcodes nested, where the second one is displaying itself rather than it’s output. There is another shortcode within the outer wp-eMember shortcode that is working properly after modifying wp_eMember1.php. But two wp_eMember shortcodes together are not. Here is the code in question:
[emember_protected for=2 do_not_show_restricted_msg=1]
You are not yet a Member
[sf_become_member_link]
Note: Please use the email address [wp_eMember_user_details user_info=”email”] when making your payment at Paypal.
[/emember_protected]
So this member is at the free level, and I am providing a link to PayPal to become a paid member. The [sf_become_member_link] creates the button to do that, and works fine. However, if they don’t use the email associated with their free account when they get to PayPal, they will create a new account on my site, rather than upgrade the existing one. So I am adding a note there to remind them of which email we have on record for them. But that shortcode is not working. The shortcode tag itself is all that comes through. I can confirm that I changed wp_eMember1.php to: add_filter(‘the_content’, ‘do_shortcode’), which is the only reason my shortcode for the PayPal button is working. Cannot I not nest the wp_eMember_user_details within a protect block?
Also, is there a better way to take a free user to PayPal with the email I have on file for them? Can it just be part of the button itself? I know they can still change it over at PayPal, but I don’t see anyway to make it bullet-proof.
February 13, 2012 at 10:44 pm #41906PeterMemberHi,
You mention that you have “two wp-eMember shortcodes nested, where the second one is displaying itself rather than it’s output”.
I can only see one eMember shortcode, ie, [wp_eMember_user_details user_info=”email”]
This one doesn’t appear to be from eMember:
[sf_become_member_link]
February 13, 2012 at 11:06 pm #41907reepsyMemberPeter,
Yes, [sf_become_member_link] is mine, and it is working properly. This one:
[wp_eMember_user_details user_info=”email”]
is also nested, from wp-eMember, and is not working. It is simply displaying that text, rather than generating the user’s email address.
February 14, 2012 at 1:57 am #41908adminKeymasterWhat version of eMember are you using?
February 14, 2012 at 2:05 am #41909reepsyMemberAccording to wp_eMember.php:
Plugin Name: WP eMember
Version: v7.4.3
February 14, 2012 at 2:49 am #41910adminKeymasterThanks, We recently added the “user details” shortcode so it may not be in the version that you are using. Please try load a new build of the plugin from here:
February 14, 2012 at 3:10 am #41911reepsyMemberI followed that link, and the link sent to me in email resulted in a download with the same version # (7.4.3). At least that’s what it says in wp_eMember.php
February 14, 2012 at 6:32 pm #41912reepsyMemberAny follow up here? I really don’t want to install the same version over what I have now.
February 14, 2012 at 11:59 pm #41913adminKeymasterIt is impossible to download v7.4.3 now from the link I gave you above. You most likely had an older copy sitting in the folder that you downloaded to. If you download eMember plugin from that link you will get v7.6.x
-
AuthorPosts
- You must be logged in to reply to this topic.