Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
MOD versions...
Post new topic   Reply to topic View previous topic :: View next topic
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
MOD versions...
PostPosted: 03/25/2007 11:49 AM Reply with quote
Dove
lakeccrunner
Dove
Posts 76
Word Cnt. 5,619
BDay N/A
Sign N/A
Joined: Mar 17, 2007
Local time: 5:03 PM
blank.gif
I use version 2.0.21, and I am trying to install the Advanced Color Management MOD, which is compatible with 2.0.19. Is there any possible way that I could install it? I keep getting critical errors, saying that the lines it is trying to find, do not exist, so, for each of those errors, I have gone into the .txt file that controls the EasyMOD functions, and I have changed them to the equivalent lines in the 2.0.21 version. But I have come to this error:

Critical Error

FIND FAILED: In file [includes/page_header.php] could not find:

if ( $row['user_level'] == ADMIN )
{
$row['username'] = '' . $row['username'] . '';
$style_color = 'style="color:#' . $theme['fontcolor3'] . '"';
}
else if ( $row['user_level'] == MOD )
{
$row['username'] = '' . $row['username'] . '';
$style_color = 'style="color:#' . $theme['fontcolor2'] . '"';
}


And I have gone into the page_header. php file for the 2.0.21 version to find a line that looks like that, but I couldn't find it. Is there any possible way anyone could help me? Or do I just have to give up on this MOD?
Back to Top
View user's profile Find all posts by lakeccrunner Send private message  
Re: MOD versions...
PostPosted: 03/25/2007 3:24 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 6:03 PM
Location: St Pete, FL
peace.gif
There is almost always a way to successfully install these MODs, so I don't think you should give up.  I have installed over 800 MODs into RCF using EM and we have 12 available templates.  I've found very few MODs that I couldn't install here...

If the following doesn't work, then I will need to see a text link to your page_header.php file.  It's possible that you have already installed a MOD that altered this section of the code...

Ok, try this:

OPEN
AGCM.txt

FIND
Code:
#
#-----[ FIND ]------------------------------------------------
#
            if ( $row['user_level'] == ADMIN )
            {
               $row['username'] = '<b>' . $row['username'] . '</b>';
               $style_color = 'style="color:#' . $theme['fontcolor3'] . '"';
            }
            else if ( $row['user_level'] == MOD )
            {
               $row['username'] = '<b>' . $row['username'] . '</b>';
               $style_color = 'style="color:#' . $theme['fontcolor2'] . '"';
            }

#
#-----[ REPLACE WITH ]----------------------------------------
#
//-- mod : Advanced Group Color Management -------------------------------------
//-- delete
//   if ( $row['user_level'] == ADMIN )
//   {
//      $row['username'] = '<b>' . $row['username'] . '</b>';
//      $style_color = 'style="color:#' . $theme['fontcolor3'] . '"';
//   }
//   else if ( $row['user_level'] == MOD )
//   {
//      $row['username'] = '<b>' . $row['username'] . '</b>';
//      $style_color = 'style="color:#' . $theme['fontcolor2'] . '"';
//   }
//-- add
            $style_color = ' style="color : #' . $colors->get_user_color($row['user_group_id'], $row['user_session_time']) . ';" class="username_color"';
//-- fin mod : Advanced Group Color Management ---------------------------------

REPLACE WITH
Code:
#
#-----[ FIND ]------------------------------------------------
#
if ( $row['user_level'] == ADMIN )
#
#-----[ BEFORE, ADD ]------------------------------------------
#
/*-- mod : Advanced Group Color Management -------------------------------------
//-- delete
#
#-----[ FIND ]------------------------------------------------
#
$theme['fontcolor2']
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
-- fin mod : Advanced Group Color Management ---------------------------------*/

Save, upload, and try again using EM...

Creating text Links for phpBB files

First create a duplicate of the phpBB file on your PC, then rename the file by adding .txt to the end of the file name.  Next upload the file to a location on your FTP Server accessible to the public and provide a link back here for us to analyze it...

The path to your file could look something like this now:

