Page 1 of 1

very basic help needed - editing a file

PostPosted: Mon Mar 14, 2011 9:06 am
Author: rrswife
I need to change the Board Founder
"I" am currently the board founder --- but, I'm handing the forum over to one of the other admins... and I need his account to be "board founder" and my account to be just a regular member.

I found the editing script here --- what files to go to and what to change... It's my understanding I basically need to go to the right file in the database and change the user_id from mine to his.

When I get to that file and find the spot to change the user_id number, I cannot just type and change it.
It's been way too long since I messed with any of this - and I'm very very much a newb... extremely limited knowledge about phpBB, html, etc....

How do I edit the file?

Can someone give me some steps? ....I have notepad... and I can copy the info from that file to notepad and make the change... but, how do I get the changed info saved to the database?

(I know this is a realllllly stupid/basic question.... so thanks in advance for your patience.... if it matters - it's phpBB 2.0.23 / IntegraMod 141)

Re: very basic help needed - editing a file

PostPosted: Tue Mar 15, 2011 2:28 am
Author: Helter
not a stupid question at all.
First you need to make him an admin.
Then find his user id#
Your user id is #2 if your the board founder.
Using phpmyadmin ( you should have a link to this in your CPanel or Plesk ) browse through the database table "phpbb_users" until you find his user id.
Then you'll edit the file "forum root/profilcp/functions_profile.php
FIND
Code: Select all
      $res = USER;
      if ( ($userdata['user_level'] == ADMIN) && ($userdata['user_id'] == 2) )


change the "2" to his user id. Thats all there is to it.

if his user id is 47 then the code will look like this
Code: Select all
      $res = USER;
      if ( ($userdata['user_level'] == ADMIN) && ($userdata['user_id'] == 47) )

or you can both be founders by replacing the code with this
Code: Select all
      $res = USER;
      if ( ($userdata['user_level'] == ADMIN) && ($userdata['user_id'] == 2) || ($userdata['user_level'] == ADMIN) && ($userdata['user_id'] == 47) )

you can edit this file using either an ftp client such as the free program "filezilla" if you know your ftp login info, or you can use the built in file editor in your web hosting CPanel or Plesk
If you cant figure it out Private Message me your website control panel login info and ill do it for you. If you have CPanel it will only take a minute. Plesk may take 5 minutes. I can also make you both founders if you wish so you wont completely loose control of the site <img>

Re: very basic help needed - editing a file

PostPosted: Tue Mar 15, 2011 1:26 pm
Author: rrswife
Thank you!!!!!!!!!!!! Ignore my PM to you ----- your instructions helped and I did it all by myself (so proud) haha!

<img> thanks a ton!

Re: very basic help needed - editing a file

PostPosted: Tue Mar 15, 2011 5:25 pm
Author: rrswife
HHHmmm.... I thought I had it... but, we still have a problem.
Making the above code change DID change my username to orange (admin) and the new owner is now red (board founder) on the forum index and when posts are made. However --- in the box on the left margin that says "who is online" I am still red and he is still orange.... and We cannot change my account from admin to "user". It says we are not allowed to make that change.

I am assuming I am still listed as board founder somewhere else??? Is there another file to change?

(I'm also the one that is still getting the private messages and emails concerning any 'alerts' about the forum)

any ideas that I can try? Thanks!!! :) thanks

Re: very basic help needed - editing a file

PostPosted: Wed Mar 16, 2011 12:16 am
Author: Helter
you should be able to set your default usergroup to "registered users". That will change your color to the normal registered user color.
You can also go to acp/Redirect Admin PM's and set this to his username so he will get the administration pm's

Re: very basic help needed - editing a file

PostPosted: Wed Mar 16, 2011 6:11 am
Author: rrswife
I get this:

Sorry, you're not authorized to view/change these settings.

(I set up a generic admin acct... I log in as the generic admin and try to change my real account from admin to "user" and I get the above message)

Re: very basic help needed - editing a file

PostPosted: Thu Mar 17, 2011 12:26 am
Author: Helter
that is because only a founder can alter another founder account.
youll probably have to alter your account via your new founders account

Re: very basic help needed - editing a file

PostPosted: Thu Mar 17, 2011 5:17 am
Author: rrswife
"HelterSkelter" wrote:that is because only a founder can alter another founder account.
youll probably have to alter your account via your new founders account



We tried that... the new founder gets the same "not allowed" message that I get.
"some where" I must still have a setting that needs changed...