Previous Thread
Next Thread
Print Thread
Rate Thread

######

and AFTER this add this:
######

######
3.) Open cpanel.cgi

Search for this:
######
if ($action eq "setmods") {
&SetMods;
}
######

And AFTER this add this:
######
if ($action eq "setcoadmins") {
&SetCoAdmins;
}
######

Now search for THIS:
######
} ## END SET MODS SR ##

and AFTER this add the following Code:

sub SetCoAdmins() {
$PageTitle = "S E T C O - A D M I N I S T R A T O R S";
&HEADERHTML1;

print<
Note: Just Administrator are able to set CoAdministrators.







#43220 10/11/2000 3:35 PM
Joined: Oct 2000
Posts: 4
Junior Member
Junior Member
Offline
Joined: Oct 2000
Posts: 4
#############################################
#############################################
##
## CoAdministrator Hack 1.0
## by cRackY
##
##
## Description:
## Allow you to set up 4 CoAdministrator
## who can moderator all Forums but can't
## do something in the Control Panel
##
## Thanx 2 Cal for his MegaMod Hack
## This Code was very buggy but i needet
## this hack so i made my own hack, and
## there are no known bugs, cause I made
## the hack totally different than
## the MegaMod Hack.
## My Hack doesnt add a new Status in the
## User Profil because then the UBB could
## be very buggy then. The CoAdmins all
## are Moderators from the Status, but they
## can moderatore in any Forum. If you would
## like to have an extra Status for CoAdmins
## please use the Custom User Pic Hack!
##
## After setting up the Hack, you can Access
## the CoAdmin Settings in the Control Panel!
##
## Contact me: [email protected]
## Please don't Email me if you don't know
## how to install any hack. If you really
## know how to do that and you have troubles
## with just MY hack feel free to Email me.
##
## !!!!!!!!!INFOPOP!!!!!!!!!!!
## If one of my hacks is installed in new
## Version of UBB i would be very happy if
## I would get a full licencse! thanx!
##

Important Note:
The ###### is just to see the things better,
do not include them in the code!


1.) Create a empty File called coadmins.file

2.) Open cplinks.html with a Text Edtiro

Search for:
######
Moderatoren
CoAdministrators








ModTOP

&Lock("lock.file");
open (COFILE, "coadmins.file");
@zeilen = ;
close (COFILE);
&Unlock("lock.file");
chmod (0666, "coadmins.file");
$zeile = @zeilen[0];
($Co1,$Co2,$Co3,$Co4) = split(/|||/, $zeile);

if ($Co1 eq "^") {
$Co1 = "";
}
if ($Co2 eq "^") {
$Co2 = "";
}
if ($Co3 eq "^") {
$Co3 = "";
}
if ($Co4 eq "^") {
$Co4 = "";
}


print<



MIDMOD

print<




UserName


Password


CoAdministrators















CoAdministrator Hack

Made by cRackY 2000


TRUEBOTTOM

}

######


4.) Now Open cpanel3.cgi

Search for This:
######
if ($action eq "forums") {
&Forums;
}
######

And AFTER this Code ad THIS:
######
if ($action eq "coadmins") {
&CoAdmins;
}
######

Now you have To Serach for The Following
######
} ## END DO PROCESS CATS
######

And AFTER this ADD the following Code:
######
sub CoAdmins() {
&VerifyAdminCP($in{'UserName'}, $in{'Password'});
if ($Proceed ne "true") {
return;
}

$Co1 = $in{'NewCo1'};
$Co2 = $in{'NewCo2'};
$Co3 = $in{'NewCo3'};
$Co4 = $in{'NewCo4'};

if ($Co1 eq "") {
$Co1 = "^";
}
if ($Co2 eq "") {
$Co2 = "^";
}
if ($Co3 eq "") {
$Co3 = "^";
}
if ($Co4 eq "") {
$Co4 = "^";
}

open (COFILE, ">coadmins.file");
print COFILE "$Co1|||$Co2|||$Co3|||$Co4|||n";
close (COFILE);
chmod (0666, "coadmins.file");

$ConfirmLine = "Thanks, the CoAdministrators have been successfully updatet.";
&ConfirmHTML2;

exit;

} #end CoAdmins
######


5.) Now OPEN all other .cgi and .pl Files of the CGI-Directory
When you open a File, look if there is this Code in the File:

######
$ModMatch = "";
foreach $unomod(@mods) {
chomp($unomod);
if ($unomod eq "$UserName") {
$ModMatch = "true";
}
}
######

