 | Choose Who to Accept PMs From MOD |  |
Posted: 08/26/2007 5:32 PM |
|
|
|
|
|
| Citation |
| Posts |
1017 |
| Word Cnt. |
64,643 |
| BDay |
Apr 18 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Apr 01, 2007
Local time: 5:47 PM
Location: UNITED ARAB EMIRATES
|

|
|
|
|
 |
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.
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Choose Who to Accept PMs From MOD |  |
Posted: 08/26/2007 5:52 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 9:47 AM
Location: St Pete, FL
|

|
|
|
|
 |
Go ahead and post the error message(s) that you received in EM for this MOD so that I can walk you through it...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Choose Who to Accept PMs From MOD |  |
Posted: 08/26/2007 6:08 PM |
|
|
|
|
|
| Citation |
| Posts |
1017 |
| Word Cnt. |
64,643 |
| BDay |
Apr 18 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Apr 01, 2007
Local time: 5:47 PM
Location: UNITED ARAB EMIRATES
|

|
|
|
|
 |
Okay
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" /> <input type="reset" value="{L_RESET}" name="reset" class="liteoption" /></td>
MOD script line #583 :: FAQ :: Report
|
|
|
|
 |
 |
| Back to Top |
|
|
 | Re: Choose Who to Accept PMs From MOD |  |
Posted: 08/26/2007 6:13 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 9:47 AM
Location: St Pete, FL
|

|
|
|
|
 |
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" /> <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...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Choose Who to Accept PMs From MOD |  |
Posted: 08/26/2007 6:33 PM |
|
|
|
|
|
| Citation |
| Posts |
1017 |
| Word Cnt. |
64,643 |
| BDay |
Apr 18 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Apr 01, 2007
Local time: 5:47 PM
Location: UNITED ARAB EMIRATES
|

|
|
|
|
 |
Thanks brother. I did and it worked.
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.
[/code] |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Choose Who to Accept PMs From MOD |  |
Posted: 08/26/2007 6:39 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 9:47 AM
Location: St Pete, FL
|

|
|
|
|
 |
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
|
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Choose Who to Accept PMs From MOD |  |
Posted: 08/26/2007 6:43 PM |
|
|
|
|
|
| Citation |
| Posts |
1017 |
| Word Cnt. |
64,643 |
| BDay |
Apr 18 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Apr 01, 2007
Local time: 5:47 PM
Location: UNITED ARAB EMIRATES
|

|
|
|
|
 |
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  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Choose Who to Accept PMs From MOD |  |
Posted: 08/26/2007 6:45 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 9:47 AM
Location: St Pete, FL
|

|
|
|
|
 |
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...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Choose Who to Accept PMs From MOD |  |
Posted: 08/26/2007 6:49 PM |
|
|
|
|
|
| Citation |
| Posts |
1017 |
| Word Cnt. |
64,643 |
| BDay |
Apr 18 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Apr 01, 2007
Local time: 5:47 PM
Location: UNITED ARAB EMIRATES
|

|
|
|
|
 |
Right you are.
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  |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
|