Page 1 of 1

Changes to the comment form how to

Posted: Mon Sep 16, 2013 3:06 am
by Stosh
Hi,

I'd like to make changes to the comment form (just let people know which fields are required, for now).

A little grepping seems to have led to commentform.tpl

But, that's where it gets kinda hairy.

I have competition as my template

There is no commentform.tpl in templates/competition

There are three different commentform.tpl.php variations in templates_c that each start with "competition" and then have a mangled string of characters, and finally "commentform.tpl.php".

there is also a default template that includes a commentform.tpl

So, which do I edit?

And can you clarify why?

Thanks if you can help.

-John

Re: Changes to the comment form how to

Posted: Mon Sep 16, 2013 9:16 am
by Timbalu
The default one, which is the fallback, if the template itself does not offer a changed file. So better copy the default/commentform.tpl to competition and make your desired changes in there. From now on Smarty compiler takes that one to compile in templates_c.

The files in "templates_c" are just translations - compilations from smarty-code to php-code internally, not to be touched by a user. So actually at last these PHP-Template codes are processed by your Webserver with PHP.

Re: Changes to the comment form how to

Posted: Thu Nov 07, 2013 9:50 pm
by Stosh
That makes sense Timbalu.

Thanks for the clear explanation.

I'll give it a try (real soon now) and let you know how it went.