Page 1 of 1

Board Founder[SOLVED]

PostPosted: Sat Feb 03, 2007 8:28 pm
Author: Leadfoot
Your phpBB Version: 2.0.
phpBB Type: phpBB / IMPortal
MODs: Yes
Your knowledge: Basic Knowledge
Board URL: http://www.csasylum.com

PHP Version:
MySQL Version:


What was done before the problem appeared?



What was done to try to solve the problem?




De.scription and Message

Not a bug but I was just wondering if you are somehow able to edit the database to change what user/users can be set to board founder. I would like to be able to show 2 members as founders if possible.

Re: Board Founder

PostPosted: Sun Feb 04, 2007 7:52 am
Author: Teelk

PostPosted: Sun Feb 04, 2007 7:54 am
Author: Leadfoot
thanks Teelk that fix worked like a charm!!!!

PostPosted: Sun Feb 04, 2007 2:32 pm
Author: Leadfoot
oops spoke to soon. Works fine down on the bottom of the index page. But on the left portal wide header. you know the left column. Well I have the Who is Online block there and it still only shows up as admin. So now showing up as founder on bottom and admin on side. Can I edit the side one so it shows founder?

Re: Board Founder

PostPosted: Sun Feb 04, 2007 5:18 pm
Author: Teelk
If I remember, it shouldn't need editing. Try clearing portal cache.

PostPosted: Sun Feb 04, 2007 7:09 pm
Author: Leadfoot
Nope tried clearing portal cache, browser cache and nothing. Shows up fine in posts and on bottom of index page but not on the left header column. Not a major issue just curious.

Re: Board Founder

PostPosted: Mon Feb 05, 2007 11:12 am
Author: Teelk
Looks like you do need an edit in there.

OPEN blocks/blocks_imp_online_users.php
FIND
Code: Select all
                    if ( ($row['user_level'] == ADMIN) && ($row['user_id'] == 2) )                     {                         $row['username'] = '<b>' . $row['username'] . '</b>';                         $style_color = 'foundercolor';                     }

REPLACE WITH
Code: Select all
                    if ( ($row['user_level'] == ADMIN) && ($row['user_id'] == 2) || ($row['user_level'] == ADMIN) && ($row['user_id'] == X))                     {                         $row['username'] = '<b>' . $row['username'] . '</b>';                         $style_color = 'foundercolor';                     }
X being the user_id of the other user you want to be board founder.

PostPosted: Mon Feb 05, 2007 11:27 am
Author: Leadfoot
Thats got it. Many thanks again. I thought that might be the edit but I am still quite noobish with code.

PostPosted: Tue Sep 18, 2007 9:38 am
Author: zenrei
just a note... you may have to do the same edit in blocks_imp_online_users2.php if you're using the OTHER who's online block