Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-04-30 14:46:17

amandahope
New Member
From: Massachusetts, USA
Registered: 2006-04-30
Posts: 3
Website

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

#3 2006-05-05 17:54:01

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

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.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

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

Board footer

Powered by FluxBB