Sub Menu
Links Menu
Online Users

In total there are 352 users online :: 3 registered, 0 hidden and 349 guests

Most users ever online was 1091 on Wed Aug 16, 2023 5:27 pm

Registered users: Bing [Bot], Google [Bot], Majestic-12 [Bot] based on users active over the past 60 minutes

more than 1 board founder?

Support for IntegraMOD 140

Moderator: Integra Moderator

more than 1 board founder?

PostAuthor: TNM » Tue Nov 21, 2006 3:57 pm

can i set it up to have 2 board founders?
Last edited by TNM on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

TNM
Newbie
Newbie
 
Posts: 7
Likes: 0 post
Liked in: 0 post
Joined: Wed Nov 15, 2006 1:52 pm
Cash on hand: 0.00

Re: more than 1 board founder?

PostAuthor: Teelk » Tue Nov 21, 2006 5:45 pm

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.
Last edited by Teelk on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Teelk
Dev Team
Dev Team
 
Posts: 1309
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 14, 2006 5:25 pm
Cash on hand: 0.00
Location: Canada

PostAuthor: ZacFields » Tue Nov 21, 2006 5:53 pm

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
Last edited by ZacFields on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

ZacFields
Sr Integra Member
Sr Integra Member
 
Posts: 426
Likes: 0 post
Liked in: 0 post
Joined: Wed May 24, 2006 10:14 pm
Cash on hand: 0.00

PostAuthor: sanji » Tue Nov 21, 2006 10:13 pm

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
Last edited by sanji on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[img]http://www.secret-japan.com/forum/images/banners/fuji%20secret-japan%2088x31.gif[/img] [url=http]Secret Japan[/url] : discover Japan off the beaten tracks

sanji
Sr Integra Member
Sr Integra Member
 
Posts: 291
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 12, 2006 8:18 pm
Cash on hand: 0.00

Re: more than 1 board founder?

PostAuthor: Whisky » Wed Nov 22, 2006 8:08 am

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>
Last edited by Whisky on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
I am the Lizard King, I can do anything

Whisky
Sr Integra Member
Sr Integra Member
 
Posts: 256
Likes: 0 post
Liked in: 0 post
Joined: Thu May 18, 2006 1:28 am
Cash on hand: 0.00
Location: Brussels

Re: more than 1 board founder?

PostAuthor: TNM » Wed Nov 22, 2006 7:35 pm

"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
Last edited by TNM on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

TNM
Newbie
Newbie
 
Posts: 7
Likes: 0 post
Liked in: 0 post
Joined: Wed Nov 15, 2006 1:52 pm
Cash on hand: 0.00

PostAuthor: maggie » Wed May 28, 2008 4:37 am

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.
Last edited by maggie on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

maggie
Newbie
Newbie
 
Posts: 2
Likes: 0 post
Liked in: 0 post
Joined: Wed May 28, 2008 4:26 am
Cash on hand: 0.00

Re: more than 1 board founder?

PostAuthor: Helter » Wed May 28, 2008 8:54 am

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
Last edited by Helter on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Always use Protection
Image


Please do not PM for support
User avatar
Helter
Administrator
Administrator
 
Posts: 4167
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Mar 11, 2006 3:46 pm
Cash on hand: 172.60
Location: Seattle Wa
IntegraMOD version: IM 3

PostAuthor: maggie » Wed May 28, 2008 11:04 am

thanks so much for your reply...i'll give it a shot. :)
Last edited by maggie on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

maggie
Newbie
Newbie
 
Posts: 2
Likes: 0 post
Liked in: 0 post
Joined: Wed May 28, 2008 4:26 am
Cash on hand: 0.00


Return to IntegraMOD 140

Who is online

Registered users: Bing [Bot], Google [Bot], Majestic-12 [Bot]

cron