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,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 211
  • Total: 212
  • @rjen

Top posters

Started by JPDeni, September 20, 2006, 01:27:56 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

IchBin

What kind of block are you using?

Tron420

no html seems to work in my bbc-html blocks

IchBin

You're supposed to put this code in a phpbox.

Tron420


Tron420

great it works now. thx
why doesnt the html work in a bbc-html block?
all that shows up is the code

G6Cad

Please, do NOT crosspost the same questions, it's hard for us to keep track on things if you crosspost.

Tron420


deniz

i dont want specific time frame with start and end time.

is it possible top posters, topics for "last 7 days"

deniz

i did top posters for last 7 days:

change:

$starttime = time() - 604800;
$endtime = time ();


Shadow

This code should work for you ok.  I am using this code on my forum too.  This code isn't mine at all. RebelRose put the code in for me..SO thank's to RebelRose

Use this block (phpbox) for this code

$numberofposters = 10; // You can change this to however many you want


require_once "SSI.php";
$top_posters = ssi_topPoster($numberofposters, "return");

foreach ($top_posters as $key => $value)
{
  echo $top_posters[$key]['link'] , ' (', $top_posters[$key]['posts'] , ')<br />';
}


This code last forever...

This website is proudly hosted on Crocweb Cloud Website Hosting.