casue there is no clear way of doing this
Support Forum
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/
maybe u should hve a theme creator…easy for guys to make their own and save them to file..even share them with others!!!!!
Did you see my post #17 before you wrote post #18.
And.. as to a theme creator – are you offering?
These 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’
as a paying customer, a creator would be very valuable!!! If we could chare themes…oh my it would be awesome!
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.
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.
ive done this before..just every time a new update comes out it wipes everything away..ya I know lol make my own theme
‘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?
maybe Im missing a comma or soemthing..it just shows my profile for everyone lol
it looks like this:
sp_CustomProfileFieldsDisplay(‘Platform’, $spThisUser->ID);
what would i need to do the change the color of the text as well?
sp_CustomProfileFieldsDisplay(‘Platform’, $spThisUser->ID);