TinyPortal

Development => Feedback => Topic started by: OIDanTheManIO on November 13, 2005, 04:38:41 PM

Title: Fix for "Write Comment( 0 Comments)"
Post by: OIDanTheManIO on November 13, 2005, 04:38:41 PM
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>
Title: Re: Fix for "Write Comment( 0 Comments)"
Post by: Xarcell on November 13, 2005, 07:37:01 PM
I like it the way it is...
Title: Re: Fix for "Write Comment( 0 Comments)"
Post by: OIDanTheManIO on November 14, 2005, 03:38:30 AM
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...
Title: Re: Fix for "Write Comment( 0 Comments)"
Post by: 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. :)
Title: Re: Fix for "Write Comment( 0 Comments)"
Post by: bloc on November 14, 2005, 01:21:16 PM
I haven't tried it out..but what does it change?
Title: Re: Fix for "Write Comment( 0 Comments)"
Post by: OIDanTheManIO on November 14, 2005, 03:29:44 PM
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
Title: Re: Fix for "Write Comment( 0 Comments)"
Post by: bloc on November 14, 2005, 06:52:01 PM
ah, ok. A wrong space there. I will correct it.
Title: Re: Fix for "Write Comment( 0 Comments)"
Post by: Xarcell on November 16, 2005, 10:34:56 PM
Lol, I didn't even really notice that. Shame on me...
Title: Re: Fix for "Write Comment( 0 Comments)"
Post by: OIDanTheManIO on November 17, 2005, 03:54:02 AM
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.