TinyPortal
Development => Support => Topic started by: snowcrash on May 30, 2005, 12:17:49 AM
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
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
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.