Topic RSS
6:03 am
Hi!
First of all, thanks for your plugin. It's the second I use it!
then, I would like to add the total number of pm + the new pm in the sidebar of my theme (outside forum)
And, I would like to add the user badge on the wordpress profile page (outside the forum, too)
How can I do it?
PS: I searched in this forum but didn't found anything…
take a look at the available PM template tags:
http://wiki.simplepressforum.c…..late-tags/
Thanks for your answer.
There is a spelling error on the wiki, on the page
Replace :
with:
you just forget the ?…
then, I have a problem with the :
I don't know how to use it with both on "false"…
And, what is the template tag to show the badge?
12:30 pm
SP Master
Nov 9, 2008
OfflineThanks for the catch on the missing ?
OK – if you return the data instead of display it (i.e., false) then you need to call it and load a variable. So, something like:
$pmdata = sf_pm_tag( false, false );
etc..
?>
$pmdata['count'] will contain the number of unread messages. If -1 then there are not any.
$pmdata['url'] will be a link to users the Inbox.
So you could so something like
$pmdata = sf_pm_tag( false, false );
if ( $pmdata['count'] > 0 )
{
echo 'You have ' . $pmdata['count'] . ' messages. ';
echo 'Visit your <a href="' . $pmdata['url'] . '">Inbox</a>';
}
?>
for example. I think!
Thanks for your help.
At the begin, I didn't understood about the array (I'm not so good on english progmaing words) but now, it's ok!
Now, we need to find how to show the author badge so that it depends from not only number of forum's posts, but the site's posts too…
I hope you understood me!
PS: I think there is something else wrong on the wiki…
In the page: http://wiki.simplepressforum.c…..late-tags/
look for:
I think that there is $linktext and $beforelink and 3 others that are missing…
not, not avatar… The image that are behind the avatar and the author of a meesage on the forum like the "administrator" one for you!
PS: Please read again my last message, there is another wrong thing on the wiki.8
Sorry – I missed the wiki comment. We do know about that actualy and it is noted for change. There is actually a smal chunk of text mssing somewhere.
As to forum rank badges I do not believe we have a tag for that but I will let Mr Papa call that one as I might be wrong.
Most Users Ever Online: 444
Currently Online: chucktho, SPQC
58 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
-Radio-: 1251
Lee H: 606
Luffer: 535
Conrad_Farlow: 485
jim: 478
neon: 263
ovizii: 240
Tal: 240
Member Stats:
Guest Posters: 2616
Members: 7328
Moderators: 1
Admins: 2
Forum Stats:
Groups: 5
Forums: 16
Topics: 10839
Posts: 79118
Newest Members: ordie69, mutha66, jawaulk, mastergalen, ikkiamonrah, OlafKS, js, Anne Wayman, vinzMtl, VikingBrent
Moderators: Brandon C (158)
Administrators: Yellow Swordfish (22131), Mr Papa (23580)
Log In
Register
Home
Add Reply
Add Topic
Quote


Visit 
Privacy Policy



