Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Sep 2000
Posts: 129
Member
Member
Offline
Joined: Sep 2000
Posts: 129
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.



...... x ......
Using UBBt 6.4.2 + Digg Ajax Mod, Trust Ajax Mod, Captcha Regristation & Login mod, Checkusername Ajax mode.
Sponsored Links
Entire Thread
Subject Posted By Posted
Having non-ubbt pages show in Who's Online Helice 09/29/2002 12:16 AM
Re: Having non-ubbt pages show in Who's Online JoshPet 09/29/2002 12:25 AM
Re: Having non-ubbt pages show in Who's Online casper_dup1 09/29/2002 12:48 AM
Re: Having non-ubbt pages show in Who's Online JoshPet 09/29/2002 1:00 AM
Re: Having non-ubbt pages show in Who's Online Aglavalin 09/29/2002 1:54 AM
Re: Having non-ubbt pages show in Who's Online santana 09/29/2002 6:33 AM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,575
Posts293,931
Members13,824
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)