Page 1 of 1

Website - Member Statistics

Posted: Thu Jul 10, 2008 2:58 am
by Jaggeh
Okay well if you read my other topic (MySQL + PHP - Website/Forum Integration) you will know I'm integrating my whole website.

Well I just added a Statistics area:

Code: Select all

 
<?php
$stats = $SDK->get_board_stats();
$onlinemembers = $SDK->list_online_members(1);
foreach ($onlinemembers as $member) {
if ($return) {
$return .= ", ";
}
$return .= '<a href="'.$SDK->ips->vars[board_url].'/index.php?showuser='.$member['id'].'">'.$member['prefix'].$member['name'].$member['suffix'].'</a>';
}
$return = "Online members:<br /><br />".$return."
<br />
<br />
Posts: <b>{$stats['total_replies']}</b><br />
Members: <b>{$stats['mem_count']}</b><br >
Newest member: <b>{$stats['last_mem_name']}</b><br />
Most online: <b> {$stats['most_count']}</b> on <br /><b>{$SDK->sdk_date($stats['most_date'],'M j Y, G:i')}</b><br />
";
echo $return;
?>
 
When Logged In It Looks Like This:
Image

My problem here is that when you're logged in it doesn't show other online users, but when you're not logged in, you can see all logged in users.

Does anyone know a way to fix this problem? Please and Thank You.

Re: Website - Member Statistics

Posted: Thu Jul 10, 2008 4:02 am
by onion2k
Sounds like a bug in $SDK, whatever that is.

Re: Website - Member Statistics

Posted: Thu Jul 10, 2008 4:42 am
by Jaggeh
Would this make a differnece?

Code: Select all

<?php require_once('ipbsdk/ipbsdk_class.inc.php');
$SDK =& new IPBSDK();
$SDK->sdk_info();
?>
 

Re: Website - Member Statistics

Posted: Thu Jul 10, 2008 4:48 am
by onion2k
You'd need to ask the person who wrote that class. Or examine it for bugs yourself.

Also, could you remove that signature picture please. It's too big. The forum rules prohibit large images.

Re: Website - Member Statistics

Posted: Thu Jul 10, 2008 5:20 am
by Jaggeh
I tried something else and it still doesn't work.

Re: Website - Member Statistics

Posted: Thu Jul 10, 2008 2:59 pm
by Jaggeh
UGH....It's still only displaying yourself when logged in.

Re: Website - Member Statistics

Posted: Thu Jul 10, 2008 3:44 pm
by WebbieDave
You will need to contact the authors of the class library you are using for support in this matter.

Re: Website - Member Statistics

Posted: Fri Jul 11, 2008 9:47 am
by Jaggeh
Here's the Code for the $sdk

Code: Select all

 
<?php
 
$root_path = '*not_shown_for_privacy_reasons*htdocs/forums';
 
$board_url = 'http://www.gingrichgames.co.cc/forums';
 
$sdklang = 'en';
 
$allow_caching = '1';
 
?>
 

And the other one is:
http://www.gingrichgames.co.cc/uploads/ ... ss.inc.txt