http://yourdomain.com/downloads_folder/page_header.txt

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: MOD versions...
PostPosted: 03/25/2007 5:09 PM Reply with quote
Dove
lakeccrunner
Dove
Posts 76
Word Cnt. 5,619
BDay N/A
Sign N/A
Joined: Mar 17, 2007
Local time: 5:03 PM
blank.gif
^ Ok...I just tried it, and that section has been erased due to another MOD being installed...
Back to Top
View user's profile Find all posts by lakeccrunner Send private message  
Re: MOD versions...
PostPosted: 03/25/2007 5:17 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 6:03 PM
Location: St Pete, FL
peace.gif
Basically all this section is doing is commenting out the entire section.   So if another MOD has already removed it, you can remove this section from the MOD script too...

You may find that you have two conflicting MODs here since they are modifying the same code.  Installing this might break the first MOD...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: MOD versions...
PostPosted: 03/25/2007 6:01 PM Reply with quote
Dove
lakeccrunner
Dove
Posts 76
Word Cnt. 5,619
BDay N/A
Sign N/A
Joined: Mar 17, 2007
Local time: 5:03 PM
blank.gif
Yeah...I did it. And it wouldn't work with my template, and messed a ton of stuff up...unless I find an easier way, I probably won't install it...I've already ruined my forums once, by installing MOD's.
Back to Top
View user's profile Find all posts by lakeccrunner Send private message  
Re: MOD versions...
PostPosted: 03/25/2007 6:29 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 6:03 PM
Location: St Pete, FL
peace.gif
The good thing is that you are using EM to install these MODs.  So if a MOD hoses your board, you can easily Restore the EM Backups and the board would be back to normal again.  I always recommend creating and using a Test board to initially install these MODs so you can work out any problems so that when you are ready to install it on your Live board, they will install easily without flaw and your community would never be disrupted...

I'm leaving for the evening, so if there are any other problems, I will try to look at them when I return home.  I will leave with these instructions and hope that they can be of use to you...

Restoring EM Backups

If a MOD that you installed with EM hosed your board or you decide that you just don't want it, simply go into EM History in your ACP MOD Center and click on the Details button next to the MOD entry..



On the bottom of the next page, select Restore Backups and press the Go button. Make sure you DON'T select the Remove Record option or you will be forced to manually rolll back the EM backups that were created for you. I will have to walk you through that if need be...



Next you will see a page to confirm eht operation.  You would choose Yes:



MODs can only be uninstalled in reverse order that they were installed: FILO (First In, Last Out).  So if you installed a MOD, then several others, then decided to remove the first one, you would have to Restore the backups of the other MODs before you could Restore the backups on the first MOD...

Restoring EM Backups (Manual Instructions)

If you are unable to get into the ACP, you will need to use these manual instructions to Restore the EM Backups...

Download the backups folder that EM created for you in the MOD sub-folder found in admin/mods.  Strip the .txt extension from each file in every folder in the backups folder.  So the resulting file extensions will be php, tpl, css, and cfg.  Upload the files back to their proper locations on your board; i.e.  

  • copy backups/admin/*.* to phpBB/admin/*.*
  • copy backups/includes/*.* to phpBB/includes/*.*
  • copy backups/language/lang_english/*.* to phpBB/language/lang_english/*.*
  • copy backups/templates/subSilver/*.* to phpBB/templates/subSilver/*.*
  • copy backups/*.* to phpBB/*.*


Of course if you have alternate templates and language folders, you will need to copy the files for them as well.  I'm referring to phpBB as your forum's root folder in the above copy commands.  If your root folder has any other name, just substitute phpBB with the name of your forum's root folder name...

Creating Test phpBB Board

I can give you enough to get started.  

  1. The first thing you want to do is download all of your board files and folders to your PC.  
  2. Next, create a folder on your server called Test...
  3. Upload all of the board files and folders that you just downloaded to your PC back to your new Test folder...
  4. Create a new Test database
  5. Open the Test config.php file in your favorite editor and modify the dbname, dbuser, and dbpasswd settings to match your new Test Database
  6. Create a database backup of your Live board database from your ACP...
  7. Restore your new database backup back to your new Test database.  This will probably take a long time.  You will probably need some help with this step unless you are very familiar with phpMyAdmin...
  8. Modify phpbb_config table settings in your Test database that contain a full or partial board path to match the URL path on your new board


Your new Test board should be good to go at this point.  My instructions above may take some time to accomplish, but it is worth it to have a Test board available to test install new MODs that you want to install on your Live board.

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
All times are GMT - 5 Hours

Page 1 of 1


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.0683s (PHP: 75% - SQL: 25%) - SQL queries: 46 - GZIP disabled - Debug on