A A A

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Adding pm on my wp themes
Feb 22, 2010
6:03 am
NotAlame
Guest

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…Cry

Feb 22, 2010
8:09 am

SP Master
Forum Posts: 22131
Member Since:
Nov 9, 2008
Offline

take a look at the available PM template tags:
http://wiki.simplepressforum.c…..late-tags/

Yellow Swordfish
Feb 22, 2010
11:43 am
Member
Forum Posts: 13
Member Since:
Dec 31, 2008
Offline

Thanks for your answer.

There is a spelling error on the wiki, on the page

Replace :

<php sf_sendpm_tag(32, '%%Send this User a PM'); ?>

with:

<?php sf_sendpm_tag(32, '%%Send this User a PM'); ?>

you just forget the ?…

then, I have a problem with the :

<?php sf_pm_tag(false, false);?>

I don't know how to use it with both on "false"…

And, what is the template tag to show the badge?

 

Feb 22, 2010
12:30 pm

SP Master
Forum Posts: 22131
Member Since:
Nov 9, 2008
Offline

Thanks 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:

<?php
$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

<?php
$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!

 

Yellow Swordfish
Feb 22, 2010
2:14 pm
Member
Forum Posts: 13
Member Since:
Dec 31, 2008
Offline

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:

sf_forum_dropdown($forum_ids);

I think that there is $linktext and $beforelink and 3 others that are missing…

 

 

 

Feb 22, 2010
2:48 pm

SP Master
Forum Posts: 22131
Member Since:
Nov 9, 2008
Offline

Do you mean avatar? If so go back to the wiki as there are tags for that as well.

Yellow Swordfish
Feb 22, 2010
2:53 pm
Member
Forum Posts: 13
Member Since:
Dec 31, 2008
Offline

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

Feb 22, 2010
3:21 pm

SP Master
Forum Posts: 22131
Member Since:
Nov 9, 2008
Offline

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.

Yellow Swordfish
Feb 23, 2010
11:02 am
Member
Forum Posts: 13
Member Since:
Dec 31, 2008
Offline

ok, I'll wait…

Thanks for your help!

Feb 23, 2010
12:47 pm

SP Master
Forum Posts: 23587
Member Since:
Dec 10, 2006
Offline

No we don't have a template tag for displaying ranks or badges outside of the forum. I can open a ticket for consideration though.

Forum Timezone: America/Chicago

Most Users Ever Online: 444

Currently Online: chucktho, SPQC
58 Guest(s)

Currently Browsing this Page:
1 Guest(s)

See All Online Activity

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

Moderators: Brandon C (158)

Administrators: Yellow Swordfish (22131), Mr Papa (23580)