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 » Fri Jan 30, 2009 12:10 pm

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

User avatar
DavidIQ
Site Admin
Posts: 581
Joined: Thu Sep 07, 2006 4:31 pm
Location: Earth
Contact:

Re: Date Syntax

Post by DavidIQ » Fri Jan 30, 2009 12:28 pm

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 » Fri Jan 30, 2009 12:58 pm

Hi David,

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

or just
{postrow.POST_DATE}

User avatar
DavidIQ
Site Admin
Posts: 581
Joined: Thu Sep 07, 2006 4:31 pm
Location: Earth
Contact:

Re: Date Syntax

Post by DavidIQ » Fri Jan 30, 2009 1:23 pm

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 » Fri Jan 30, 2009 1:54 pm

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

Take Care
Graham

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests