TinyPortal
Development => Support => Topic started 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.
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:
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.
Are you willing to share this file ?
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?