SMFHacks.com
SMF Classifieds => Support => Topic started 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.
-
No idea?
-
For SMF 1.1.x
The code is in the function ClassifiedsShowListingsRow()
And is controlled by these lines
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>';
-
Thanks. If I make those <td>s class="smalltext" that should do it then?
-
It may help.
-
Thanks. That, and removing the line break
. '<br />'
did it.