Previous Thread
Next Thread
Print Thread
Rate Thread
#150223 03/10/2002 7:21 AM
Joined: Aug 2001
Posts: 8
Junior Member
Junior Member
Offline
Joined: Aug 2001
Posts: 8
You can name me mad, but I tried to patch the UBB 6.2.1 with the Mega-Moderator-Hack.

I found everything and patched it. Besides only one thing frown

quote:
Open ubb_lib.cgi
Find:
sub is_admin_or_mod {
local ($f, @profile, $Moderator, @mods, $mod_name, $mod_num, $mod_match, $is_one, @mod_profile);

I can“t find. But I found this part which should be the right one. How must it be patched?

quote:
sub is_admin_or_mod {
my ($Moderator, $mod_match, $is_one);

my ($f, @profile) = @_;
chomp($profile[8]);
chomp($profile[0]);

if ($profile[8] eq 'Administrator') {
$is_one = 'true';
} elsif ($profile[8] eq 'Moderator') {

if ($f ne 'ALL') {

# check to see if user is moderator of particular forum

# check if moderator
&RequireVars("$vars_config{VariablesPath}/vars_mods.cgi");

$Moderator = ${ "Forum" . "$f" . "Moderator" };

#split up Mod var
my @mods = split (/||^||/, $Moderator);

my @mod_profile = ();
foreach (@mods) {
chomp($_);
if (-s "$vars_config{MembersPath}/$_.cgi") {
@mod_profile = &OpenProfile($_);
chomp($mod_profile[0]);

if ($mod_profile[0] eq $profile[0]) {
$mod_match = 'true';
} # end if
} # end if
} # end foreach

if ($mod_match ne 'true') {
$is_one = 'false';
} else {
$is_one = 'true';
} # end if
} else {
# this is just to see if user is a mod of any forum
$is_one = 'true';
} # end if
} else {
$is_one = 'false';
} # end if

return ($is_one);
} # is_admin_or_mod

Thanx a lot
Locutus of Borg

Sponsored Links
Entire Thread
Subject Posted By Posted
[6.1x] Megamod 2.0 Brett 12/04/2001 12:32 AM
Re: [6.1x] Megamod 2.0 bond2036 12/04/2001 12:37 AM
Re: [6.1x] Megamod 2.0 Lord Dexter 12/04/2001 1:17 AM
Re: [6.1x] Megamod 2.0 Telekinesis 12/04/2001 1:49 AM
Re: [6.1x] Megamod 2.0 Brett 12/04/2001 1:50 AM
Re: [6.1x] Megamod 2.0 Lord Dexter 12/04/2001 8:27 AM
Re: [6.1x] Megamod 2.0 Eliza 01/01/2002 9:09 PM
Re: [6.1x] Megamod 2.0 Brett 01/04/2002 2:42 AM
Re: [6.1x] Megamod 2.0 PeteB 01/05/2002 11:54 PM
Re: [6.1x] Megamod 2.0 theepH 01/06/2002 12:11 AM
Re: [6.1x] Megamod 2.0 Ice Man_00 01/06/2002 3:49 AM
Re: [6.1x] Megamod 2.0 pumpkin 01/06/2002 2:34 PM
Re: [6.1x] Megamod 2.0 Brett 01/07/2002 12:45 AM
Re: [6.1x] Megamod 2.0 CTM 01/19/2002 1:48 PM
Re: [6.1x] Megamod 2.0 omegatron 01/19/2002 4:16 PM
Re: [6.1x] Megamod 2.0 CTM 01/19/2002 7:16 PM
Re: [6.1x] Megamod 2.0 CTM 01/23/2002 7:09 PM
Re: [6.1x] Megamod 2.0 rictor 01/23/2002 8:18 PM
Re: [6.1x] Megamod 2.0 Brett 01/23/2002 11:41 PM
Re: [6.1x] Megamod 2.0 Demolition 01/26/2002 6:42 PM
Re: [6.1x] Megamod 2.0 Lord Dexter 01/27/2002 2:39 AM
Re: [6.1x] Megamod 2.0 Brett 01/28/2002 5:09 AM
Re: [6.1x] Megamod 2.0 *Speedy* 01/30/2002 11:12 PM
Re: [6.1x] Megamod 2.0 *Speedy* 01/31/2002 10:18 PM
Re: [6.1x] Megamod 2.0 CTM 02/01/2002 10:27 PM
Re: [6.1x] Megamod 2.0 *Speedy* 02/08/2002 12:32 AM
Re: [6.1x] Megamod 2.0 Brett 02/08/2002 3:06 PM
Re: [6.1x] Megamod 2.0 *Speedy* 02/08/2002 6:42 PM
Re: [6.1x] Megamod 2.0 LK 02/08/2002 6:59 PM
Re: [6.1x] Megamod 2.0 *Speedy* 02/08/2002 7:16 PM
Re: [6.1x] Megamod 2.0 LK 02/08/2002 7:42 PM
Re: [6.1x] Megamod 2.0 *Speedy* 02/08/2002 7:53 PM
Re: [6.1x] Megamod 2.0 Demolition 02/10/2002 3:54 PM
Re: [6.1x] Megamod 2.0 Brett 02/10/2002 10:01 PM
Re: [6.1x] Megamod 2.0 Demolition 02/10/2002 10:15 PM
Re: [6.1x] Megamod 2.0 Locutus of Borg 02/23/2002 9:21 AM
Re: [6.1x] Megamod 2.0 Demolition 02/23/2002 11:28 AM
Re: [6.1x] Megamod 2.0 Locutus of Borg 02/23/2002 11:15 PM
Re: [6.1x] Megamod 2.0 Lord Dexter 02/24/2002 1:29 AM
Re: [6.1x] Megamod 2.0 Brett 02/24/2002 6:47 AM
Re: [6.1x] Megamod 2.0 Locutus of Borg 02/24/2002 4:21 PM
Re: [6.1x] Megamod 2.0 Lord Dexter 02/26/2002 12:07 PM
Re: [6.1x] Megamod 2.0 Brett 02/27/2002 6:52 PM
Re: [6.1x] Megamod 2.0 Lord Dexter 02/28/2002 7:23 AM
Re: [6.1x] Megamod 2.0 azure 03/03/2002 6:05 PM
Re: [6.1x] Megamod 2.0 Lord Dexter 03/04/2002 7:36 AM
Re: [6.1x] Megamod 2.0 Locutus of Borg 03/10/2002 2:21 PM
Re: [6.1x] Megamod 2.0 Locutus of Borg 03/10/2002 4:56 PM

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:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 2338
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 27
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)