Support Forum
Hello,
I'm using the Custom Profile Display plugin and I'm trying to make a List within the spMembersView.php with a Custom Field I created.
This is the code I'm using : sp_CustomProfileFieldsDisplay('Origin ID', $spProfileUser->ID);
I also added it to the spProfilePopupShow.php and it seems to be working fine but when I'm adding the same code to the spMembersView.php it's not working as it should.
Here's a screenshot to explain :
[ As you can see on this image, when I hover so the Profile Popup shows up, you can see the Custom field are displaying correctly. The 3 users have their own ID displayed correctly. ]
[ Now on this image, you can see that for each users, it's only displaying the ID of the user logged in. Not the IDs of each users like on the top image as I thought it would do. Why? Can anyone please help me with this? ]
I hope I was clear enough so that you guys can help me with this.
Thanks a lot and awesome job to the Simple Press crew you guys are doing a truly amazing job!
note how you are passing a user id... you are using variable $spProfileUser->ID
that variable is only valid on profile pages... so it wont work on the members view... never tried it on the members view but try using variable $spThisMember->user_id ($spThisMember->ID should be same)...
Visit Cruise Talk Central and Mr Papa's World
Yeaah
$spThisMember->user_id is working, but not $spThisMember->ID !
Thx a lot for this
This is my mod so far, http://dayzquebec.com/forum/
I've been working with many forums soft and I find SimplePress impressive *quake announcer*
Good job
user_id is always the proper one to use... at one time we had ID and thought most objects still had it set up too, but maybe not... should change the codex for profile to use the other too...
glad it worked for you... thanks for the update...
Visit Cruise Talk Central and Mr Papa's World
How can I make so when logged off (Guests) can see Members in the Members page? They can only see admins.
Thanks
In your spMemberView.php template file, change
if (sp_has_member_groups('usergroup', 'id', 'asc', 15, true)) {
to
if (sp_has_member_groups('usergroup', 'id', 'asc', 15, false)) {
the default is to limit members viewing to only usegroups the current user is a member of...
Visit Cruise Talk Central and Mr Papa's World
No, simple press just uses the wp registration process... so grab one of the many wp plugins for adding registration items to the form... as long as the wp plugin adds the profile elements to the user meta data like wp does with profile items, simple press can pull it out like any other profile element..
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)