Page 1 of 1

more than 1 board founder?

PostPosted: Tue Nov 21, 2006 3:57 pm
Author: TNM
can i set it up to have 2 board founders?

Re: more than 1 board founder?

PostPosted: Tue Nov 21, 2006 5:45 pm
Author: Teelk
You sure can, it involved editing a file.

Open profilcp/functions_profile.php
FIND
Code: Select all
                $res  =  USER;                if  (  ($userdata['user_level']  ==  ADMIN)  &&  ($userdata['user_id']  ==  2)  )                {                        $res  =  ADMIN_FOUNDER;                }   

REPLACE WITH
Code: Select all
                $res  =  USER;                if  (  ($userdata['user_level']  ==  ADMIN)  &&  ($userdata['user_id']  ==  2)  ||  ($userdata['user_level']  ==  ADMIN)  &&  ($userdata['user_id']  ==  X))                {                        $res  =  ADMIN_FOUNDER;                }   

Change X to the user_id of the user you want to be board founder.

PostPosted: Tue Nov 21, 2006 5:53 pm
Author: ZacFields
I'm not sure if I posted about this already, but I have a unique situation for you guys to wrap your minds around.

I was not the creator of my forums, so there are people who registered before me. Recently I promoted two other people to Admin, but the problem is that one of them registered before I did, so he gets all the PHPBB security PM's and stuff. Is there any way I can fix this?

I mean... I know of a way but will this work: Going into the SQL database and finding the "register date" MD5 hash of the eldest user and copy and paste that into my account? That way it shows me as being the oldest member. Or is there a better way to do it?

Zac

PostPosted: Tue Nov 21, 2006 10:13 pm
Author: sanji
Changing the register date would make no good... The "oldest" member is defined as the lower user_id, which normally is 2 and corresponds to the board founder.

However, you should have no problem with changing who can get the emails for security, updates, ...

You can define the emails in the ACP. For example, for the security module, just go to ACP / Security / Configuration and change which admin gets the email.

sanji

Re: more than 1 board founder?

PostPosted: Wed Nov 22, 2006 8:08 am
Author: Whisky
I had a similar problem then you Zac:
My guild was running on a standard phpbb forum before I join, then the guy who crated this board (user_id 2) left the guild and I took the administration in charge, when I migrated the forum to the IM portal solution I felt on the board founder problem.

So I managed to run queries in all tables containning a user_id column in 2 phases:
1. I created a new user for the guy who left and updated all records where the user_id was = 2 with the new user id
2. Then I ran queries in all tables where my own user_id was referenced to update the records and set the user_id to 2

I know its not the way it has to be done but I trust my SQL skills, I had some issues somewhere but it worked finally <img>

Re: more than 1 board founder?

PostPosted: Wed Nov 22, 2006 7:35 pm
Author: TNM
"Teelk";p="17843" wrote:You sure can, it involved editing a file.

Open profilcp/functions_profile.php
FIND
Code: Select all
        $res = USER;         if ( ($userdata['user_level'] == ADMIN) && ($userdata['user_id'] == 2) )         {             $res = ADMIN_FOUNDER;         }  
REPLACE WITH
Code: Select all
        $res = USER;         if ( ($userdata['user_level'] == ADMIN) && ($userdata['user_id'] == 2) || ($userdata['user_level'] == ADMIN) && ($userdata['user_id'] == X))         {             $res = ADMIN_FOUNDER;         }  
Change X to the user_id of the user you want to be board founder.





that worked great thanks

PostPosted: Wed May 28, 2008 4:37 am
Author: maggie
thank you for this information...my problem is im cofounder and the founder has locked himself out of the forum but i cant unlock him as it says im unauthorized to do so. im wondering if i edit the file...making me founder also...will i then be able to unlock him? if not do you have any suggestions as to how we can get him back into the forum?

thanks for any help you can give as this is so frustrating.

Re: more than 1 board founder?

PostPosted: Wed May 28, 2008 8:54 am
Author: Helter
there are many ways to do this, but the easiest way to describe is to edit his account in the db under phpbb_users.
Im assuming his account is user id #2
in phpmyadmin, change his account to a user id higher than your last member. Now log into the forum with your normal admin account, set him to active status, then change his user id back to #2

PostPosted: Wed May 28, 2008 11:04 am
Author: maggie
thanks so much for your reply...i'll give it a shot. :)