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
Works great
thanks! :)
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
Check the line you get the error from in the file and remove the duplicate strings
rgr, thanx
did you sort this ?
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.
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();
}
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.
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.
OK, will do G6.
I appreciate the help, but dread the task. :)
The task is not really that hard.
If you use the parser on SMF and in their mod site, you can check the mods easy and see if they touch the file and if they do, what code they add or change
@bluto try this code if you didnt get it working
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
$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);
That works, thanks WDM. Much appreciated.
Now, if you could make it that easy for who's in Flashchat, I'd be forever indebted.LOL.
Bluto, did you look at the other flashchat code snippets we have here?
No ICH, I've been trying to implement the Flashchat integration mod, with no success. If I rebuild the forum, I'll put that one in right after TP.
But I will have a look and see what you have, if it's a snippet, it has to be easier.
Thanks IchBin
Found what I needed, thanks Ich.
Quote from: Bluto on September 29, 2008, 02:20:27 AM
That works, thanks WDM. Much appreciated.
Now, if you could make it that easy for who's in Flashchat, I'd be forever indebted.LOL.
all i done was remove the ssi call
require("SSI.php");