Community Support Forums — WordPress® ( Users Helping Users ) — 2011-05-14T11:32:24-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=6415 2011-05-14T11:32:24-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6415&p=15023#p15023 <![CDATA[Re: Help! Show profile field groups according to s2 membersh]]>

Statistics: Posted by Cristián Lávaque — May 14th, 2011, 11:32 am


]]>
2011-05-14T10:31:27-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6415&p=15016#p15016 <![CDATA[Re: Help! Show profile field groups according to s2 membersh]]>
All guys I asked so far told me this is a complicated thing to do and I need a buddypress/wordpress developer to do the job ... and the ones I happened to ask about the job said they need something like a month to the get it done

Still ... with almost zero programming knowledge I manage to get this done in one day ...

It's either that something is really wrong with the wide world, or I am a genius ... :ugeek:

But I'd definitely not go for the second one ...

For the curious guys out there, getting the current user (myself) in the profile-loop (and I guess elsewhere as well) can be achieved by using:

bp_is_my_profile()

Statistics: Posted by candy — May 14th, 2011, 10:31 am


]]>
2011-05-13T21:54:05-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6415&p=14995#p14995 <![CDATA[Re: Help! Show profile field groups according to s2 membersh]]>

You're doing good, keep at it, I'm sure you'll find it soon. ;)

Statistics: Posted by Cristián Lávaque — May 13th, 2011, 9:54 pm


]]>
2011-05-13T20:27:07-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6415&p=14989#p14989 <![CDATA[Re: Help! Show profile field groups according to s2 membersh]]>
Any idea how I can identify myself in the profile-loop.php as "the current user" ? I need to differenciate between my own profile and "profile of others"

something like this myabe
<?php if ( bp_has_profile() )&& (I am the current user) ) : ?>

so the difference between <?php if ( bp_has_profile() ) ) : ?> and <?php if ( bp_has_profile() )&& (I am the current user logged in here) ) : ?> should be that in the second case it applies to me personally (so I can see all details about myself but other users cant see all that I can see)

I think that could solve my issue :-)

Statistics: Posted by candy — May 13th, 2011, 8:27 pm


]]>
2011-05-13T11:31:56-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6415&p=14890#p14890 <![CDATA[Re: Help! Show profile field groups according to s2 membersh]]> http://jobs.wordpress.net

Statistics: Posted by Cristián Lávaque — May 13th, 2011, 11:31 am


]]>
2011-05-13T09:47:19-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6415&p=14876#p14876 <![CDATA[Re: Help! Show profile field groups according to s2 membersh]]>
hmm ... I don't think I'll manage that :-(

Can you help me write the conditional please? I do not know the functions, and can't really write code either :-(

smth like

if s2member=level0 show buddypress profile_group_id = 1,2,3
else if s2member=level1 show buddypres profile_group_id=1,2,3,6,7
else profile_group_id =1,2,3,4,5,6,7

??!?

(not even sure how to write that profile_group_id = 1,2,3 to make it get all the groups that I need together)

The trick is also that it must only apply to "others'" profiles, not on his own ...

Help highly appreciated!

Thank you!

Statistics: Posted by candy — May 13th, 2011, 9:47 am


]]>
2011-05-13T08:59:50-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6415&p=14873#p14873 <![CDATA[Re: Help! Show profile field groups according to s2 membersh]]>
You could try using s2Member's advanced conditionals to control what to show. WP Admin -> s2Member -> API / Scripting -> Advanced Conditionals and Advanced Query Conditionals

Statistics: Posted by Cristián Lávaque — May 13th, 2011, 8:59 am


]]>
2011-05-13T05:27:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6415&p=14839#p14839 <![CDATA[Help! Show profile field groups according to s2 membership?]]>
Anyone please help!
I am using s2 with buddypress, and in the user profile (profile loop?) I need to show certain profile fields depending on membership level.

As you know buddypress offers those extended profile fields which we can organize in groups (those profile_group_id) - like basic user information goes to Group 1, Extended user information to Group 2, etc.

What I need to do is when a registered user browses the profiles of others users, in the other user's profile he should see the following:

if logged in user has s2_level0, when he looks at the profile of an other user he should only see that user's information contained in Group 1 (so only the basic information)

if the logged in user has s2_level1 than, when looking in other user's profiles he should see the profile information contained in Group1 & Group 2

and if for ex the logged in user has s2_level2 he should be able to see the full information in the profiles of the other users (so let's say all 5 definded field groups with their respective fields).

Could you guys please help me with this?

Thanks in advance

Statistics: Posted by candy — May 13th, 2011, 5:27 am


]]>