SMFHacks.com

SMF Classifieds => Support => Topic started by: amwebby on March 09, 2013, 05:04:36 am

Title: Make Ending Date Text Smaller
Post by: amwebby on March 09, 2013, 05:04:36 am
How can I make the text of the Ending Date smalltext as per the Time Left in the screen shot attached?

I've searched through the classifieds.template.php but I can't find it.
Title: Re: Make Ending Date Text Smaller
Post by: amwebby on March 12, 2013, 06:41:54 am
No idea?
Title: Re: Make Ending Date Text Smaller
Post by: SMFHacks on March 12, 2013, 12:52:22 pm
For SMF 1.1.x

The code is in the function ClassifiedsShowListingsRow()

And is controlled by these lines

Code: [Select]
if ($modSettings['class_catlist_listingend'])
echo '<td>', ($row['expiredate'] == 0 ? $txt['class_expire_never'] : date($modSettings['class_set_date_format_mdy'],$row['expiredate']) . '<br />' . date($modSettings['class_set_date_format_hia'],$row['expiredate'])  ) , '</td>';

if ($modSettings['class_catlist_timeleft'])
echo '<td>', ($row['expiredate'] == 0 ? $txt['class_expire_never'] :   smf_cattimeleft( date("Y",$row['expiredate']), date("m",$row['expiredate']), date("d",$row['expiredate']), date("H",$row['expiredate']), date("i",$row['expiredate']),date("s",$row['expiredate'])) ) , '</td>';


Title: Re: Make Ending Date Text Smaller
Post by: amwebby on March 12, 2013, 12:57:52 pm
Thanks. If I make those <td>s class="smalltext" that should do it then?
Title: Re: Make Ending Date Text Smaller
Post by: SMFHacks on March 12, 2013, 12:58:56 pm
It may help.
Title: Re: Make Ending Date Text Smaller
Post by: amwebby on March 12, 2013, 01:11:35 pm
Thanks. That, and removing the line break
Code: [Select]
. '<br />' did it.