|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
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]
|
|
|
|
Joined: May 2001
Posts: 684
Code Monkey
|
Code Monkey
Joined: May 2001
Posts: 684 |
Thank you LK, thats great!!! But that hack shows not, which posting a user ist editing, reading and so on...
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
Thanks
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
d-t, it does... or atleast it should.
|
|
|
|
Joined: May 2001
Posts: 684
Code Monkey
|
Code Monkey
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}
|
Can you please check it?
Thanks d-talk
|
|
|
|
Joined: Nov 2001
Posts: 1,704
Moderator / Da Masta
|
Moderator / Da Masta
Joined: Nov 2001
Posts: 1,704 |
Nice stuff LK.
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
d-talk, make sure you're not trying to modify the parts this hack adds there is somewhere just this code.
|
|
|
|
Joined: Feb 2003
Posts: 179
Member
|
Member
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:
($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
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Try to put an extra pair of brackets around the first part (open it after "(", close it before "||") (($user_profile[4] =~ /Admin/ && $user_profile[8] eq 'Administrator') || $user_profile[8] eq 'Moderator' )
|
|
|
|
Joined: Sep 2004
Posts: 10
Newbie
|
Newbie
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.
|
|
|
|
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.
|
|
|
|
Joined: Sep 2004
Posts: 10
Newbie
|
Newbie
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
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
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
Joined: Aug 2004
Posts: 20 |
has anyone tested this on 6.6?
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
won't work, not tested, but it won't
|
|
|
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: 1,157
Joined: July 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|