TinyPortal

Development => Support => Topic started by: nite0859 on December 18, 2006, 12:12:04 AM

Title: Displaying Tinyportal's Stats Box on pages NOT inside the forum ..
Post by: nite0859 on December 18, 2006, 12:12:04 AM

<?php
require_once('/home/----/----/forum.midessa.net/SSI.php');
require_once(
'/home/----/----/forum.midessa.net/Sources/TPortal.php');

TPortal_statsbox();
?>


I was thinking that something like that would work, ... am I missing something ? I want to display the information found inside the "Some stats.." box on a page that is not a part of the forum.
Title: Re: Displaying Tinyportal's Stats Box on pages NOT inside the forum ..
Post by: akulion on December 18, 2006, 05:46:14 AM
Im not too sure since I havent tried this myself, good idea all the same!

Try including TPortalBlocks.template.php file (its located in the default theme folder), thats where the Function statsbox is defined.

If u get it workin please share, since I am thinking of attempting something similar with my html page as well :up:
Title: Re: Displaying Tinyportal's Stats Box on pages NOT inside the forum ..
Post by: JPDeni on December 18, 2006, 11:32:34 AM
I don't think that's going to give you what you want. I would suggest that you look at TPortal.php and see what that file uses to collect the stats you're interested in and create a function that you can add either to SSI.php or to a separate file. I have added a file called "UserFunctions.php" which holds functions that I have written.
Title: Re: Displaying Tinyportal's Stats Box on pages NOT inside the forum ..
Post by: nite0859 on December 20, 2006, 02:22:34 AM
Are you willing to share this file ?
Title: Re: Displaying Tinyportal's Stats Box on pages NOT inside the forum ..
Post by: JPDeni on December 20, 2006, 02:41:20 AM
Sure, but it won't do what you want. :) It's just a collection of functions for various things that I wrote.

What exactly do you want to accomplish?