Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Apr 2001
Posts: 59
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 59
I really did try to search for the answer on this because I know it's been discussed before, but I couldn't turn any matching threads up.

I want to have other pages on my site that are unrelated to threads to show up in the Who's Online page.

I made a test.php page. I made sure that the cookie prefix is set to "/" for the whole site. I included the path to main.inc.php, I copied the authentication code, I added a line to the online.php language file... but nothing, I'm not getting past the authentication.

Can someone please either give me the answer in words of one syllable, or direct me towards some older threads where this has already been solved?

Thanks!

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I've never gotten that method to work for me outside of the threads directory....even though my cookies are site wide.

I posted some other info about this here.

I personally have not gotten this working yet. I think the theory is right. I've just never gotten back to look at it.

I think Aglavalan got it to work for him.

Hope that helps a bit.

If I get a chance to get back to this, I'll post any progress I make.

Joined: Mar 2002
Posts: 147
Member
Member
Offline
Joined: Mar 2002
Posts: 147
All of my non-ubbt pages use the UBB.Thread header and footer and "register" in Who's Online.

There is a post around here somewhere with the code. If you can't find it. I'll post what I use that includes a few additions inculding a "printable page" option.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
You mean like the "basic page" sort of thing?

I can get that to work within my threads directory. But get the "Private" when I'm outside the threads directory...even though cookies are site wide.

Joined: Jun 2002
Posts: 375
Enthusiast
Enthusiast
Offline
Joined: Jun 2002
Posts: 375
The first code JoshPet posted in that thread works with the cookie authentification code I added in the thread. I have it working on all pages in my site just fine.

Sponsored Links
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.

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
hatter
hatter
USA
Posts: 69
Joined: January 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
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,833
Greg Hard 4,625
Top Posters(30 Days)
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-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)