|
|
Joined: Nov 2001
Posts: 1,080
Member
|
|
Member
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...
|
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
|
Moderator
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
Joined: Nov 2001
Posts: 1,080 |
Yup...Basically a .cgi file I created. 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
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
Joined: Nov 2001
Posts: 1,080 |
Thanks Brett. I think I'm going to digest what you just said then try it out. 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?) 
|
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
|
Moderator
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. 
|
|
|
|
|
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
Joined: Nov 2001
Posts: 1,080 |
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. 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. 
|
|
|
|
|
Joined: Nov 2001
Posts: 1,080
Member
|
|
Member
Joined: Nov 2001
Posts: 1,080 |
Update: THANK YOU Brett and Charles for pointing me in the right direction! It works! 
|
|
|
|
|
Joined: Nov 2001
Posts: 1,080
Member
|
|
Member
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.
|
|
|
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.
|
|
Posts: 808
Joined: July 2001
|
|
|
Forums63
Topics37,583
Posts293,957
Members13,826
| |
Most Online151,614 Nov 14th, 2025
|
|
Currently Online 75951
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 2
|
|
|
|