UBB.Dev
Posted By: LK [6.7] [beta] Recent Visitor Extensions - 02/14/2004 7:21 PM
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]
Posted By: d-talk Re: [6.7] [beta] Recent Visitor Extensions - 02/14/2004 7:36 PM
Thank you LK, thats great!!! thumbsup

But that hack shows not, which posting a user ist editing, reading and so on...
Posted By: AllenAyres Re: [6.7] [beta] Recent Visitor Extensions - 02/16/2004 7:55 AM
cool Thanks smile
Posted By: LK Re: [6.7] [beta] Recent Visitor Extensions - 02/16/2004 8:42 AM
d-t, it does... or atleast it should.
Posted By: d-talk Re: [6.7] [beta] Recent Visitor Extensions - 02/16/2004 12:42 PM
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
Posted By: CTM Re: [6.7] [beta] Recent Visitor Extensions - 02/16/2004 1:05 PM
Nice stuff LK. rockband
Posted By: LK Re: [6.7] [beta] Recent Visitor Extensions - 02/17/2004 3:05 PM
d-talk, make sure you're not trying to modify the parts this hack adds tipsy there is somewhere just this code.
Posted By: RoxSeibert Re: [6.7] [beta] Recent Visitor Extensions - 08/26/2004 6:31 AM
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?
Posted By: LK Re: [6.7] [beta] Recent Visitor Extensions - 08/30/2004 11:44 PM
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' )
Posted By: MitchellP Re: [6.7] [beta] Recent Visitor Extensions - 09/02/2004 4:44 PM
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.
Posted By: Gizmo Re: [6.7] [beta] Recent Visitor Extensions - 09/02/2004 5:25 PM
Recent visitors IS whos online. This just add's to the Recent Visitors feature.
Posted By: MitchellP Re: [6.7] [beta] Recent Visitor Extensions - 09/02/2004 5:56 PM
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.
Posted By: Ian Spence Re: [6.7] [beta] Recent Visitor Extensions - 09/02/2004 6:49 PM
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.
Posted By: MitchellP Re: [6.7] [beta] Recent Visitor Extensions - 09/02/2004 6:59 PM
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.
If your host is complaining about load, then turning off Recent Visitors is indeed something we'd normally advise.
Posted By: radrico Re: [6.7] [beta] Recent Visitor Extensions - 10/07/2004 5:58 PM
has anyone tested this on 6.6?
Posted By: Ian Spence Re: [6.7] [beta] Recent Visitor Extensions - 10/07/2004 6:10 PM
won't work, not tested, but it won't
© UBB.Developers