Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2001
Posts: 1,080
Member
Member
Offline
Joined: Nov 2001
Posts: 1,080
How do I go about having Recent Visitors recognize another .cgi file?

Currently when I'm in Recent Visitors it shows me as in Forum Summary but not the page I was in. Hmm...

Sponsored Links
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Your talking about adding more pages into it, right? Like say, the calendar? Err do you mean another .cgi file, other than ultimatebb.cgi?

Joined: Nov 2001
Posts: 1,080
Member
Member
Offline
Joined: Nov 2001
Posts: 1,080
Yup...Basically a .cgi file I created. smile

I noticed the Statistics page is read by Recent Visitors...I'm not sure about the Calendar.

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Hrm, you'd have to implement the ubb_lib_pntf functions like on ultimatebb.cgi as well as the filehandlers and all that so it'd work. It wouldn't be too hard.

When it's loaded, you would need to look in the _lidize() sub in ubb_lib_pntf.cgi and add some more 'elsif', make sure each page you add has a unique number. And then on public_display_profile.pl around line 534 'if($gah eq "9999") {' to add some options. Make sure they match up with the lid/number.

Joined: Nov 2001
Posts: 1,080
Member
Member
Offline
Joined: Nov 2001
Posts: 1,080
Thanks Brett. I think I'm going to digest what you just said then try it out. laugh

So just to clarify:

Check file handlers .cgi
Check ubb_lib_pntf.cgi

public_display_profile.pl (is for the Recent sighting of the user?)

smile

Sponsored Links
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Not filehandles.cgi, that's not a file; i mean like ubb_filehandler.cgi, etc like what ultimatebb.cgi requires at the beginning, including the modules.

if you have LK's PNTF summary list, then public_pntf_summary.pl also. wink

Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
Pssssst... _lidize_custom...


UBB.classic: Love it or hate it, it was mine.
Joined: Nov 2001
Posts: 1,080
Member
Member
Offline
Joined: Nov 2001
Posts: 1,080
Quote
quote:
Originally posted by Brett:
Not filehandles.cgi, that's not a file;
Actually it was meant for both ubb_lib_filehandle.cgi and ubb_lib_filehandler.cgi. thumbsup

I think I understand what you meant Brett by "unique" number for the files I wish to call as example:

#9999 - LID for the front page

and in ubb_forum_summary.cgi you'll find defined:

my $fto = "";
if((exists $in{category}) && ($in{category} =~ m/^d+$/)) {
$fto = "9999_" . $in{category};
} else {
$fto = "9999";
} # end if

And so "_lidize_custom" is not yet implemented but I can use this in my .cgi file "sub" routine. I may need "$fto" as well. Cool. Then again...I could be off. tipsy

Joined: Nov 2001
Posts: 1,080
Member
Member
Offline
Joined: Nov 2001
Posts: 1,080
Update:

THANK YOU Brett and Charles for pointing me in the right direction! It works! thumbsup

Joined: Nov 2001
Posts: 1,080
Member
Member
Offline
Joined: Nov 2001
Posts: 1,080
Hehe...I was wondering if I can somehow have Recent Visitors (summary) and Recent Visitors (my page) display together?

I'm using $pntf_locations[0] for the summary. "Summary" I'm referring to all users online while "my page" are visitors strictly on my page.

Sponsored Links

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:
• Shock Hosting
• Stable Host
• bluehost
• InterServer
Visit us on Facebook
Member Spotlight
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,583
Posts293,957
Members13,826
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 75951
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 2
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
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-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20261026)