treblemaker wrote:
Hmm... that didn't work so well:
Code: Select all
#
#-----[ OPEN ]------------------------------------------
#
templates/subTrail/overall_header.tpl
Checked and double checked that the FIND strings are found, but still get
- CRITICAL ERROR: Could not modify [templates/subTrail/overall_header.tpl]
Does easymod reject a template mod if it's not explicitly for subSilver? (subSilver is present and installed, though.)
No, EM will not reject any template unless:
- there is a problem with one of it's files, such as the file is missing or corrupt, or if the file permissions are set incorrectly,
- the font case of the template name is wrong,
- the template name is spelled incorrectly,
- the template is not installed in the ACP Styles Admin.
- the code in a FIND or IN-LINE FIND command cannot be found in the template file
So check to make sure the template name is subTrail, not subtrail, SubTrail, or any other font case combination. Make sure subTrail is installed in your ACP Styles Admin and make sure that the subTrail overall_header.tpl file exists. Make sure the file permissions are set correctly as well...
So is there more to this error message than what you posted? I can't tell if a FIND statement failed or whether EM couldn't find the subTrail overall_header.tpl from the OPEN command from the error message you listed above...
treblemaker wrote:
The problem occurs because I want to do a different mod for each theme. For example, in this case I have a different header image for each theme. In this example it's trivial to edit the templates by hand but I prefer to not make hand edits if at all possible (and prefer to not have multiple custom images called "phpBB_logo.gif" even if they are in different directories)
If you want to add different MODs to some templates than you do to others, there are ways to workaround the issue. If you only want to add code to your subSilver template and none of the others, you can temporarily delete the alternative templates in your ACP Styles Admin then install the MOD into subSilver only. Then you can reinstall the alternate templates, and install any MODs that you ONLY want to add to your alternate templates by changing subSilver to your alternate template name in the MOD Script OPEN commands...
If you want to install the same MODs into all of your templates but the code would be different for each template, you would want to create Template Only versions of the MODs that you can use for each alternate template. Template Only versions of the MOD are particularly helpful when attempting to bring a template designed for an older phpBB version up to speed with the phpBB version of your board. Here is how you create Template Only versions of the MODs and phpBB Updates...
Creating Template Only MODs
All you need to do is create Template Only versions of the MODs that you have installed.
- First create a duplicate of the MOD script in a new text file. To make it easier to remember, just use the same MOD filename that the MOD author used, but add _template_only to the name. So if you are using the TopicCalender.txt file, the new Template only version would be named TopicCalender_template_only.txt.
- Then save the new Template Only MOD and store it in it's own separate templates only folder...
- If there are any files included with the MOD that are supposed to be uploaded to template folders, store them in the new Template only MOD folder maintaining the same folder structure that the original MOD used...
- Next add the name of the new Template to the end of the MOD Title using your favorite Text editor. So the MOD Title could look something like this if Aeolus is your new template name:
Code: Select all
## MOD Title: Topic calendar - Part 1 (common to all setup) Aoelus
EM will recognize this as a new MOD if the MOD Title is different from what it has previously installed...
- Next strip out all NON-Template related modifications. All you want in this new Template Only version of the MOD are alterations for template files only. If there are any copy commands, only keep those that copy included files into template folders too..
- Then rename all instances of subSilver with your new Template name using the Replace All function that you can find in most text editors.
- Now you can upload the new Template Only MOD folder to the admin/mods and run it like you would any other MOD using EM.
[/list]
If you have added more than one new template, you would want to repeat Steps 6 & 7 for each Template except instead of using subSilver, you would use the name of the last template that you installed using this Template Only version of the MOD. So if the last template you modified with this was Aeolus and you want to apply the changes to Helius next, do a Replace All on Aoelus to Helius...
It really isn't that difficult to update each new template after the fact...