Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest sNews - sNews 1.7 - with its own forums - for discussion and user mods.

Author Topic: Question: How to get the 'Continue reading' link without date & time?  (Read 1911 times)

WizaJ

  • Newbie
  • *
  • Karma: 0
  • Posts: 5

Hi,
I wanted to know how to remove the date & time from showing on Article Listing pages but having the other details (Continue reading link & Comments where applicable there)

I figure there's something to be removed in the snews.php file? But I'm not quite sure what it is. Got an image to show what I mean.


Any help is much appreciated thanks :)
Logged

philmoz

  • High flyer
  • ULTIMATE member
  • ******
  • Karma: 161
  • Posts: 1988
    • fiddle 'n fly
Re: Question: How to get the 'Continue reading' link without date & time?
« Reply #1 on: December 29, 2010, 01:53:54 PM »

Do a search in snews.php for $tags

Locate where the date is formatted somewhere above the switch statements, (there are at least 2)
One is the var $a_date_format. (search for that to get to it quickly)
Place a comment in front of the line like
Code: ('hiding original date from infoline') [Select]
//$a_date_format = date(s('date_format'), strtotime($r['date']));and directly under it
Code: ('replacing date with empty string and comment') [Select]
$a_date_format = ''; // Removed date from info lineRepeat for other instances, which strangely use differing variable name :(

See how you go.
Logged
Of all the things I have lost, it is my mind that I miss the most.

WizaJ

  • Newbie
  • *
  • Karma: 0
  • Posts: 5
Re: Question: How to get the 'Continue reading' link without date & time?
« Reply #2 on: December 29, 2010, 04:41:35 PM »

Place a comment in front of the line like
Code: ('hiding original date from infoline') [Select]
//$a_date_format = date(s('date_format'), strtotime($r['date']));

Just doing this has done the trick for EXACTLY what I wanted :)
It works for articles, but I haven't tested it on pages because I'm only displaying that line on articles.

Thanks a lot mate! It is MUCH appreciated
Logged