i know theres allready a statsbox for tinyportal, but it dosent show Categories Or Total Boards,
so heres another ssi code you could add for a block
ssi_boardStats();
This is something we can add or Bloc will have to add?
You can simply use it in a php block.
I tried. it didnt work
oops, yes it did. :idiot2:
Can you link that to the /index.php?action=stats like the other SMF stats box?
i suppose just adding the link in the title for the block will do it.
I will try that.
I like that, are there any other simple ssi calls we can put into a php block?
Lots really...some of them:
ssi_menubar();
ssi_topPoster(xx); ...where xx is number of posters
ssi_topBoards(xx); ....same here
ssi_topTopicsReplies();
ssi_topTopicsViews();
ssi_topPoll();
ssi_todaysBirthdays();
ssi_todaysHolidays();
ssi_todaysEvents();
There are more..but these are the ones not covered by TP functions.
Thanks Bloc. Events and Birthdays are nice to have. How could I make the text smaller to match the rest of the portal?
Try something like this:
echo '<span class="smalltext">';
ssi_topPoster();
echo '</span>';
Bloc, will the birthday ssi not show if there is no b-day on a particular day? What I mean is will it say "today's birthdays...(blank)" or nothing at all...
It says nothing at all for events and birthdays if there arent any. How can I make it say None if there arent any?
Thanks, scotte44. BTW, your suggestion would be a neat trick...
I am messing with birthdays... I'm not using the title just the frame...
echo '<span class="smalltext">';
echo "Today's Birthday(s)<br />";
ssi_todaysBirthdays();
echo '</span>';
That works well... but I would like to know if its possible to use if else... perferrably if there are not any birthdays to show nothing at all, or just to say None would work too but I still perfer the other...
Is it possible to use ssi_boardStats(); in HTML somehow?
If you mean in a static HTML page, you just need to make sure you put in the php start and end tags around the ssi_boardStats() function since it is a php function.
If you mean in a TinyPortal HTML Block, then no. It is php code. You would need a php block.
heh no, I was trying to put it in the news part that only allows html and BBC tags...However it doesn't look like I'll be able to, but thanks :)
TP should support, total download count, total files count
Quote from: SRaven on December 17, 2006, 12:09:17 AM
Is it possible to use ssi_boardStats(); in HTML somehow?
SSI can only be used in Shtml and PHP..
Quote from: Bloc on October 28, 2005, 08:06:38 PM
Try something like this:
echo '<span class="smalltext">';
ssi_topPoster();
echo '</span>';
Thanks for this Bloc, now I figured out how to fit the stats in the Stats Block, cause before thay couldn''t fit in properly