Showing Total Members on external site

Started by Tails07, September 18, 2005, 06:39:13 AM

Previous topic - Next topic

Tails07

I was wondering if anyone had a php code to show the Total Members bit on an external site and update every time a new member registered.


Saleh

look in SSI.php file in the forum root dir for a function called ssi_boardStats() which will give you something like:
Total Members: 26486
Total Posts: 340267
Total Topics: 39557
Total Categories: 9
Total Boards: 67


call the function like:


require_once 'path/to/SSI.php';

$stats = ssi_boardStats();

echo
'Total Members:', $stats['members'];

We don't need a reason to help people

dtm.exe

Quote from: Saleh on September 18, 2005, 08:50:04 AM
look in SSI.php file in the forum root dir for a function called ssi_boardStats() which will give you something like:
Total Members: 26486
Total Posts: 340267
Total Topics: 39557
Total Categories: 9
Total Boards: 67


call the function like:


require_once 'path/to/SSI.php';

$stats = ssi_boardStats();

echo
'Total Members:', $stats['members'];


That would only work if it's on the same website, not an external website.

Saleh

yeah, I thought he meant external as outside the forum directory! :-\
man, I should read and think more carefully!

We don't need a reason to help people

Tails07

yeh I ment outside the forum directory.

Thanks for your help

Advertisement: