Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
Choose Who to Accept PMs From MOD
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
Choose Who to Accept PMs From MOD
PostPosted: 08/26/2007 5:32 PM Reply with quote
Citation
abdulbasit
Citation
Posts 1017
Word Cnt. 64,643
BDay Apr 18
Sign Aries
Sex Sex:Male
Joined: Apr 01, 2007
Local time: 5:50 PM
Location: UNITED ARAB EMIRATES
unitedACa.gif
Hello brother,

I got a MOD in which there were lots of errors which I fixed it but again I got stuck in template file where it says error in subSilver template file and when I fix that, it shows error in all the other template files. So for this you told me that If there is any problem such like this, let me know so that you will guide me on what I should do which will fix all the template files with 1 changes in the MOD file.

The error comes in choose_who_to_accept_pms_from_v0.2.0 MOD in templates/subSilver/profile_add_body.tpl

Can you please fix and let me know what to do with this so that I can be careful and know how to install the MODs I install in future.

Boo hoo!
Back to Top
View user's profile Find all posts by abdulbasit Send private message [ Hidden ] Visit poster's website Yahoo Messenger MSN Messenger
Re: Choose Who to Accept PMs From MOD
PostPosted: 08/26/2007 5:52 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: 9:50 AM
Location: St Pete, FL
peace.gif
Go ahead and post the error message(s) that you received in EM for this MOD so that I can walk you through it...

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: Choose Who to Accept PMs From MOD
PostPosted: 08/26/2007 6:08 PM Reply with quote
Citation
abdulbasit
Citation
Posts 1017
Word Cnt. 64,643
BDay Apr 18
Sign Aries
Sex Sex:Male
Joined: Apr 01, 2007
Local time: 5:50 PM
Location: UNITED ARAB EMIRATES
unitedACa.gif
Okay Smile

Here is the error I get while installing through EM.

Code:
Critical Error

FIND FAILED: In file [templates/subSilver/profile_add_body.tpl] could not find:

<td class="catBottom" colspan="2" align="center" height="28">{S_HIDDEN_FIELDS}<input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" />&nbsp;&nbsp;<input type="reset" value="{L_RESET}" name="reset" class="liteoption" /></td>

MOD script line #583 :: FAQ :: Report
Back to Top
View user's profile Find all posts by abdulbasit Send private message [ Hidden ] Visit poster's website Yahoo Messenger MSN Messenger
Re: Choose Who to Accept PMs From MOD
PostPosted: 08/26/2007 6:13 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: 9:50 AM
Location: St Pete, FL
peace.gif
Ok, try this:

OPEN
choose_who_to_accept_pms_from_v0.2.0.txt

FIND
Code:
#
#-----[ FIND ]------------------------------------------
#
      <td class="catBottom" colspan="2" align="center" height="28">{S_HIDDEN_FIELDS}<input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" />&nbsp;&nbsp;<input type="reset" value="{L_RESET}" name="reset" class="liteoption" /></td>

REPLACE WITH
Code:
#
#-----[ FIND ]------------------------------------------
#
{L_SUBMIT}

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

Notice all that needed to be done is to simplify what is being searched for here.  The next command is an IN-LINE FIND so it will surgically look for and add the new code once you zero in on the correct line...

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: Choose Who to Accept PMs From MOD
PostPosted: 08/26/2007 6:33 PM Reply with quote
Citation
abdulbasit
Citation
Posts 1017
Word Cnt. 64,643
BDay Apr 18
Sign Aries
Sex Sex:Male
Joined: Apr 01, 2007
Local time: 5:50 PM
Location: UNITED ARAB EMIRATES
unitedACa.gif
Thanks brother. I did and it worked. blob8
But I didn't understand the logic behind what you said
Quote:
Notice all that needed to be done is to simplify what is being searched for here.  The next command is an IN-LINE FIND so it will surgically look for and add the new code once you zero in on the correct line...


What I will do is If I get any similar problem with some other MOD, than I will try to simplify it by keeping this MOD script change in my mind and see what happens. If anything goes wrong, i will let you know or will ask you before installing such kind of a MOD.

Boo hoo!  [/code]
Back to Top
View user's profile Find all posts by abdulbasit Send private message [ Hidden ] Visit poster's website Yahoo Messenger MSN Messenger
Re: Choose Who to Accept PMs From MOD
PostPosted: 08/26/2007 6:39 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: 9:50 AM
Location: St Pete, FL
peace.gif
If you want to match the largest number of templates, you want to limit the chance that something in the FIND won't match.  The original FIND would work for a vanilla copy of subSilver but it is likely to fail on many other templates.  IOW, the MOD author include far more information than EM needed to find the line that he wanted to adjust.  You want to include as much information as you need to make sure that EM finds the correct line, but not so much that EM is likely not to be able to find the code in all of your templates.  Since the {L_SUBMIT} variable is unique and only listed once in the page, then that is all you need to tell EM where to move the file pointer.  Once there, the IN-LINE FIND zeroed in on the point to add the new code...

Just remember with EM, less is usually best.  You just want to make sure that you don't over-simplify.  If you want to add code somewhere in the middle of a template file, you really wouldn't want to use this in your FIND statement since EM will find the first instance of <table, which may not be where you wanted to make the adjustments.  This would work great though if you wanted to add code to the top of the file...

Code:
#
#-----[ FIND ]---------------------------------
#
<table


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: Choose Who to Accept PMs From MOD
PostPosted: 08/26/2007 6:43 PM Reply with quote
Citation
abdulbasit
Citation
Posts 1017
Word Cnt. 64,643
BDay Apr 18
Sign Aries
Sex Sex:Male
Joined: Apr 01, 2007
Local time: 5:50 PM
Location: UNITED ARAB EMIRATES
unitedACa.gif
Thanks for making me understand. I think I have understood now. Hopefully...

Will come to know once I will be in such situation again and let you know whether I pass or fails  Boo hoo!
Back to Top
View user's profile Find all posts by abdulbasit Send private message [ Hidden ] Visit poster's website Yahoo Messenger MSN Messenger
Re: Choose Who to Accept PMs From MOD
PostPosted: 08/26/2007 6: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: 9:50 AM
Location: St Pete, FL
peace.gif
It seems odd at first, but once you understand these basic and simple tricks, you can install the most difficult MODs without breaking a sweat.  I'm sure the more you play with it, the more it will make sense to you...

I'm going to be taking off for the rest of the night, so hopefully from here on out, things will go smoothly.  I should be home very early in the morning, but since I didn't sleep at all last night, I probably won't be up for doing anything when I get home.  I will try to take a look at your progress tomorrow after I've gotten some rest...

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: Choose Who to Accept PMs From MOD
PostPosted: 08/26/2007 6:49 PM Reply with quote
Citation
abdulbasit
Citation
Posts 1017
Word Cnt. 64,643
BDay Apr 18
Sign Aries
Sex Sex:Male
Joined: Apr 01, 2007
Local time: 5:50 PM
Location: UNITED ARAB EMIRATES
unitedACa.gif
Right you are.  prayer

Sure brother. You must have rest now. You seems to be online for a long time. Even I will go to sleep now.

You take cares, have a good night and sweetest dreams  Boo hoo!
Back to Top
View user's profile Find all posts by abdulbasit Send private message [ Hidden ] Visit poster's website Yahoo Messenger MSN Messenger
 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.1012s (PHP: 47% - SQL: 53%) - SQL queries: 54 - GZIP disabled - Debug on