Multiple Founders

Support for IntegraMOD 140

Moderator: Integra Moderator

Multiple Founders

PostAuthor: macarlisle » Fri Apr 28, 2006 7:24 am

How do you have or add multiple board founders?
Last edited by macarlisle on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
macarlisle
Members
Members
 
Posts: 33
Likes: 0 post
Liked in: 0 post
Joined: Tue Apr 11, 2006 7:16 am
Cash on hand: 0.00

PostAuthor: Adrian Rea » Fri Apr 28, 2006 7:25 am

There was a thread on this on integramod.com. I will try to find out for you.

A
Last edited by Adrian Rea on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Adrian Rea
Sr Integra Member
Sr Integra Member
 
Posts: 1263
Likes: 0 post
Liked in: 0 post
Joined: Sun Mar 12, 2006 12:59 am
Cash on hand: 0.00

PostAuthor: macarlisle » Fri Apr 28, 2006 7:28 am

ok, there site is still down.
Last edited by macarlisle on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
macarlisle
Members
Members
 
Posts: 33
Likes: 0 post
Liked in: 0 post
Joined: Tue Apr 11, 2006 7:16 am
Cash on hand: 0.00

Re: Multiple Founders

PostAuthor: Adrian Rea » Sat Apr 29, 2006 2:51 am

In fact I think it has already been done woohoo!
http://rpgnet.clanmckeen.com/demo/viewt ... =4457#4457

You need to make sure that the total number of admins and board founders are represented in the ACP > Security > Special > Number of admins box. Please note, Junior admins do not apply to this number, they are collated in the number of Moderators.

the above link would suggest the code changes are as follows

change the 2 files blocks/blocks_imp_online_users.php and profilcp/functions_profile.php
FIND
Code: Select all
    if ( ($userdata['user_level'] == ADMIN) && ($userdata['user_id'] == 2) )
REPLACE WITH
Code: Select all
    if ( ($userdata['user_level'] == ADMIN) && in_array($userdata['user_id'], array( 2, 3, 4) ) )
Where 2,3 and 4 are the user ids of the board founders. You can have any number of founders as long as their ids are seperated with a comma.

One final word of warning, Board founders have significant power over any other user, and have access to more functions and details in the board setup. Make sure you are careful who you choose to be one. The same needs to be said for making ordinary admins. It is a role that carries much responsibility.



A
Last edited by Adrian Rea on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Adrian Rea
Sr Integra Member
Sr Integra Member
 
Posts: 1263
Likes: 0 post
Liked in: 0 post
Joined: Sun Mar 12, 2006 12:59 am
Cash on hand: 0.00

PostAuthor: macarlisle » Sat Apr 29, 2006 8:10 am

I replaced the files and it give me this error.

Parse error: syntax error, unexpected T_ELSE in /home/westtexas/www/www/phpBB2/blocks/blocks_imp_online_users.php on line 152
Last edited by macarlisle on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
macarlisle
Members
Members
 
Posts: 33
Likes: 0 post
Liked in: 0 post
Joined: Tue Apr 11, 2006 7:16 am
Cash on hand: 0.00

PostAuthor: BurninFingerTipz » Wed May 03, 2006 3:20 pm

@macarlisle -
Allow me to clearify the code chanes:
blocks/blocks_imp_online_users.php
FIND:
Code: Select all
if ( ($row['user_level'] == ADMIN) && ($row['user_id'] == 2) )

REPLACE]if ( ($row['user_level'] == ADMIN) && in_array($userdata['user_id'], array( 2, 3, 4) ) )[/code]


profilcp/functions_profile.php
FIND:
Code: Select all
if ( ($userdata['user_level'] == ADMIN) && ($userdata['user_id'] == 2) )

REPLACE]if ( ($userdata['user_level'] == ADMIN) && in_array($userdata['user_id'], array( 2, 3, 4) ) )[/code]


If you put that same code to replace both, you will have issues...
Last edited by BurninFingerTipz on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

BurninFingerTipz
Members
Members
 
Posts: 55
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 09, 2006 6:49 pm
Cash on hand: 0.00
Location: Ohio, USA


Return to IntegraMOD 140

Who is online

Registered users: App360MonitorBot, Bing [Bot], Google [Bot]