sadman2006-01-14 17:44 | This is a lil addon im donating for y'all
Will display how many visitors online
Hope you find a use for it
http://www.syndikut.org/free/vol-lite.php |
2006-01-14 19:41 | Hi I added the snippet to my footer.tpl but don't know what file the online.php file need to be in. Thanks delite163 |
sadman2006-01-14 20:55 | I think if my memory serves me right
online.php needs to be included by a php file to work
i'll have to test it
|
sadman2006-01-14 21:12 | ok i have re-molded the script
I'll change the link details
gimme a few mins |
sadman2006-01-14 21:25 |
ok
I think thats cracked it
please redownload the script and try again
|
sadman2006-01-14 23:01 | hmm this is strange
When clicking ....
basket > next
I get "headers already sent...." error
I dont understyand why everything else works but that
Very strange
|
2006-01-15 07:08 | sadman - You send html code before header() function start |
Floyds2006-01-15 11:14 | for with versions of QC is it competable ?!? Dutch Support Team Quick.Cart |
sadman2006-01-15 15:34 | hi
no html is sent at all
and its compatable for all versions i guess
its simple really you can include the online.php page into any php page and it works fine - it does not have to be QC
I dont understand why the headers error on basket > next
i'll replace the download script with the coded version
|
sadman2006-01-15 15:42 | Ok
I have done online.php so you can see the code
Download It Here
|
sadman2006-01-15 15:45 | lol
Better still - Take a look here
$datfile = "ip.dat"; $old = file($datfile); $new = array(); $add = 1; $min=60;
if (@getenv(HTTP_X_FORWARDED_FOR)) { $ip = @getenv(HTTP_X_FORWARDED_FOR); } else { $ip = @getenv(REMOTE_ADDR); }
if (empty($ip)) { $add = 0; }
for ($x = 0; $x < sizeof($old); $x++) { list($sip, $time) = explode('|', trim($old[$x]));
if ($sip == $ip) { $add = 0; $new[] = $sip . '|' . time(); } else { if ((time() - $time) < ($min * 60)) $new[] = $sip.'|'.$time; } }
if ($add != 0) { $new[] = $ip.'|'.time(); } $file = @fopen($datfile, 'w'); for ($x = 0; $x < sizeof($new); $x++) { @fputs($file, $new[$x] . "\n"); } @fclose ($file);
$logfile = "ip.dat"; $log = file($logfile); for ($x = 0; $x < sizeof($log); $x++) { list($sip, $time) = explode('|', trim($log[$x])); if ((time() - $time) < ($min * 60)) { $userget[] = $sip; } } $users = count($userget); if ($users > 1) { $browsers = "$users"." Visitors online."; } else { $browsers = "$users"." Visitor online."; }
[php]
So if anyone can tell us
why this creates a header already sent error - great!
|
sadman2006-01-15 21:49 | YES!!! - Finally :0)
I figured out what it was and its all fixed!!
Simple re-download and follow the instruction at the link provided
In your main store (QC) folder add the file "ip.dat"
Sorted!!
|
sadman 2006-01-17 18:15 | Hay guys can you pin this plugin or add it to your plugins section in downloads
thanks
|