News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Displaying Top Posters on board index?

Started by rhizome, June 01, 2005, 02:15:12 PM

Previous topic - Next topic

rhizome

Hi

In the members bar on the board index, how would you go about adding a list of top posters below it.

I know there's the ssi function for top posters which lists them, but is that the way you would do it?
Sorry, I'm just beginning to get into php...well zero + a tiny bit knowledge at the moment

thanks

Owdy

Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

rhizome

Thanks Owdy for confirming.

I understand how the ssi function can be called when wanting to display info on a web page outside the forum;  but how do you begin to integrate it within main forum page, in boardindex.template.php?
More specifically, so it would display within the members bar, and be formatted like the rest of the text

I've tried searching on this for similar examples to learn from, but couldn't find anything. Any pointers in the right direction would be appreciated.

thanks


Owdy

Just like this:


';
{
require_once('/www/my/path/to/forum/SSI.php');
ssi_topPoster();
}
echo '
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

rhizome

Great. Works fine.
But how would I format the ssi output, so the font looks the same style/size as the text in the members bar? At the moment it seems to ouput as a default font
I know, I'm asking for my hand to to be held...

thanks

Owdy

Try put it in div, like <div style="font-family:....
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Advertisement: