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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,991
  • Total Topics: 21,323
  • Online today: 545
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 370
  • Total: 370

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.

This website is proudly hosted on Crocweb Cloud Website Hosting.