Support Forum

Adding custom options

34 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

What? Making your own SP theme?

That’s what this codex page is all about:

http://codex.simple-press.com/codex/themes/theme-basics/creating-a-theme/

DE Dre Erwin
Dre Erwin
Member

maybe u should hve a theme creator…easy for guys to make their own and save them to file..even share them with others!!!!!

DE Dre Erwin
Dre Erwin
Member

$spThisUser->ID

 

changing that didnt do anything

YS Yellow Swordfish
Yellow Swordfish
Member

Did you see my post #17 before you wrote post #18.

And.. as to a theme creator – are you offering? smileThese things don’t happen by themselves and can take a lot of time and effort to get to work – often for little benefit. Making you own theme is so easy why would you need a ‘creator’

DE Dre Erwin
Dre Erwin
Member

as a paying customer, a creator would be very valuable!!!   If we could chare themes…oh my it would be awesome!

YS Yellow Swordfish
Yellow Swordfish
Member

Dre Erwin said
$spThisUser->ID doesnt work

OK – so where are you puttiung this code? What does it do?  What is it for?

$spThisUser=>ID returns the user ID of the currently logged in user. Depending on where you are using it you may need to make it global first.

 

DE Dre Erwin
Dre Erwin
Member

echo ‘<div>’;
echo ‘<p>Platform:</p>’;
echo ‘</div>’;
echo ‘<div></div>’;
echo ‘<div>’;
echo ‘<p>’;
sp_CustomProfileFieldsDisplay(‘Platform’, $userid=0);
echo ‘</p>’;
echo ‘</div>’;
echo ‘<div>’;
echo ‘<p>Gamertag:</p>’;
echo ‘</div>’;
echo ‘<div></div>’;
echo ‘<div>’;
echo ‘<p>’;
sp_CustomProfileFieldsDisplay(‘Gamertag’, $userid=0);
echo ‘</p>’;
echo ‘</div>’;

 

I asked what I needed to do becasue this is the script I am using in the forum view and I asked and was told to replace user id with $spThisUser->ID

 

but that didnt do anything.  I want all users to be able to display their gamertags and platform in their profile while viewing topics and threads.

DE Dre Erwin
Dre Erwin
Member

ive done this before..just every time a new update comes out it wipes everything away..ya I know lol make my own theme

YS Yellow Swordfish
Yellow Swordfish
Member

‘Forum View’? I will assume by that you mean the spForumView.php theme template.

Well – to get the currently logged in userrs ID you need to use

$spThisUser->ID

Is this what you want? The currently logged in user?

As I said – you may have to declare the global first although you should not have to,

global $spThisUser;

What am I missing?

DE Dre Erwin
Dre Erwin
Member

maybe Im missing a comma or soemthing..it just shows my profile for everyone lol

DE Dre Erwin
Dre Erwin
Member

it looks like this:

 

sp_CustomProfileFieldsDisplay(‘Platform’, $spThisUser->ID);

DE Dre Erwin
Dre Erwin
Member

what would i need to do the change the color of the text as well?

 

sp_CustomProfileFieldsDisplay(‘Platform’, $spThisUser->ID);