Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
themes-topic
Custom Profile Display – Member List
Avatar
Lachance
Canada
Member
Free Members
sp_UserOfflineSmall Offline
Mar 2, 2014 - 8:48 pm

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

Image Enlarger

[ 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? ]

Image Enlarger

 

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!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 2, 2014 - 9:04 pm

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

Avatar
Lachance
Canada
Member
Free Members
sp_UserOfflineSmall Offline
Mar 2, 2014 - 9:51 pm

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

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 3, 2014 - 1:00 am

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

Avatar
Lachance
Canada
Member
Free Members
sp_UserOfflineSmall Offline
Mar 3, 2014 - 5:09 pm

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/

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 3, 2014 - 9:20 pm

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

Avatar
Lachance
Canada
Member
Free Members
sp_UserOfflineSmall Offline
Mar 3, 2014 - 10:20 pm

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

 

Image Enlarger

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 3, 2014 - 11:37 pm

No problem.. . Glad to help....

Avatar
Lachance
Canada
Member
Free Members
sp_UserOfflineSmall Offline
Mar 4, 2014 - 10:34 pm

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?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 4, 2014 - 10:57 pm

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

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626