TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 500
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 402
  • Total: 402

Fix for "Write Comment( 0 Comments)"

Started by OIDanTheManIO, November 13, 2005, 04:38:41 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

OIDanTheManIO

If you're like me and you can't stand that "Write Comment( 0 Comments)" layout, here's a fix for that to make it grammatically correct :D.

In TPortal.template.php...
Code (find:) Select
<div ' , ($news['is_last']=='theme' || $news['is_last']==false) ? 'class="windowbg"' : '' , ' style="padding: 6px;">', ($context['TPortal']['frontpage_limit_len']>0 && strlen($news['body'])>$context['TPortal']['frontpage_limit_len']) ? '<a href="' .$news['href']. '">'.$txt['tp-readmore'].'</a> &nbsp;&nbsp;' : '' , ' ' , $news['icon']!='noicon' ? '<img src="'.$settings['images_url'].'/TPmodify.gif" alt="*" /> '.$news['new_comment'].'( <a href="' .$news['href']. '">'.$news['replies'].' '.$txt['tp-comments'].'</a>)' : '' ,'</div>

Code (replace with:) Select
<div ' , ($news['is_last']=='theme' || $news['is_last']==false) ? 'class="windowbg"' : '' , ' style="padding: 6px;">', ($context['TPortal']['frontpage_limit_len']>0 && strlen($news['body'])>$context['TPortal']['frontpage_limit_len']) ? '<a href="' .$news['href']. '">'.$txt['tp-readmore'].'</a> &nbsp;&nbsp;' : '' , ' ' , $news['icon']!='noicon' ? '<img src="'.$settings['images_url'].'/TPmodify.gif" alt="*" /> '.$news['new_comment'].' (<a href="' .$news['href']. '">'.$news['replies'].' '.$txt['tp-comments'].'</a>)' : '' ,'</div>

Xarcell


OIDanTheManIO

Quote from: Xarcell on November 13, 2005, 07:37:01 PM
I like it the way it is...

Grammatically incorrect?  Well, that's a first...

IchBin

What can you say dtm.exe? Some of us are more anal.... haha! I know I am, at least sometimes. :)

bloc

I haven't tried it out..but what does it change?

OIDanTheManIO

Quote from: Bloc on November 14, 2005, 01:21:16 PM
I haven't tried it out..but what does it change?

Bloc, it changes "Write Comment( 0 Comments)" to "Write Comment (0 Comments)".

Quote from: IchBinâââ,¬Å¾Ã,¢ on November 14, 2005, 06:48:01 AM
What can you say dtm.exe? Some of us are more anal.... haha! I know I am, at least sometimes. :)

Heh, what can I say?ÂÃ,  :P

bloc

ah, ok. A wrong space there. I will correct it.

Xarcell

Lol, I didn't even really notice that. Shame on me...

OIDanTheManIO

Quote from: Xarcell on November 16, 2005, 10:34:56 PM
Lol, I didn't even really notice that. Shame on me...

I'm a grammar freak, that's why I noticed :P.

This website is proudly hosted on Crocweb Cloud Website Hosting.