All right hours trying (thought i could do it without asking your help again but here i am)
This is what i have done and where i am also stuck
I made this php script
PHP Code:
<?php
error_reporting(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS', 1);
define('CSRF_PROTECTION', true);
$phrasegroups = array();
$specialtemplates = array();
$globaltemplates = array();
$actiontemplates = array();
chdir ('/home/*******/public_html');
require_once('./global.php');
exec_shut_down();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="ltr" lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Extra Online Users</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="content-language" content="en" />
</head>
<body style="margin: 0px">
<!-- -->
</body>
</html>
And uploaded it to my root
I than added
Code:
<iframe src="http://www.myanimeisland.com/extra_online_users.php" scrolling="no" allowtransparency="true" frameborder="0" width="0" height="0"></iframe>
To my none VB page
Than added these two in the plugin manager
online_location_proces
PHP Code:
switch ($filename)
{
case 'extra_online_users.php':
$userinfo['activity'] = 'extra_online_users.php';
break;
// add more cases here if you have more than one custom page. no need for multiple plugins. one plugin can handle all.
}
online_location_unknown
PHP Code:
switch ($userinfo['activity'] == 'extra_online_users')
{
case 'extra_online_users.php':
$userinfo['where'] = '<a href="extra_online_users.php?'.$vbulletin->session->vars[sessionurl].'">MAI-Wallpapers</a>';
$userinfo['action'] = "Viewing MAI-Wallpapers";
$handled = true;
break;
// add more cases here if you have more than one custom page. no need for multiple plugins. one plugin can handle all.
}
Now on my whos online i see the user on my page But it says
Unknown Location
/extra_online_users.php
I just cant seem to get it to say "Viewing MAI-Wallpapers" and point to the URL
Anyone any ideas?
Thanks alot