Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Modification Name: Recent Visitor Extensions

Author(s): LK

Description: Lets users see ?ubb=pntf_admin, except IPs and invisible.
Additionally, shows if the user is composing a new topic, replying, editing, viewing daily topics list or searching.

Demo: http://www.lkworld.com

Requirements: UBB.classic 6.7.0, might work on 6.6 too

Download Link: http://mods.lkworld.com/wol67.txt

Number of Downloads: [img]https://www.ubbdev.com/lk/num.php?s=wol67.txt[/img]

Sponsored Links
Joined: May 2001
Posts: 684
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 684
Thank you LK, thats great!!! thumbsup

But that hack shows not, which posting a user ist editing, reading and so on...


Webmaster of d-talk & Kabel-Forum.com
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
cool Thanks smile


- Allen wavey
- What Drives You?
Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
d-t, it does... or atleast it should.



Can you please check it?

Thanks d-talk

Webmaster of d-talk & Kabel-Forum.com
Joined: May 2001
Posts: 684
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 684
Hi LK,

something is wrong at public_pntf_admin.pl

For example:

Before this code there is some other code...


$vars_wordlets_pntf{pntf_admin_ipaddress}
Sponsored Links
Joined: Nov 2001
Posts: 1,704
CTM Offline
Moderator / Da Masta
Moderator / Da Masta
Offline
Joined: Nov 2001
Posts: 1,704
Nice stuff LK. rockband

Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
d-talk, make sure you're not trying to modify the parts this hack adds tipsy there is somewhere just this code.

Joined: Feb 2003
Posts: 179
Member
Member
Offline
Joined: Feb 2003
Posts: 179
I currently have my pntf_admin tweaked to let moderators in. So if I load this mod, I'll still need to let mods see the same thing admins do. And it looks like I could handle that by tweaking all the steps that have the condition

Quote
quote:
($user_profile[8] eq 'Administrator' && $user_profile[4] =~ /Admin/)
to something like...

quote:
[qb] ($user_profile[4] =~ /Admin/ && $user_profile[8] eq 'Administrator' || $user_profile[8] eq 'Moderator' ) [/qb]
does that look right? (are the && and || in the right order?) or is there an easier way to tweak this condition?

Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Try to put an extra pair of brackets around the first part (open it after "(", close it before "||")

Code
 (($user_profile[4] =~ /Admin/ && $user_profile[8] eq 'Administrator') || $user_profile[8] eq 'Moderator' )

Joined: Sep 2004
Posts: 10
Newbie
Newbie
Offline
Joined: Sep 2004
Posts: 10
I’m running a totally unhacked 6.7.1.

My host asked me to turn off the stock “Recent Visitors” feature, as it was straining the shared server I’m on.

Would this hack put any less strain on the server? (Not sure if this is even the right hack to accomplish what I want. I just want to show “Who’s Online”. Is that still available?)

I really want this feature back, but don't want to argue with my host. Thanks for any advice.

Sponsored Links
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Recent visitors IS whos online. This just add's to the Recent Visitors feature.


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Sep 2004
Posts: 10
Newbie
Newbie
Offline
Joined: Sep 2004
Posts: 10
Thanks. Here's really what I'm getting at:

Would the "Who's Online" hack put any less strain on a server than the UBB stock "Recent Visitors"?

Sorry. Just noticed the New Users forum. You can delete these posts if you want, and I’ll re-post there.

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
From my understanding, Who's Online put more strain on the server, which is why they went with Recent Visitors.

I'd reccomend disabling Recent Visitors as your host requested, and wait for the new UBB software to come out. It should be a lot less server intensive in general.

Joined: Sep 2004
Posts: 10
Newbie
Newbie
Offline
Joined: Sep 2004
Posts: 10
Ian, thanks. That is my plan. I’m psyched for the new product!

However, I really hate losing this functionality. I’m going to try to work something out with my host until then.

Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
If your host is complaining about load, then turning off Recent Visitors is indeed something we'd normally advise.


UBB.classic: Love it or hate it, it was mine.
Joined: Aug 2004
Posts: 20
Junior Member
Junior Member
Offline
Joined: Aug 2004
Posts: 20
has anyone tested this on 6.6?

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
won't work, not tested, but it won't


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
isaac
isaac
California
Posts: 1,157
Joined: July 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
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)