TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,026
  • Total Topics: 21,333
  • Online today: 916
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 273
  • Total: 274
  • lurkalot

[Block] users in arcade

Started by wdm2005, August 18, 2008, 04:25:01 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

wdm2005

this is part of somthing a hack im working on for smf arcade see a demo on the foru m info center


http://sleepy-arcade.ath.cx/dev/index.php?action=forum

and here
at bottom

http://sleepy-arcade.ath.cx/dev/index.php?action=arcade


see a demo of the tp block here
http://www.ridersplace.net/home/
left hand side users in arcade

right to the snippet lol

put this code in a php block

global $scripturl, $txt, $context, $db_prefix,$settings;
// heres the bullits duck lol
    $bullet2 = '<img src="'.$settings['images_url'].'/TPdivider2.gif" alt="" border="0" style="margin:0 2px 0 0;" />';
   //its ok now bullits have flown by stand up again lol
               require("SSI.php");
               $online = ssi_whosOnline('array');
      foreach($online['users'] as $user){
 

   $result = db_query("
      SELECT url
      FROM {$db_prefix}log_online
      WHERE ID_MEMBER = {$user['id']}",__FILE__, __LINE__);
     
      $checkit = mysql_fetch_assoc($result);
      $data = @unserialize($checkit['url']);
         if(isset($data['action']) && $data['action'] == 'arcade')      echo $bullet2 , $user['hidden'] ? '<i>' . $user['link'] . '</i>' : $user['link'];  echo ' ';
      }

unset($data);


can be added to forum info center aswell or tp stats block

specil thanks to jeza for helping me wth it


Final60


Bluto

Hmm...I get this showing in the block.
SMF 1.1.6
TP 1.0.5
Fatal error: Cannot redeclare ssi_shutdown()
(previously declared in /home/.xxx/xxx/ga.ga-squad.com/SSI.php:196)
in /home/.xxx/xxx/ga.ga-squad.com/SSI.php on line 198

G6Cad

Check the line you get the error from in the file and remove the duplicate strings


wdm2005


Bluto

#6
No. I just now got back to it.
Here's the code from the error:
// This shuts down the SSI and shows the footer.
function ssi_shutdown()
{
if (!isset($_GET['ssi_function']) || $_GET['ssi_function'] != 'shutdown')
template_footer();
}


I removed the second instance of the function, I thought was a duplicate
|| $_GET['ssi_function'] But that didn't change anything. Same error.
And I looked, but didn't find that code repeated elsewhere.
File attached.
I don't really have to have this though, so no rush or big deal for me. Just though it would be nice to have. I don't want to clog this thread up with my error.
SMF 1.1.6
TP 1.0.5
Thanx wdm2005, I appreciate the response.

G6Cad

#7
Make it look like this

// This shuts down the SSI and shows the footer.
function ssi_shutdown()
{
   if (!isset($_GET['ssi_function']) || $_GET['ssi_function']  != 'shutdown')
      template_footer();
}

Bluto

OK, I copy and pasted the code exactly as you have it.
Then I get this error:
Parse error: syntax error, unexpected T_IS_NOT_EQUAL, expecting ',' or ')' in /home/.xxx/xxx/ga.ga-squad.com/SSI.php on line 196
Instead of the home page.

G6Cad

Looking closer at your file, you seem to have a ton of mods installed.

You have to check the mods you have installed and see what mod changes the ssi.php file, and manually go though the code from these mods and see if any of them have duplicate entrys in the file.

This website is proudly hosted on Crocweb Cloud Website Hosting.