Just a couple of questions

Place all Virtual Airline related questions and remarks here.

Moderator: Thomas Molitor

Just a couple of questions

Postby BBuchanan » May 29 2009

First off, v3 is simply outstanding.

Just so that we are clear. I am using the default php files and text files from the sdk v3. Nothing has been modified with the exception of the url's to point to the website and the database connections. Nothing else has been changed.


First issue is all my flights are filed on 31.12.1969. The details are correct, again, except for the Created On portion. What's wrong?
Here's a link to the PIREPs.php http://www.unitedstatesnetwork.net/FSFK/PIREPs.php

Second, is there a way to turn off the critiques? Maybe I've missed it, but I don't remember seeing it.


Thanks.
BBuchanan
Starting Member
Starting Member
 
Posts: 4
Joined: May 29 2009

Re: Just a couple of questions

Postby Thomas Molitor » May 29 2009

To remove the flight critique from the PIREP, you need to change the PIREP template and of course the script. Remove the line "<FLIGHTCRITIQUE>$@$FlightCritique$@$</FLIGHTCRITIQUE>" from the template. In the PIREP scripts search for the string "Critique" and remove the unnecessary code. Be careful with the SQL statements as they need to be modified too. I think the easiest would be to just remove the critique display on the PIREP details page (PIREPDetails.php).

The wrong date could be either a database problem or just a simple date display problem on your web server. So the fist step would be to check the value stored in the database. By default CreatedOn is stored as a timestamp in the MySQL database. Can you please check if this value is correct in the table.

Regards

Thomas
Image
User avatar
Thomas Molitor
Administrator
Administrator
 
Posts: 2124
Joined: October 14 2004
Location: Frankfurt / Germany

Re: Just a couple of questions

Postby BBuchanan » May 29 2009

The timestamp is correct in the database.
BBuchanan
Starting Member
Starting Member
 
Posts: 4
Joined: May 29 2009

Re: Just a couple of questions

Postby BBuchanan » May 29 2009

This line is the problem:

Code: Select all
<?php print date("d.m.Y", convert_timestamp($row->CreatedOn)); ?>


I changed it to:
Code: Select all
<?php print $row->CreatedOn; ?>


And it displays the time and date correctly.
BBuchanan
Starting Member
Starting Member
 
Posts: 4
Joined: May 29 2009


Return to Virtual Airlines

Who is online

Users browsing this forum: No registered users and 2 guests

cron