Hi
This is what is done in my site in order to log visitors into who's online table.
1. copy main.inc.php file and rename it into mainbug.inc.php (so you have 2 files main.inc.php and mainbug.inc.php under.threads direcroty
2. Edit the mainbug.inc.php and find
code:
// DO NOT EDIT ANYTHING BELOW THIS LINE!
include("$thispath/ubbt.inc.php");
change that to:
code:
// DO NOT EDIT ANYTHING BELOW THIS LINE!
include("$thispath/ubbtbug.inc.php");
3. Copy ubbt.inc.php file and rename it into ubbtbug.inc.php (so you have 2 files also, ubbt.inc.php and ubbtbug.inc.php)
4. Edit ubbtbug.inc.php and find (line 290):
code:
// require the header.php file
if ($script['2'] != "top") {
if ($fheader) {
$header = "header_$Board.php";
}else {
$header = "header.php";
}
@include "$thispath/includes/$header";
}
change that into
code:
// require the header.php file
if ($script['2'] != "top") {
if ($fheader) {
$header = "header_$Board.php";
}else {
$header = "header_bug.php";
}
@include "$thispath/includes/$header";
}
Find (line 780):
code:
else {
$file = "footer.php";
change that into:
code:
else {
$file = "footer_bug.php";
5. Create a file name bug_online.php
and write the following code:
code:
<?
// Require the library
require ("./mainbug.inc.php");
// ---------------------
// Send the page to them
$html = new html;
$html -> send_header("Your page name",$Cat,0,0,0,0,$user);
// -------------
// Send a footer
$html -> send_footer();
?>
6. Create a blank files: header_bug.php and footer_bug.php and put them under "includes" direcroty
7. Open your languages file (online.php) and add:
code:
$ubbt_lang['bug_online'] = "My other page";
8. Add this line into your page that want to be tracked down:
code:
<IFRAME SRC="http://www.yourdomain.com/forum/bug_online.php" MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=NO WIDTH=0 HEIGHT=0> <IMG SRC="http://www.yourdomain.com/forum/bug.gif" WIDTH=0 HEIGHT=0 BORDER=0></IFRAME>
9. Add blank image 1 x 1 pixel and named it bug.gif. Put this file to correspondent point 8 above:
<IMG SRC="http://www.yourdomain.com/forum/bug.gif" WIDTH=0 HEIGHT=0 BORDER=0>
It works for me, but maybe someone can help in more simple one.
