PDA

View Full Version : Random HTML code...


ps2wiz
04-06-2013, 11:31 PM
My forum is heavily modified with plugins and manual template edits. I believe I improperly closed a </vb:if> tag and now this appears on my website.

http://img534.imageshack.us/img534/7572/vbifssled.jpg

My question is, are there any tools, tips or tricks on diagnosing on which style template or php file to inspect? Or any way to narrow down where this malformed tagged is coming from?

Thanks in advance!

kh99
04-06-2013, 11:46 PM
In the admincp, go to Settings > Options > Add Template Name in HTML Comments and temporarily turn on "Add Template Name in HTML Comments". Then (after reloading the forum page) you can view the html source, search for /vb:if, and see which templates it's in. You may need to do a little searching through the source looking for the begin and end comments to figure out which template you're in. If you go back in the source and you keep finding sets of begin/end comments, then there's a good chance the problem is in the "main" template for that page (which should have a 'begin' comment at the very beginning).

ps2wiz
04-07-2013, 12:43 AM
Thank you, I learned something new today and was able to fix it.