By nahids29 on
What does comment.tpl.php do? i cant understand the theme documentation can anyone have patience to explain me with examples! please guide me through the coding part too
What does comment.tpl.php do? i cant understand the theme documentation can anyone have patience to explain me with examples! please guide me through the coding part too
Comments
Formats comments
comment.tpl.php formats comments. It is invoked repeatedly, once for each comment.
Unless you want to change the default presentation of comments, your template doesn't need this file. The default code is simple and obvious.
Oh this is
Oh this is the default code.. we dont need to change it? hmm lemme ask.
what is »?
» is the 'right-angle
» is the 'right-angle quote' HTML entity. See http://www.w3schools.com/tags/ref_entities.asp for a fuller list.
Note that it needs to end with a semi-colon - if you'd entered that missing semi-colon, you would have seen a "»" character :)
i dint understand
so it just prefix the "»" character before the links is it? but it doesn't end with the semi colon there! so what will it be displayed as?
That's correct, it will
That's correct, it will prefix with ».
The semi-colon is there in the pasted code I've seen - is it missing from your own copy?
well i dint get it
Well the semi colon is there in the code u pasted and the code i pasted too.. i have no clue which semi colon u talking about