Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
[Solved] Using EM
Post new topic   Reply to topic View previous topic :: View next topic
Goto page: Previous  1, 2
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
Re: Using EM
PostPosted: 05/27/2007 10:50 AM Reply with quote
Citation
Karen
Citation
Posts 1253
Word Cnt. 68,166
BDay Nov 9
Sign Scorpio
Sex Sex:Female
Joined: Jan 06, 2006
Local time: 2:42 PM
greatbrE.gif
Thanks for trying  headbang

It installed on subSilver and Diddle but not on Girltalk2, and there are only the two template edits and I double checked those  dontknow  Its probably staring me in the face  Brick wall  hysterical2

Its there now in girlTalk, I think it was because I had something ticked in Xtreme Styles that I shouldn't of  blob8
Back to Top
View user's profile Find all posts by Karen Send private message   Visit poster's website Phoogle Map
Re: [Solved] Using EM
PostPosted: 05/27/2007 3:45 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: 10:42 AM
Location: St Pete, FL
peace.gif
Karen wrote:
What do you do when a mod doesn't install properly?
Part of the mod installed but there was a FIND error. Do you finish the mod by hand or do you uninstall what's been done and start from scratch? This mod had SQL changes so I can't run it again  dontknow

When a MOD doesn't install properly, I use EM to Restore the Backups, then I correct the MOD script.  If the problem is with the Warning errors, that tells you that EM won't be able to add the MOD code to the template based on the current MOD commands, which are usually too explicit, limiting the number of templates the MOD can install easily into.  Usually, you can trm down the FIND and IN-LINE FIND statements so that the MOD can be correctly installed into almost any standard template...

There are some templates that are just too different from standard to be able to do this easily though, so for those, the code may have to be manually added to the template file to get it to work correctly.  Sometimes that can be a challenge to figure out on very difficult templates, such as subMerged for example...

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: [Solved] Using EM
PostPosted: 05/27/2007 3:53 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: 10:42 AM
Location: St Pete, FL
peace.gif
This is a perfect example of where the MOD author provided FAR too much information in the FIND command.  All it takes is for ONE character to be different or missing for the FIND to fail in some templates.  The more code in the FIND command, the more likely that it won't be able to install in the greatest number of templates.  With EM, less is best.  So this is how I would correct the FIND statements for the templates:

OPEN
users_set_posts_topics.mod

FIND
Code:
#
#-----[ FIND ]------------------------------------------
#
   <tr>
     <td class="row1"><span class="gen">{L_ALWAYS_ALLOW_SMILIES}</span></td>
     <td class="row2">
      <input type="radio" name="allowsmilies" value="1" {ALWAYS_ALLOW_SMILIES_YES} />
      <span class="gen">{L_YES}</span>&nbsp;&nbsp;
      <input type="radio" name="allowsmilies" value="0" {ALWAYS_ALLOW_SMILIES_NO} />
      <span class="gen">{L_NO}</span></td>
   </tr>

REPLACE WITH
Code:
#
#-----[ FIND ]------------------------------------------
#
{ALWAYS_ALLOW_SMILIES_NO}
{L_NO}
</tr>

FIND
Code:
#
#-----[ FIND ]------------------------------------------
#
   <tr>
     <td class="row1"><span class="gen">{L_ALWAYS_ALLOW_SMILIES}:</span></td>
     <td class="row2">
      <input type="radio" name="allowsmilies" value="1" {ALWAYS_ALLOW_SMILIES_YES} />
      <span class="gen">{L_YES}</span>&nbsp;&nbsp;
      <input type="radio" name="allowsmilies" value="0" {ALWAYS_ALLOW_SMILIES_NO} />
      <span class="gen">{L_NO}</span></td>
   </tr>

REPLACE WITH
Code:
#
#-----[ FIND ]------------------------------------------
#
{ALWAYS_ALLOW_SMILIES_NO}
{L_NO}
</tr>

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

EM only needs only a small amount of unique text on each line of multiple line FINDs to know whether it is looking in the right place or not.  It is not necessary to include the full lines of code to tell EM where to find the code.  Less is almost always best in EM.  The trick is not to simplify the code too much so that EM finds the wrong place to add the code...

If you don't understand why my suggestion above will work, please ask. Once you understand the basics of how to get these MODs to install cleanly, you should be able to install even the most difficult MODs using EM...

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: [Solved] Using EM
PostPosted: 05/27/2007 4:25 PM Reply with quote
Citation
Karen
Citation
Posts 1253
Word Cnt. 68,166
BDay Nov 9
Sign Scorpio
Sex Sex:Female
Joined: Jan 06, 2006
Local time: 2:42 PM
greatbrE.gif
Great - I understand completely!  When I install by hand I search for just a snippet of code which is just you are saying to tell EM to do isn't it  headbang
I've never used EM to reinstall the back ups - how do you do that?
Back to Top
View user's profile Find all posts by Karen Send private message   Visit poster's website Phoogle Map
Re: [Solved] Using EM
PostPosted: 05/27/2007 5:16 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: 10:42 AM
Location: St Pete, FL
peace.gif
Yes, EM searches for text much the way you and I do in our text editor.  It doesn't need to find the entire line of code but it does have to be an exact match of the code that we are searching for on each line.  So the best thing is to make the FIND statements as simple as possible without simplifying them too much.  That increases the odds dramatically that the MOD will install on the most number of boards and templates without problem...

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...

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: [Solved] Using EM
PostPosted: 05/27/2007 6:53 PM Reply with quote
Citation
Karen
Citation
Posts 1253
Word Cnt. 68,166
BDay Nov 9
Sign Scorpio
Sex Sex:Female
Joined: Jan 06, 2006
Local time: 2:42 PM
greatbrE.gif
Thanks for explaining  headbang

Have saved it for future reference  Applause
Back to Top
View user's profile Find all posts by Karen Send private message   Visit poster's website Phoogle Map
Re: [Solved] Using EM
PostPosted: 05/28/2007 12:29 AM 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: 10:42 AM
Location: St Pete, FL
peace.gif
It's good to know how to do this.  It probably will save you many, many times if you plan to continue installing MODs on your board.  It's certainly saved me many, many times...

banana
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: [Solved] Using EM
PostPosted: 05/31/2007 6:21 PM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 3:42 PM
Location: Birmingham, UK.
greatbrE.gif
Defo, cheers for the info Nightrider  headbang
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
 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
Goto page: Previous  1, 2
Page 2 of 2


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.0954s (PHP: 60% - SQL: 40%) - SQL queries: 51 - GZIP disabled - Debug on