Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
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.

Sponsored Links
Joined: Mar 2001
Posts: 326
Member
Member
Offline
Joined: Mar 2001
Posts: 326
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.

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Very little CPU usage. Uses the best way to check for status.

Joined: Nov 2001
Posts: 745
Admin Emeritus
Admin Emeritus
Offline
Joined: Nov 2001
Posts: 745
Works Great smile

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Yay! Somebody installed it. smile

Sponsored Links
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
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.

Joined: Nov 2001
Posts: 745
Admin Emeritus
Admin Emeritus
Offline
Joined: Nov 2001
Posts: 745
Backed off the update after trying it. Looks like my Mods Wordlets install went wacko. Serves me right for not hacking it by hand.

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
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

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
There is no difference brett. tipsy

Joined: Nov 2001
Posts: 745
Admin Emeritus
Admin Emeritus
Offline
Joined: Nov 2001
Posts: 745
And why replace the 2 lines of code with the same ones?

Sponsored Links
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Also no user_profiles are being used because it's more server friendly apparently.

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
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

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
I thought the $user_status was more efficent. smirk

Oops.

Joined: May 2002
Posts: 28
Junior Member
Junior Member
Offline
Joined: May 2002
Posts: 28
Hi people, just wondered... My board is showing different colours for different admins, where would the colours be changed?

Any response appreciated.

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
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.

Joined: Jul 2002
Posts: 49
Member
Member
Offline
Joined: Jul 2002
Posts: 49
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

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
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.

Joined: Apr 2001
Posts: 73
Member
Member
Offline
Joined: Apr 2001
Posts: 73
Can somebody put up a working link to this? The original one appears to be down.

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
My server is down ATM. So if you really need it here is a Temp link:

Click Here

Joined: Jun 2001
Posts: 120
Member
Member
Offline
Joined: Jun 2001
Posts: 120
Getting a 404 on the d/l link.

Edit: I see the above post & link, disregard this one.

Joined: Apr 2001
Posts: 31
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 31
I cant get either of the links to work, does somebody have this hack??

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Grr It got deleted off that server too. Have to find another one and I'll edit this message with a link.

Joined: Jul 2002
Posts: 18
Junior Member
Junior Member
Offline
Joined: Jul 2002
Posts: 18
when will the hack be available again frown ??


i was X-tend, but i lost my mail and password frown
Joined: Oct 2001
Posts: 572
Member
Member
Offline
Joined: Oct 2001
Posts: 572
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

Joined: Nov 2001
Posts: 8
Junior Member
Junior Member
Offline
Joined: Nov 2001
Posts: 8
any update on where this can be downloaded from?

tankyaberrymulch

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Yes, I found some space at last:

Get it Here

Joined: Jul 2002
Posts: 18
Junior Member
Junior Member
Offline
Joined: Jul 2002
Posts: 18
thanks man!


i was X-tend, but i lost my mail and password frown

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)