If this Code isn't in it, close the File and take the Next!
If You found this Code above add the following Code
(could be there a few times in somefiles, you have to paste
the code every time) AFTER it:

######
if ($ModMatch ne "true") {


&Lock("lock.file");
open (COFILE, "coadmins.file");
@zeilen = ;
close (COFILE);


&Unlock("lock.file");

chmod (0666, "coadmins.file");


$zeile = @zeilen[0];
($Co1,$Co2,$Co3,$Co4) = split(/|||/, $zeile);

if ($Co1 eq "^") {
$Co1 = "";
}
if ($Co2 eq "^") {
$Co2 = "";
}
if ($Co3 eq "^") {
$Co3 = "";
}
if ($Co4 eq "^") {
$Co4 = "";
}

$coadmin = "false";

if($Co1 eq $UserName) {
$coadmin = "true";
}
elsif($Co2 eq $UserName) {
$coadmin = "true";
}
elsif($Co3 eq $UserName) {
$coadmin = "true";
}
elsif($Co4 eq $UserName) {
$coadmin = "true";
}

if($coadmin eq "true") {
$ModMatch = "true";
}

}
######


5.)

Then Search after this (think of the Private after $UserName!)

######
$ModMatch = "";
foreach $unomod(@mods) {
chomp($unomod);
if ($unomod eq "$UserNamePrivate") {
$ModMatch = "true";
}
}
######


AFTER THIS ADD THE FOLLOWING CODE:

######
if ($ModMatch ne "true") {


&Lock("lock.file");
open (COFILE, "coadmins.file");
@zeilen = ;
close (COFILE);


&Unlock("lock.file");

chmod (0666, "coadmins.file");


$zeile = @zeilen[0];
($Co1,$Co2,$Co3,$Co4) = split(/|||/, $zeile);

if ($Co1 eq "^") {
$Co1 = "";
}
if ($Co2 eq "^") {
$Co2 = "";
}
if ($Co3 eq "^") {
$Co3 = "";
}
if ($Co4 eq "^") {
$Co4 = "";
}

$coadmin = "false";

if($Co1 eq $UserNamePrivate) {
$coadmin = "true";
}
elsif($Co2 eq $UserNamePrivate) {
$coadmin = "true";
}
elsif($Co3 eq $UserNamePrivate) {
$coadmin = "true";
}
elsif($Co4 eq $UserNamePrivate) {
$coadmin = "true";
}

if($coadmin eq "true") {
$ModMatch = "true";
}

}
######


6.)
Upload all Change UBB Files, and the coadmins.file and then
Chmod the File to 666.

Thats it! Have Fun!

PS: If you feel you would like to give me credit -> [email protected] ;-) *g*
Sponsored Links
#43221 10/12/2000 1:31 AM
Joined: Aug 2000
Posts: 33
Member
Member
Offline
Joined: Aug 2000
Posts: 33
so how is this different from the mega mod hack?

------------------
Mike
------------------
Visit the STC (Star Trek Chat) Gaming Forums: http://209.15.142.191/stc/cgi-bin/Ultimate.cgi

If You Have ICQ
Add Me to your List
Send Me a Message

If You Don't Have ICQ
Get It
Web Page Me

#43222 10/12/2000 8:35 AM
Joined: Mar 2000
Posts: 51
Member
Member
Offline
Joined: Mar 2000
Posts: 51
I installed it and it didnt work, the member would just be called Members not co-admin.
I done everything it said, but it still comes up with the error, i am using 5.45c

#43223 10/13/2000 11:24 AM
Joined: Oct 2000
Posts: 4
Junior Member
Junior Member
Offline
Joined: Oct 2000
Posts: 4
hi!

maybe i have forgotten, but coadmin hack doesnt create a extra status for the coadmins...
that means they are the same users than they were before coadmin...
this would normally be "Moderator".
if a coadmin doenst moderate a forum so he isnt a coadmin he shows ab as a Member

so you should give them a mod place... but i think they can moderate wie member status too...
in the hack i said something about the custom userpic hack, there you can also define statuses... you should use this...

but if status isnt a moderator there may be some problems.. i dont know...
make him moderator instead!

#43224 10/13/2000 11:59 AM
Joined: Mar 2000
Posts: 51
Member
Member
Offline
Joined: Mar 2000
Posts: 51
k, thx, i didnt set him to any forums, so that is proberly what is wrong.

Sponsored Links
#43225 10/13/2000 7:10 PM
Joined: Jun 2000
Posts: 179
Member
Member
Offline
Joined: Jun 2000
Posts: 179
im movin dis to beta till further notice.


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
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 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
Morgan 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 20240506)