UBB.Dev
Since Tim has gone and there are a wide amount of people who want to use some of his hacks I am going to re-release them. I take NO credit for the code. I mean NO!

Description: Makes Admins bold and italisized and mods bolded on the PNTF summary of users online

Author: eXtremeTim (Wordlet Modification for this hack by Lord Dexter)

Compatiability: All 6.2 and 6.3 versions.

Demo: None.

Download: Click Here To Download.
Posted By: mark99 Re: [6.3.x] [beta] Recent Visitors Status Effect - 06/15/2002 11:41 AM
How's the CPU usage on this? I know displaying them on the public table would kill processes, not sure about under the admin PNTF.
Very little CPU usage. Uses the best way to check for status.
Works Great smile
Yay! Somebody installed it. smile
Text file updated, I wordletized the Bolding and Italisizing code just incase people want to change that easier. Re-hack first setp of public_pntf_summary.pl and the new step in vars_wordlet_mods.cgi.
Backed off the update after trying it. Looks like my Mods Wordlets install went wacko. Serves me right for not hacking it by hand.
Call me nit picky if you want, but i don't believe in opening a profile file twice in a row.

The first change
quote:
###########
FIND:
###########

SORTORDER: foreach my $number (@xa) {
my $pn = &GetPubName($number);

###########
ADD UNDER:
###########

my $user_status = (&OpenProfile($number))[8];
if ($user_status eq "Administrator") {
$wol_se_s = "$vars_wordlets_mods{admin_effect_start}";
$wol_se_e = "$vars_wordlets_mods{admin_effect_end}";
} elsif ($user_status eq "Moderator") {
$wol_se_s = "$vars_wordlets_mods{mod_effect_start}";
$wol_se_e = "$vars_wordlets_mods{mod_effect_end}";
} else {
$wol_se_s = "";
$wol_se_e = "";
}

would be slightly easier, i think for it be like this

quote:
###########
FIND:
###########

SORTORDER: foreach my $number (@xa) {
my $pn = &GetPubName($number);

###########
REPLACE WITH:
###########

SORTORDER: foreach my $number (@xa) {
my @user_profile = &OpenProfile($number);
my $pn = $user_profile[15];
if ($user_profile[8] eq "Administrator") {
$wol_se_s = "$vars_wordlets_mods{admin_effect_start}";
$wol_se_e = "$vars_wordlets_mods{admin_effect_end}";
} elsif ($user_profile[8] eq "Moderator") {
$wol_se_s = "$vars_wordlets_mods{mod_effect_start}";
$wol_se_e = "$vars_wordlets_mods{mod_effect_end}";
} else {
$wol_se_s = "";
$wol_se_e = "";
}

but then, that's just me. tipsy
There is no difference brett. tipsy
And why replace the 2 lines of code with the same ones?
Also no user_profiles are being used because it's more server friendly apparently.
Posted By: Brett Re: [6.3.x] [beta] Recent Visitors Status Effect - 07/10/2002 10:47 PM
Look closer at the replacement! It only opens the profile once instead of twice. On a large recent visitors page, it could save some time.

quote:
Call me nit picky
:p
I thought the $user_status was more efficent. smirk

Oops.
Hi people, just wondered... My board is showing different colours for different admins, where would the colours be changed?

Any response appreciated.
Wha? It should be bold and italisized for admins and bolded for mods. And the color should be the same as your forum unless you changed in manually.
here is the mega mod add on.. i didnt ask tony but if you want it gone ill edit it out:

[code][/code]not much i know but it worked for me. you can change that bold and stuff as you wish
Looks about right but I'm not sure if it will work for people who don't have MegaMod installed. I think it will since it saying if there is somebody with a MegaMod status but I will wait for somebody to confirm for me.
Can somebody put up a working link to this? The original one appears to be down.
My server is down ATM. So if you really need it here is a Temp link:

Click Here
Getting a 404 on the d/l link.

Edit: I see the above post & link, disregard this one.
Posted By: Dome Re: [6.3.x] [beta] Recent Visitors Status Effect - 08/08/2002 11:28 PM
I cant get either of the links to work, does somebody have this hack??
Grr It got deleted off that server too. Have to find another one and I'll edit this message with a link.
when will the hack be available again frown ??
LD i'll put it back up on my server in a bit. Just send me the current code you have on it so far. I will check over it make any changes i see are needed and put it back up. smile
any update on where this can be downloaded from?

tankyaberrymulch
Yes, I found some space at last:

Get it Here
thanks man!
© UBB.Developers