(see my post here)
http://www.aardvarktopsitesphp.com/forums/viewtopic.php?t=7573
I have fixed this mod from the first version to be more consistent with the original code. I removed the session variables and the new_out.php file I created. In tead the mod now consists of a few small changes.
In the file in.php I changed this:
- Code: Select all
if (isset($FORM['a']) && $FORM['a'] == 'out')
{
exit()
}
with this:
- Code: Select all
if (isset($FORM['a']) && $FORM['a'] == 'out')
{
return 0;
/****
Removed exit() as it was causing a kill of the index.php page
load at this point if a=out. Replaced with a 0 return value instead.
****/
}
and in the out.php file I changed this:
- Code: Select all
if(!$FORM['go'])
{
exit("this is the exit");
}
else
{
$this->record($username,'out');
list($url) = $DB->fetch("SELECT url FROM {$CONF['sql_prefix']}_sites WHERE username = '{$username}'", __FILE__, __LINE__);
header("Location: {$url}");
die("this is where it died");
}
to this:
- Code: Select all
$this->record($username,'out');
list($url) = $DB->fetch("SELECT url FROM {$CONF['sql_prefix']}_sites WHERE username = '{$username}'", __FILE__, __LINE__);
header("Location: {$url}");
die("this is where it died");
The other changes are all to the html files changing any instances of out links from the javascript version to the non JS version. Please note if you previously installed v1.1 you should replace your index.php from that mod with the original version .
The changes in the link take this code:
- Code: Select all
<a href="{$url}" onclick="out('{$username}');"></a>
with:
- Code: Select all
<a href="{$list_url}/index.php?a=out&u={$username}" title ="{$url}"></a>
The title tag displays the URL of the site that the out link is associated with with a tooltip "onhover" type of effect.
The mod 2.0 is compatible with the Javascript links and should work with either but even with the changes I made, the out hits still do not seem to record using the javascript while browsing with firefox.
The mod file can be downloaded form here
http://games.topnet100.com/mod_newout_v2.0.zip
included in the mod are the minor fixes to make the pages XHTML compliant.
Let me know what you all think.

