|
Joined: Aug 2001
Posts: 8
Junior Member
|
Junior Member
Joined: Aug 2001
Posts: 8 |
Thanx a lot for the help. I d/l´ed it and now I´m goin´ to kill my UBB 
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
The 1st, Argh. Are you switching servers raiyan?
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
No, we just exceeded the bandwidth (surprisingly). plain and simple. I learned from this and won't let it happen again. 
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
Isn't it because we got so much more visitors and posts in the last month or so?
|
|
|
|
Joined: Mar 2002
Posts: 2
Junior Member
|
Junior Member
Joined: Mar 2002
Posts: 2 |
I'm sorry if this is a stupid question, but I'm using UBB 6.04 and I cannot find:
if (($ubb eq 'vars_mod') && ($status eq 'Administrator')) { &view_vars("mods"); exit(0); } #end vars_mod
in cp.cgi. This may be because of the other hacks I've done, but I rather doubt it... Is there another megamod hack that definitely works with 6.04 or what can I do about this problem? Thank you.
:edit: Oops. I just realized I've been looking in the wrong forum. Nevermind! ^^;;
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
It's because this MegaMod if for 6.1, not 6.04.
|
|
|
|
Joined: Aug 2001
Posts: 8
Junior Member
|
Junior Member
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 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
|
|
|
|
Joined: Aug 2001
Posts: 8
Junior Member
|
Junior Member
Joined: Aug 2001
Posts: 8 |
Sorry. Forget it. I saw that there is already a Hack for the 6.2.0 (v2.1)
|
|
|
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,575
Posts293,931
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|