Welcome to Geeklog, Anonymous Wednesday, November 27 2024 @ 01:44 pm EST

Geeklog Forums

Remove date and time from articles


Status: offline

inquest750

Forum User
Regular Poster
Registered: 03/04/05
Posts: 72
"Thursday, January 01 2004 @ 09:30 AM PST
Contributed by: admin
Views: 131"


Can someone please tell me what I can do to remove that from my articles?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Have you tried editing the story templates and searching for "date"? Mr. Green

bye, Dirk
 Quote

guest

Anonymous
But why can't it be done through config.php, a-la $_CONF['contributedbyline'] ?

BTW, same thing goes to the "views: X" line.

Thanks!
 Quote

Status: offline

inquest750

Forum User
Regular Poster
Registered: 03/04/05
Posts: 72
Quote by Dirk: Have you tried editing the story templates and searching for "date"? Mr. Green

bye, Dirk


Thanks, I got it... took me a while, but i figured it out.
 Quote

kcrothers

Anonymous
This is a snippet from a change I made to lib-story.php. You could do something similar...


if ( ($A['username'] == 'Admin' && $_CONF['show_admin_story_post_date'] == 1 && $_CONF['show_story_post_date'] == 1) || ( $A['username'] != 'Admin' && $
_CONF['show_story_post_date'] == 1 ) )
{
$article->set_var( 'story_date', $A['day'] );
$article->set_var( 'end_story_date', '
' );
}
//if( $_CONF['contributedbyline'] == 1 && $A['username'] != 'Admin')
if ( ( $A['username'] == 'Admin' && $_CONF['show_admin_story_hits'] == 1 && $_CONF['show_story_hits'] == 1 ) || ( $A['username'] != 'Admin' && $_CONF['s
how_story_hits'] == 1) )
{
$article->set_var( 'lang_views', $LANG01[106] );
$article->set_var( 'story_hits', $A['hits'] );
$article->set_var( 'story_hit_seperator', ': ' );
}
$article->set_var( 'story_id', $A['sid'] );

//if ( $_CONF['contributedbyline'] == 1)
if ( ( $A['username'] == 'Admin' && $_CONF['show_admin_contributedbyline'] == 1 && $_CONF['contributedbyline'] == 1) || ( $A['username'] != 'Admin' && $
_CONF['contributedbyline'] == 1) )
{
$article->set_var( 'lang_contributed_by', $LANG01[1] );
$article->set_var( 'contributedby_uid', $A['uid'] );
$username = $A['username'];
$article->set_var( 'contributedby_user', $username );

$fullname = $A['fullname'];
if( empty( $fullname ))
{
$article->set_var( 'contributedby_fullname', $username );
}
else
{
$article->set_var( 'contributedby_fullname', $fullname );
 Quote

Status: offline

donm1021

Forum User
Chatty
Registered: 12/31/05
Posts: 56
Quote by Dirk: Have you tried editing the story templates and searching for "date"? Mr. Green

bye, Dirk


Is this the only way to remove the date and time from the articles? Looks like there would have been an option in the config to display the date and time if you wanted to - or remove it if you didn't want to display it.

 Quote

Status: offline

kilerb

Forum User
Regular Poster
Registered: 03/19/08
Posts: 119
Quote by: Dirk

Have you tried editing the story templates and searching for "date"?

bye, Dirk



Hi Dirk, where is this in 1.4.1? I'm trying to remove the date from the story on my main page too and found a lot of options in the config.php, but nothing to remove the time/date stamp.

Thanks!
 Quote

iam

Anonymous
Quote by: kilerb

Quote by: Dirk

Have you tried editing the story templates and searching for "date"?

bye, Dirk



Hi Dirk, where is this in 1.4.1? I'm trying to remove the date from the story on my main page too and found a lot of options in the config.php, but nothing to remove the time/date stamp.

Thanks!



I think you better try to look at the (storytext.thtml and featuredstorytext.thtml files). if you don't like the date and time, you just delete this {story_date} line:
Text Formatted Code

    <div class="story-information">
        {story_date}<br />        {lang_contributed_by} {start_contributedby_anchortag}{contributedby_author}{end_contributedby_anchortag}<br />        {lang_views} {story_hits}
    </div>


 Quote

All times are EST. The time is now 01:44 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content