Hey guys, I've been doing trial and error modding the needed 4 files to get SMF ads running on a Warzone theme. The ad module works fine on the default theme, but this one is giving me trouble. Each time I try it, I get the "template parse error" message, so it's knocking something out of whack.
Any help would be much appreciated!
Attach the templates you've edited.
Here are copies of the files without the SMF code in-place.
Please include them with the edits you've made.
Attached. Much appreciated!
Display.template.php
Find:
</tr>';
</td></tr>';
Replace with:
</tr>
</td></tr>';
Was that the only error that was messing it up?
That I could see, yes. Could you try making that edit and see if anything changes for the better? If you get an error, could you post the detail of the error, such as the line and file?
Just did that, and this is the error:
Template Parse Error!
There was a problem loading the /Themes/Warzone/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.
You may want to try to refresh this page or use the default theme.
syntax error, unexpected T_STRING, expecting ',' or ';'
Unfortunately, you deleted your templates so I can't look back into them.
Sorry. We had to do a quick fix, so I've manually inserted ad tags into the forum. I'll have to re-visit this later. Thanks for trying :)