Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Changing square brackets around comment count
A completely minor question (but important to me, control freak that I am)… is there a way to change the square brackets surrounding the comment count to something else, parentheses for instance?
Thanks in advance!
Offline
#2 2006-05-05 17:11:52
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Changing square brackets around comment count
You’ll probably have solved this already, but if not:
In /publish/taghandlers.php, function comments_invite, find this line (around 766):
<pre>$ccount = ($comments_count && $showcount) ? ‘ [‘.$comments_count.’]’ : ‘’;</pre>
You can replace the square braquets around .$comments_count. with parentheses.
Offline
Re: Changing square brackets around comment count
Hi,
Els’s solution is permanent until upgrade. When the upgrade time arrives, you will need to remake the changes.
To avoid changing files (that will make your update process a bit “hard”) you can try some of the suggestions here
Comments invite and comments count are very customizable.
Offline
#4 2006-05-05 18:21:37
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Changing square brackets around comment count
Ah yes, Maniquí, your solution is much better :)
Offline