Changes to the comment form how to

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Stosh
Regular
Posts: 75
Joined: Mon Oct 12, 2009 11:47 pm

Changes to the comment form how to

Post 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
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Changes to the comment form how to

Post 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.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Stosh
Regular
Posts: 75
Joined: Mon Oct 12, 2009 11:47 pm

Re: Changes to the comment form how to

Post 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.
Post Reply