Support Forum
Josh Thomas said
At the moment, that seems to be the fix! Thank you both for addressing this promptly.
Good deal. You could probably use that first example by Mr. Papa if you wanted to put the logged in user's rank next to his Avatar at the top too.
It would be nice if we could add the CP ranks info to the codex for others. I don't really have the time right now, I am doing another Codex project, but we are always looking for volunteers.
correct. user id...
and you dont want to check logged in, but whether a user or not.... so
if (!empty($spThisPostUser->ID)) echo 'Rank:'.cp_module_ranks_getRank($spThisPostUser->ID);
if you dont have guest posters, you eliminate the check...
Visit Cruise Talk Central and Mr Papa's World
Josh Thomas said Everything else in this section is centered. How do I center this?
Cool,
I have not looked at the CSS used by CP and it's rankings but you could try using the SP centering class.
Something like:
echo '<div class="spCenter">'; echo 'Rank:'.cp_module_ranks_getRank($spThisPostUser->ID); echo '</div>';
If that doesn't work I would probably need to see the actual site for recommendation.
do you have a link to an example? easier to examine css and give you change... firefox with firebug is great for this kind of work...
Visit Cruise Talk Central and Mr Papa's World
good news. thanks for the update!
Visit Cruise Talk Central and Mr Papa's World