Support Forum

Custom Profile Display – Member List

LA Lachance
Lachance
Member

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!

17 Answers

New Answer

MP Mr Papa
Mr Papa
Member

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)…

LA Lachance
Lachance
Member

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

MP Mr Papa
Mr Papa
Member

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…

LA Lachance
Lachance
Member

How can I make so when logged off (Guests) can see Members in the Members page? They can only see admins.
Thanks

http://dayzquebec.com/forum/members/

MP Mr Papa
Mr Papa
Member

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…

LA Lachance
Lachance
Member

Nice thanks again!

 

I added a custom Usergroup so the Admin is not displayed separatly.

It could be nice to use different groups but the Admins seems to have a display problems or something while using custom Usergroups

 

LA Lachance
Lachance
Member

Is there a custom registration form for Simple press?
Or only the WP one can be used? 

Is there a way I could ask users to edit a ‘Custom profile’ field, so they could add the Steam ID directly when registering?

MP Mr Papa
Mr Papa
Member

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..

LA Lachance
Lachance
Member

Hello, 
Is there a way I could make a custom page but still be able to use Template tags?

MP Mr Papa
Mr Papa
Member

can you elaborate???  what would this custom page do?  and what template tags would you want to use?

most of our simple press template functions (or tags) will work from any wp page…  you may need to do a:

    sp_forum_api_support();

function call to ensure our forum required stuff is loaded…

but if you can expand on your thought, we can probably provide more insight…

LA Lachance
Lachance
Member

I would like to make custom pages with Custom Profile Display tags.

http://titanfallquebec.com/forum/members/

I would like to make 2 different pages for Each (Origin IDs & Xbox IDs) and also being able to remove the forum header of these ‘custom’ pages

MP Mr Papa
Mr Papa
Member

so yes, just like I said… create your custom wp pages…  then add the template tags with the setup function call I gave you…  you will also ensure you have the proper arguments to the template tags based on what you are trying to show…

LA Lachance
Lachance
Member

I just add this to the text field?

sp_forum_api_support();
sp_CustomProfileFieldsDisplay(‘Origin ID’, $spThisMember->user_id );