Date Syntax

Need help with your forum? Ask away. Remember though that there's always http://www.phpbb.com/community

Moderator: Experts

Post Reply
Graham
Posts: 76
Joined: Mon Oct 20, 2008 3:31 am
Location: UK
Contact:

Date Syntax

Post by Graham »

Hi David,
Long time no write, hope you and yours are OK.

I'm writing to ask for your help with the date syntax, in my Viewtopic_body.html
I have the following

Code: Select all

 <div class="post">
				<h3>{postrow.POST_SUBJECT}</h3>
				<div class="content">{postrow.MESSAGE}</div><br /><br />
				<div class="author">copyright <br /><strong>{postrow.POST_AUTHOR}</strong></div>
				
			</div>
As you know my site is a poetry site, so at the bottom of every post I add a copyright notice, I would like, under that, to have the date inserted, what is the syntax for doing this please?

Thanks
Graham
DavidIQ
Site Admin
Posts: 619
Joined: Thu Sep 07, 2006 4:31 pm
Location: Earth
Contact:

Re: Date Syntax

Post by DavidIQ »

Glad you're still at it :)

You can try using {postrow.POST_DATE}
Graham
Posts: 76
Joined: Mon Oct 20, 2008 3:31 am
Location: UK
Contact:

Re: Date Syntax

Post by Graham »

Hi David,

Do I need to add something like this ?
<div class="date">{postrow.POST_DATE}</div>

or just
{postrow.POST_DATE}
DavidIQ
Site Admin
Posts: 619
Joined: Thu Sep 07, 2006 4:31 pm
Location: Earth
Contact:

Re: Date Syntax

Post by DavidIQ »

That's really going to be up to you if you want to wrap a div tag around it but I don't think there's a date class in the stylesheet.
Graham
Posts: 76
Joined: Mon Oct 20, 2008 3:31 am
Location: UK
Contact:

Re: Date Syntax

Post by Graham »

Thanks David
Just added {postrow.POST_DATE}
it works fine

Take Care
Graham
Post Reply