Jump to content

PHPSpert

Members
  • Posts

    30
  • Joined

  • Last visited

Everything posted by PHPSpert

  1. I'm building a website that creates pages, sets the template and once a payment has been processed the page needs to be set to published. I need to know how to set this in the PHP Page class. Is it just $page = new Page(); $page->published = FALSE;? I couldn't find out how to do this in the docs. Thanks Clint
  2. Thanks Ryan, That's the problem exactly. It's using a different timezone for the MySQL database.
  3. I'm having a problem with incorrect "created" dates. "created" dates are showing one day ahead. I don't think it's the server because I did a echo date("Y") and it shows the correct date. I'm doing this echo date("Y m d", $page->created); to show the page/article date. The timezone is set to New York time, which is fine as it's close enough. I'm wondering if this problem is coming up because it's a leap year. I didn't want to fish around the core to find out how "created" was set after looking around and not being able to find it. Anyone have any thoughts on this, or how to fix it?
  4. Thanks Ryan, It's working great!
  5. I noticed that itemDescriptionField gets tags stripped. It would be great if this was a boolean option for this. I usually set up my blog(or other RSS feeds) to show the full article so anyone can view the entire thing in their reader.
×
×
  • Create New...