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,973
  • Latest: NonStop
Stats
  • Total Posts: 196,231
  • Total Topics: 21,353
  • Online today: 391
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 347
  • Total: 347

Displaying Tinyportal's Stats Box on pages NOT inside the forum ..

Started by nite0859, December 18, 2006, 12:12:04 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nite0859


<?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.

akulion

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:

JPDeni

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.


JPDeni

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?

This website is proudly hosted on Crocweb Cloud Website Hosting.