Recent Topics

1 Aug 09, 2005 19:20    

Hey guys, on two of my templates I need the date to display with every post (thats on the same day.)

example of how it is now:

August 9 2005
"august 9 2005 post"
"august 9 2005 post"
"august 9 2005 post"

August 10
"august 10 2005 post"

Now, How could I display the date like this, with every post:

August 9 2005
"august 9 2005 post"
August 9 2005
"august 9 2005 post"
August 9 2005
"august 9 2005 post"

August 10 2005
"august 10 2005 post"

2 Aug 09, 2005 20:33

Open up /skins/yourskin/_main.php and find a line that says date_if_changed(); and delete it or comment it out. Then put this code wherever you want it to be displayed:

<?php $Item->issue_date() ?>

3 Aug 09, 2005 22:45

$MainList->date_if_changed( '' , '' , 'F-j-y' );  // display post date if it changed

i tried just replace date_if_changed with issu_date....

how do i need to fix it? it didnt work.

4 Aug 09, 2005 22:49

Oh, sorry. I forgot it had the $Mainlist thing. Delete that whole line.

replace

$MainList->date_if_changed( '' , '' , 'F-j-y' );  // display post date if it changed


with

$Item->issue_date()

5 Aug 10, 2005 01:03

Parse error: parse error, unexpected T_VARIABLE in /home2/kod2000/public_html/davinciblog/blogsystem/blogs/skins/august04/_main.php on line 289

I think this is causing the problem uhm... since it IS requesting MAINLIST

if( isset($MainList) ) $MainList->display_if_empty(); // Display message if no post
if( isset($MainList) ) while( $Item = $MainList->get_item() ) { ?>

Thanks, tyler

6 Aug 10, 2005 01:10

Paste some more of the code. Maybe lines 280 - 310.


Form is loading...