Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4220
Latest: agolac
New This Month: 1
New This Week: 1
New Today: 0
Stats
Total Posts: 42854
Total Topics: 7464
Most Online Today: 112
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 41
Total: 41

Author Topic: Make Ending Date Text Smaller  (Read 3190 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: 16257
    • 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: 16257
    • 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
2503 Views
Last post June 20, 2007, 11:27:37 am
by xcx
2 Replies
3711 Views
Last post June 14, 2008, 04:14:05 pm
by rgsknr
0 Replies
1545 Views
Last post September 07, 2011, 09:04:51 am
by david_meyer24
1 Replies
3195 Views
Last post August 14, 2015, 10:19:21 am
by Labradoodle-360
2 Replies
447 Views
Last post January 29, 2023, 10:06:26 pm
by Saftek

+- Recent Topics

Is the PayPal Sandbox still working? by Nicole
Today at 06:51:18 am

Question on Completed Listing & Reserve Price by Nicole
June 01, 2023, 06:06:12 pm

[Mod]GDPR Helper by Nicole
May 29, 2023, 11:58:49 pm

RSS Feed Poster Database Error by SMFHacks
May 22, 2023, 06:26:18 pm

Errors With Older Version. by Ken.
May 09, 2023, 05:35:40 pm

Pretty Urls SEO Pro by SMFHacks
May 06, 2023, 03:30:11 pm

New Post Image Upload Error by Mike66
April 28, 2023, 07:30:28 am

Copyright Removal Key by SMFHacks
April 03, 2023, 02:44:28 pm

Converting from Aeva Media by sudhakar
April 02, 2023, 11:09:54 am

Using SMF's Built-in Search Algorithm by shuban
March 27, 2023, 09:15:10 am

Powered by EzPortal