TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

March 29, 2024, 12:34:45 PM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,106
  • Total Topics: 21,213
  • Online today: 358
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 79
  • Total: 80
  • @rjen

Top Posters php block?

Started by snowcrash, May 30, 2005, 12:17:49 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

snowcrash

Hi

I used very basic block (php) for displaying the top 5 posters with the function
ssi_topPoster(5);

When displaying, it lists in a line, with the names like: xxx, yyy, zzz etc

Just wondered how you could instead display the names with their number of posts, for example:
xxx - 450 posts
yyy - 300 posts
zzz - etc

sorry but my scripting skills are almost zero  :(
Any help would be appreciated

snowcrash

#1
I found a hack, which alters the code in ssi.php, to display names(post count) in a line, which will do.
http://www.simplemachines.org/community/index.php?topic=19083.0

It works with ssi_topPoster();
but just wondering if this is the best way of doing things for a TP block

thanks

Bjørn

Well, to get the posts number I would say its good enough - since SSI.php does not do this. So, yes, use that if it works alright. Tp currently doesn't have a function for it, therefore SSI.php must be used anyway.