Community Support Forums — WordPress® ( Users Helping Users ) — 2011-06-27T22:59:20-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=10277 2011-06-27T22:59:20-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10277&p=21840#p21840 <![CDATA[Re: current_user_access_label returns incorrect result]]> The problem on your installation was related to a corruption of your s2Member Roles/Capabilities. It appears that you are running the User Role Editor plugin, and that you, or someone working with you modified the s2Member Roles in ways that rendered them unstable. I've restored your s2Member Roles/Capabilities for you and everything is working fine now. Please let us know if you continue to have trouble.

Statistics: Posted by Jason Caldwell — June 27th, 2011, 10:59 pm


]]>
2011-06-25T17:34:02-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10277&p=21719#p21719 <![CDATA[Re: current_user_access_label returns incorrect result]]> Statistics: Posted by Jason Caldwell — June 25th, 2011, 5:34 pm


]]>
2011-06-25T10:07:01-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10277&p=21691#p21691 <![CDATA[Re: current_user_access_label returns incorrect result]]>
Jim

Statistics: Posted by doctorproctor — June 25th, 2011, 10:07 am


]]>
2011-06-25T02:33:36-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10277&p=21678#p21678 <![CDATA[Re: current_user_access_label returns incorrect result]]> Well, you've really got me puzzled on this one. I have no response to this yet, and I've been unable to reproduce it so far on my end. Is it possible for you to send me a Dashboard login for that installation so I an see this for myself? If so, please use this private contact form: http://www.s2member.com/contact/

Statistics: Posted by Jason Caldwell — June 25th, 2011, 2:33 am


]]>
2011-06-24T08:23:21-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10277&p=21601#p21601 <![CDATA[Re: current_user_access_label returns incorrect result]]> Statistics: Posted by doctorproctor — June 24th, 2011, 8:23 am


]]>
2011-06-24T00:01:56-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10277&p=21572#p21572 <![CDATA[Re: current_user_access_label returns incorrect result]]> Thanks for reporting this important issue.
doctorproctor wrote:
Interesting, the php returns the same level 4 label. Do ask; thanks. Is anyone else experiencing this behavior? I'll try to create a few test users and verify the problem as well.
Yes, very interesting. I've been unable to reproduce this so far. Can you attach some screenshots of your code in it's entirety ( i.e. as it appears in your WordPress editor )? We'll be happy to take a closer look for you. Also, screenshots of your s2Member ->General Options -> Membership Levels/Labels as well please.

Statistics: Posted by Jason Caldwell — June 24th, 2011, 12:01 am


]]>
2011-06-23T23:35:59-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10277&p=21569#p21569 <![CDATA[Re: current_user_access_label returns incorrect result]]> Statistics: Posted by doctorproctor — June 23rd, 2011, 11:35 pm


]]>
2011-06-23T23:32:43-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10277&p=21568#p21568 <![CDATA[Re: current_user_access_label returns incorrect result]]> Statistics: Posted by Cristián Lávaque — June 23rd, 2011, 11:32 pm


]]>
2011-06-23T23:30:20-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10277&p=21567#p21567 <![CDATA[Re: current_user_access_label returns incorrect result]]> WP Admin -> s2Member -> General Options -> Membership Levels/Labels

Statistics: Posted by Cristián Lávaque — June 23rd, 2011, 11:30 pm


]]>
2011-06-23T23:19:27-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10277&p=21563#p21563 <![CDATA[Re: current_user_access_label returns incorrect result]]>
Regards,

Jim

Statistics: Posted by doctorproctor — June 23rd, 2011, 11:19 pm


]]>
2011-06-23T23:14:09-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10277&p=21562#p21562 <![CDATA[Re: current_user_access_label returns incorrect result]]>
Code:
<?php echo get_user_field('s2member_access_label', $user_id); ?>

Statistics: Posted by Cristián Lávaque — June 23rd, 2011, 11:14 pm


]]>
2011-06-23T22:51:37-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10277&p=21561#p21561 <![CDATA[Re: current_user_access_label returns incorrect result]]>
Code:
Your membership expires on <?php echo date('l F jS, Y', get_user_option('wp_s2member_auto_eot_time', $user_id)); ?>.


and it works fine for the user, so it's only the user access label that's not working. It's true that I'm logged in as admin at the same time I'm querying membership status on a different browser for the user, but it sounds remote that the admin status is being returned for this variable only.

Thanks for your quick reply!

Jim

Statistics: Posted by doctorproctor — June 23rd, 2011, 10:51 pm


]]>
2011-06-23T22:42:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10277&p=21560#p21560 <![CDATA[Re: current_user_access_label returns incorrect result]]> Statistics: Posted by Cristián Lávaque — June 23rd, 2011, 10:42 pm


]]>
2011-06-23T22:38:25-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10277&p=21558#p21558 <![CDATA[current_user_access_label returns incorrect result]]>
You currently have [s2Get constant="S2MEMBER_CURRENT_USER_ACCESS_LABEL" /] status.

What I've discovered upon testing, however, is that whether the user level is 1, 2, 3, or 4, the label returned is always that which corresponds to level 4. Preceding this statement I have the shortcode:

Greetings, [s2Get constant="S2MEMBER_CURRENT_USER_DISPLAY_NAME" /]!

which returns the correct result, so I'm sure s2Member is accessing the correct record for a given user.

Can you please help me diagnose? I'd sure appreciate; thanks.

Jim P.

Statistics: Posted by doctorproctor — June 23rd, 2011, 10:38 pm


]]>