-
Posts
656 -
Joined
-
Last visited
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by James142
-
Got it, I was editing the wrong file... how embarrassing
-
You could try to code it. Give me 5 mins and Ill try, but im not promising that i will get it to work..
-
Hello. I know that I have asked you this before in a private email, but for the past week I have being unable to log into my va-list account? Just wondering if its the server problem our something i am doing? Thanks
-
Are you able to re-size the the width of the table? When i try to re-size is in the .css nothing is happening
-
I could never get the pagination to work, Thanks!! +1
-
<?php if ($userinfo->lastpirep == '0000-00-00 00:00:00') { echo 'You have not flown any flights yet!'; } else { $datebefore1 = substr($userinfo->lastpirep, 0, 10); $datetoday2 = date("Y-m-d"); $datebefore3 = strtotime($datebefore1); $datetoday4 = strtotime($datetoday2); $newdate = $datetoday4-$datebefore3; $lastpirep = floor($newdate/(60*60*24)); echo 'Your last flight was '; if ($lastpirep == 0) { echo 'today'; } else if ($lastpirep == 1) { echo 'yesterday'; } else { echo $lastpirep . ' day(s) ago'; } } ?> This will show: Your last flight was X day(s) ago But this one below will show: Your last flight was [X] day(s) ago. You have [X] days left until you are marked as retired (UPDATED VERSION) <?php $totaldays = Config::Get('PILOT_INACTIVE_TIME'); { ?> <?php if ($userinfo->lastpirep == '0000-00-00 00:00:00') { echo 'You have not flown any flights yet!'; } else { $datebefore1 = substr($userinfo->lastpirep, 0, 10); $datetoday2 = date("Y-m-d"); $datebefore3 = strtotime($datebefore1); $datetoday4 = strtotime($datetoday2); $newdate = $datetoday4-$datebefore3; $lastpirep = floor($newdate/(60*60*24)); $daysleft = $totaldays-$lastpirep; echo 'Your last flight was '; if ($lastpirep == 0) { echo 'today'; } else if ($lastpirep == 1) { echo 'yesterday'; } else { echo $lastpirep . ' day(s) ago.'; } echo ' You have '; if ($daysleft == 0) { echo 'You have being marked as a retired pilot!'; } else { echo $daysleft . ' days left until you are marked as retired'; } } ?><?php } ?>
-
Because I tested it with Chrome when I was making it and forgot about IE. I am about 1/2 way through making the style-sheet for IE though..
-
Ha @Joeri, I used the rotate.php file (http://www.alistapart.com/d/randomizer/rotate.txt)
-
@Tom, thanks I've just added a code so it will remember your choice on your next visit @ Joeri, I belive I got the code from http://www.dynamicdr...ead.php?t=56899 and edited it abit. I can give you the full code I did if you want Thanks
-
Hopefully this will be the last update for a while but right now I am looking for anyone's comments on www.flyaerova.com Much appreciated, James
-
[SOLVED] Blank Page when having website in two folders?
James142 replied to James142's topic in Support Forum
I feel so stupid, I decided to be lazy and use Cpanal to edit my local.config file, and without be noticing, It only uploads half of the file. I have also realized that this has being posted in the forums multiple time before. I do apologise! Thanks -
[SOLVED] Blank Page when having website in two folders?
James142 replied to James142's topic in Support Forum
<html><head></head><body></body></html> That is whats in the source code when I visit the second folder with phpvms in it This happens when I change the site url.. -
Hello I am trying to have phpvms in two separate folders on my website, but have them using the same MySQL database so both of them will show the same information in each folder (Long story short, I want the information from the .tpl files in the core/templates folder to show up different in the second folder) Anyway, my problem is that when I have the define('SITE_URL', 'http://www.yoursite.com/site1); in the local.config file, I get a blank page. (It works fine when I have define('SITE_URL', 'http://www.yoursite.com/); but that shows the .tpl files from the main folder) Does anyone know I fix to this? Thanks, James
-
[Comment Removed]
-
Welcome To easyJet Virtual!
James142 replied to easyJet Virtual's topic in Virtual Airlines Discussion
This is getting a little out have hand now, don't you think? -
Welcome To easyJet Virtual!
James142 replied to easyJet Virtual's topic in Virtual Airlines Discussion
Are you not the CEO of FlyGlobal virtual and all the other hundered's of virtual's you have created before it? -
Hello. I have spent a while searching for a JavaScript code to remember what a user has clicked on in their last visit on the internet for what I am looking for what I need but I cant find it. So I was wondering if anyone here has ever came across such a code online before? To make things a little clearer, what I am looking for is a JavaScript code that will save information on a cookie about what link a user has clicked on in their last visit and keep redirecting them to that link everytime they visit the page. So if they go to www.yoursite.com and click on a link that says Link-1, it will redirect them to www.yourwebsite.com/link-1 everytime they visit www.yourwebsite.com/ I will appreciate any replays. Kindest Regards, James
-
Aaah ok, thanks
-
Wesbite & Repaints Needed. (Will pay if needed)
James142 replied to Jetstream virtual's topic in Paid Services
Woah, my first VA that I joined was called Jetstream va -
Looking at your site more closely, your sidebar code is outside the <div id="content"> when it should be inside it..
-
http://forum.phpvms....h__1#entry22172, I think the text comes with it. - All though it is pretty lazy for the owner of verazanova Verazano VA to not remove the Greece Airways virtual text from the module and replace it with his own name.. Regards
-
Maybe try remove the <head> Tags in the frontpage_main.tpl file (as shown below) cause when the layout.tpl file is merged with the frontpage_main.tpl, there are two <head> tage and two <body> tage.. <div id="sidebar1" class="sidebar"> <ul> <li> <h2>News Centre</h2> <ul> <?php PopUpNews::PopUpNewsList(8); ?> </ul> <br> <h2>Newest Pilots</h2> <br> <?php MainController::Run('Pilots', 'RecentFrontPage', 5); ?> <br> <h2>Quick Stats</h2> <p><strong>Total Pilots: <?php echo StatsData::PilotCount(); ?></strong></p> <p><strong>Total Flights Flown: </strong><?php echo StatsData::TotalFlights(); ?></p> <p><strong>Total Aircraft: </strong><?php echo StatsData::TotalAircraftInFleet(); ?></p> <p><strong>Total Hours Flown: </strong><?php echo StatsData::TotalHours(); ?></p> <p><strong>Passengers Carried: </strong><?php echo StatsData::TotalPaxCarried(); ?></p> <p><strong>Miles Flown: </strong><?php echo StatsData::TotalMilesFlown(); ?></p> <p><strong>Total Flights Today: </strong><?php echo StatsData::totalflightstoday(); ?></p> <br> <h2>Flight Status</h2> <br> <b><a href="http://www.freshjetvirtual.com/index.php/acars">Live Flight Information >></a></b><br> </li> </li> </ul> </div> <h2>Welcome to freshJet!</h2> <marquee onmouseover="this.stop();" onmouseout="this.start();"><b>[09/05/2011]</b> Summer 2011 Schedules Delay Confirmed <b>[<a href="http://www.freshjetvirtual.com/index.php/PopUpNews/popupnewsitem/?itemid=18">More...</a>]</b> <b>[05/06/2011]</b> 757 ready for introduction after delay <b>[<a href="http://www.freshjetvirtual.com/index.php/pages/757">More...</a>]</b></marquee> <br> <br> Welcome to freshJet, one of the newest virtual airlines in the UK. We operate a wide variety of destinations across Europe to sun, ski and leisure destinations from our hubs at Glasgow and Belfast. We operate a modern fleet of Airbus A319 and A320 aircraft, including a lease for a single Boeing 757-200 in the summer for flights to Malta. We aim to provide the best experience for eveyone out there, offering realism, professionalism and a friendly community. Click <a href="http://www.freshjetvirtual.com/index.php/pages/whatweoffer">here</a> to see what else we have to offer.<br><br><br> <br> <center><img src="http://i.imgur.com/y0qld.png" /> <img src="http://i.imgur.com/b5oeb.png" /> <img src="http://i.imgur.com/PsA5e.png" /></center> <br> <br> <h2>Book a Flight</h2> <style type="text/css"> #outerdiv { width:500px; height:400px; overflow:hidden; position:relative; } #inneriframe { position:absolute; top:-250px; left:-370px; width:1280px; height:1200px; } </style> <div id='outerdiv'> <iframe src="http://www.freshjetvirtual.com/index.php/FrontSchedules" id='inneriframe' scrolling=no></iframe> </div> <h2>Latest Flights</h2> <?php $count = 5; $pireps = PIREPData::getRecentReportsByCount($count); ?> <table border="0" bordercolor="#000000" width="700" cellpadding="3" cellspacing="1"> <thead> <tr> <th style="background-color:#05A2EA">Flight #</th> <th style="background-color:#05A2EA">Departure</th> <th style="background-color:#05A2EA">Arrival</th> <th style="background-color:#05A2EA">Duration</th> <th style="background-color:#05A2EA">Pilot</th> </tr> </thead> <tbody> <?php if(count($pireps) > 0) { foreach ($pireps as $pirep) { $pilotinfo = PilotData::getPilotData($pirep->pilotid); $pilotid = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid); echo '<tr>'; echo '<td>'.$pirep->code.$pirep->flightnum.'</td>'; echo '<td>'.$pirep->depicao.'</td>'; echo '<td>'.$pirep->arricao.'</td>'; echo '<td>'.$pirep->flighttime.'</td>'; echo '<td>'.$pilotid.' '.$pilotinfo->firstname.' '.$pilotinfo->lastname.'</td>'; echo '</tr>'; } } else { echo '<tr><td>There are no recent flights!</td></tr>'; } ?> </tbody> </table> <br> <a href="http://www.freshjetvirtual.com/index.php/acars">Live Flight Information >></a> <br><br><br><br><br><br><br><br><br><br><br><br><br><br> Im not sure if this will work though as I cant test it...