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 16, 2014 - 1:22 am

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

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

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

Avatar
Lachance
Canada
Member
Free Members
sp_UserOfflineSmall Offline
Mar 16, 2014 - 1:12 pm

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

http://titanfallquebec.com/for.....m/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

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

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

Avatar
Lachance
Canada
Member
Free Members
sp_UserOfflineSmall Offline
Mar 16, 2014 - 3:45 pm

I just add this to the text field?

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

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

text filed?  sorry not sure what you are asking...

if you mean the page content, yes - as long as you have a plugin which allows you to use php in post/page content...  otherwise, you would put it in your custom page template file...

and remember, as I said, you will have to replace $spThisMember with something else to get the user you want...  thats only valid on sp members pages....

Avatar
Lachance
Canada
Member
Free Members
sp_UserOfflineSmall Offline
Mar 16, 2014 - 5:20 pm

This is my custom page http://titanfallquebec.com/origin-ids/

 

I'm using this code :

<?php
sp_forum_api_support();
sp_CustomProfileFieldsDisplay('Origin ID', $origin->user_id );
?>

How can I make so all the users are listed?

Only mine is showing.

Thanks!

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

what is the value of $orign?  is it a valid wp user object?

if you want to list all users, you will need to create the php code to loop through all users in the wp user table...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
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: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625