TinyPortal

Development => Block Codes => Topic started by: rebelrose on September 16, 2006, 09:49:42 PM

Title: How to put Board Stats into different blocks
Post by: rebelrose on September 16, 2006, 09:49:42 PM
Is there a way to break down the Board Stats block into individual blocks showing the icons and the list as it shows on the TP Board Stats block?

One block showing members info with icon, and so on per block.
Title: Re: How to put Board Stats into different blocks
Post by: rebelrose on September 24, 2006, 09:28:42 AM
Never mind I got it
Title: Re: How to put Board Stats into different blocks
Post by: Techdomain on September 24, 2006, 09:30:57 AM
how? ???
Title: Re: How to put Board Stats into different blocks
Post by: rebelrose on September 24, 2006, 09:55:12 AM
If you don't want to use the TP stats box you can make your own like this:

Php Box


echo '<a href="'.$scripturl.'?action=stats"><img src="'.$settings['actual_images_url'].'/icons/info.gif'.'"  /> <b>'.$txt[645].'</b></a><br>
<span class="smalltext">';
ssi_boardStats();
echo '</span>';

Title: Re: How to put Board Stats into different blocks
Post by: Techdomain on September 24, 2006, 10:29:28 AM
Thanks Rebel. or is that Rose... Either way, thanks :)
Title: Re: How to put Board Stats into different blocks
Post by: rebelrose on September 24, 2006, 05:02:16 PM
your welcome, the real thanks goes to Thurnok, I used code he gave me for another block and changed it for this one.

If you don't want the image use this:


echo '
<span class="smalltext">';
ssi_boardStats();
echo '</span>';