Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 12384
Latest: MildredGarrido
New This Month: 8
New This Week: 0
New Today: 0
Stats
Total Posts: 39888
Total Topics: 7022
Most Online Today: 112
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 34
Total: 34

Author Topic: Make Ending Date Text Smaller  (Read 2698 times)

0 Members and 1 Guest are viewing this topic.

Offline amwebby

  • Community Suite Customer
  • Sr. Member
  • ******
  • Posts: 306
    • View Profile
Make Ending Date Text Smaller
« 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.

Offline amwebby

  • Community Suite Customer
  • Sr. Member
  • ******
  • Posts: 306
    • View Profile
Re: Make Ending Date Text Smaller
« Reply #1 on: March 12, 2013, 06:41:54 am »
No idea?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14953
    • View Profile
Re: Make Ending Date Text Smaller
« Reply #2 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>';


Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline amwebby

  • Community Suite Customer
  • Sr. Member
  • ******
  • Posts: 306
    • View Profile
Re: Make Ending Date Text Smaller
« Reply #3 on: March 12, 2013, 12:57:52 pm »
Thanks. If I make those <td>s class="smalltext" that should do it then?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14953
    • View Profile
Re: Make Ending Date Text Smaller
« Reply #4 on: March 12, 2013, 12:58:56 pm »
It may help.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline amwebby

  • Community Suite Customer
  • Sr. Member
  • ******
  • Posts: 306
    • View Profile
Re: Make Ending Date Text Smaller
« Reply #5 on: March 12, 2013, 01:11:35 pm »
Thanks. That, and removing the line break
Code: [Select]
. '<br />' did it.

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
2112 Views
Last post June 20, 2007, 11:27:37 am
by xcx
1 Replies
3261 Views
Last post May 23, 2008, 01:24:53 pm
by Xtreme4U2NV
2 Replies
3062 Views
Last post June 14, 2008, 04:14:05 pm
by rgsknr
0 Replies
1256 Views
Last post September 07, 2011, 09:04:51 am
by david_meyer24
1 Replies
2138 Views
Last post August 14, 2015, 10:19:21 am
by Labradoodle-360

+- Recent Topics

prettyurls - TroubleShooting.wiki by Rock Lee
October 10, 2019, 11:37:09 am

Some issues with adding and editing a listing by ajac63
October 07, 2019, 04:16:40 am

Problem update 1.1.21 to 2.0.15 by Rock Lee
October 06, 2019, 06:09:16 pm

[Mod]SMF 2.0.x PHP 7.2 Support by sah62
October 04, 2019, 01:46:00 pm

Ideas by shuban
October 03, 2019, 10:19:06 pm

How to space icons and multiple reacts? by shadav
October 03, 2019, 04:20:07 pm

PrettyUrls SEO Pro by Rock Lee
October 01, 2019, 09:09:38 am

How to get search preciser by SMFHacks
September 23, 2019, 10:09:56 am

How to AVOID SEO Hit when Implementing PrettyURLs by SMFHacks
September 12, 2019, 08:50:42 pm

theme by SMFHacks
September 12, 2019, 07:10:51 am

Powered by EzPortal