stuartpb
Members-
Posts
326 -
Joined
-
Last visited
-
Days Won
2
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by stuartpb
-
That's a bit cheeky, seeing as I've had this on my site for the past few days, and the layout and wording looks suspiciously similar too! In my server logs, I've had over 200 page views from a single Greek domain, it wouldn't be you would it? ppp-94-68-151-124.home.otenet.gr 248 347 1.44 MB 18 Jun 2011 - 19:33 If you are going to release something as your own, at least have the decency to make sure the work is your own. I am going to be taking advice on whether this is breach of copyright too. http://execair.org/index.php/airports
-
No I noticed the js was commented out, I just wondered what it was doing there. My personal opinion is that stuff like that detracts from a site, as it's pretty cheesy, but maybe I'm an old grouch What problems are you having with the CSS? Have you tried making use of a CSS reset? This can help when trying to get a uniform look across browsers: http://meyerweb.com/eric/tools/css/reset/
-
Yes, if you use the CSS stylesheet instead of inline styling. http://www.w3schools.com/css/default.asp You may have to work through each page though to apply classes and ID's to the page elements, so you can then set the style of these elements in the stylesheet.
-
No worries. I'll give my honest opinion on what I can see. You mention that to have full functionality, you need to use Firefox/ Opera. This is a very bad thing for any website as most people have their favourite browsers, and if a website is not working with their browser they will simply find one that does. Having said that, I was using Chrome, and couldn't spot any obvious cross browser issues. Regards the layout of your home page, I think it looks very busy and cramped. If it was me I would give the separate parts of the page some space (with use of padding and margins). Maybe even take some of the info off and create new dedicated pages for that info. There doesn't seem to be much to distinguish one area of info from the other too, in terms of styling. You have some javascript on the live flights page, the snow flakes bit, not sure why you would want that there? I like the styling on the flights board though, it looks cool. Nice job so far overall, just a few things I would do differently if it was my site.
-
You've given the link to a locally hosted site, not one on a web server. Have you uploaded the site to a web server? http://localhost/greeceairwaysva/fss/index.php/
-
Last Arrival & Depart Pireps by Airport - Anyone figure it out?
stuartpb replied to stuartpb's topic in Support Forum
That worked perfectly Jeff, thank you very much! -
That's massive overkill for what the op essentially described was a html form, that would be emailed to him on completion. You can insert your own html form into the phpvms generated pages as I mentioned in my last post, and use then js and/or php validation/handling much easier that creating a whole new series of files for a new module.
-
I've expanded on the airport table add on, by adding seperate pages for each airport in the airport table. You just click on the ICAO code in each table row to open a new page with the airport details. I've put the total departures (total pireps by depicao) and total arrivals (total pireps by arricao) from the given airport in the airport details page, but I want to be able to show links to the last pirep filed both from and to the airport. So the links would be "show last departure" and "show last arrival", and the links would go to the relevant PIREP. Could anyone shed any light on this for me please? I've spent all day trying to get it to work, without success. Here's the airport table: http://execair.org/index.php/airports Cheers, Stuart
-
And did it work?
-
Go to core/pages/ and then find the page you were editing through the phpVMS page editor. Use a WYSIWYG editor, or even notepad to edit the page. Then upload to the server. That way you can use php in the page, and the html editor in the phpVMS page editor won't strip it out. EDIT: Just remember though, if you do this, that if you view the page in phpvms admin editor, it will strip out the php as soon as you do, so you need to remember when it comes to editing the page, to edit the page using another editor like notepad or dreamweaver or whatever editor you're using.
-
You can do this by setting the disable schedule on bid setting to true. Then when a pilot bids on a scheduled flight, no other pilots will be able to bid on that same flight until a Pirep is returned for the pilot who successfully placed the bid. Go to core/local.config.php and find this line: Config::Set('DISABLE_SCHED_ON_BID', false); set it to true, as below: Config::Set('DISABLE_SCHED_ON_BID', true); Cheers, Stuart
-
I'll go through the files when I have more time over the next day or two, I'm up to my armpits in jobs to do at the moment. Obviously there's something I've forgotten but I really can't remember.
-
I've scoured all the files I can remember changing, and some I couldn't remember changing, and I think I've figured out why it isn't working for you guys. You need to add this to the queries in the FrontScheduleData.class: phpvms_aircraft.ranklevel Like so: public function findschedules($arricao, $depicao, $airline, $aircraft) { $query = "SELECT phpvms_schedules.*, phpvms_aircraft.name AS aircraft, phpvms_aircraft.ranklevel, phpvms_aircraft.registration FROM phpvms_schedules, phpvms_aircraft WHERE phpvms_schedules.depicao LIKE '$depicao' AND phpvms_schedules.enabled=1 AND phpvms_schedules.arricao LIKE '$arricao' AND phpvms_schedules.code LIKE '$airline' AND phpvms_schedules.aircraft LIKE '$aircraft' AND phpvms_aircraft.id LIKE '$aircraft'"; return DB::get_results($query); } public function findschedule($arricao, $depicao, $airline) { $query = "SELECT phpvms_schedules.*, phpvms_aircraft.name AS aircraft, phpvms_aircraft.ranklevel, phpvms_aircraft.registration FROM phpvms_schedules, phpvms_aircraft WHERE phpvms_schedules.depicao LIKE '$depicao' AND phpvms_schedules.enabled=1 AND phpvms_schedules.arricao LIKE '$arricao' AND phpvms_schedules.code LIKE '$airline' AND phpvms_aircraft.id LIKE phpvms_schedules.aircraft"; return DB::get_results($query); } If that doesn't work I honestly can't remember any other changes.
-
PM on it's way in a mo, and no I'm not going to share this code to everyone. I reckon I've shared enough tbh.
-
I've received a few requests by private message to support this modification, and as I said in the initial post, I cannot support it further than telling you how I managed to get it working on my site. If it doesn't work on your site, you would be better off asking someone who is more skilled than me. I've listed all the changes I can remember making, so if it isn't working for you, accept my apologies but there isn't a whole lot I can do to help.
-
Sorry mate, I meant to delete the echo '<optgroup label="'.$airport->country.'">'; part from the code before I posted.
-
To add the page to the main nav bar at the top of the page, you need to find the core_navigation.tpl file, which is located in the core/templates folder. To add the link, you need to add a new list item: <li><a href="<?php echo url('/Fleet'); ?>">Fleet or whatever text you want to display for the link</a></li> Cheers, Stuart
-
I've made another little modification, which removes the "your current location()" if a user is not logged in. <?php if (Auth::LoggedIn()) {?> <?php $reports = PIREPData::getLastReports(Auth::$userinfo->pilotid, 1, PIREP_ACCEPTED); if(is_object($reports)) {echo '<option value="'.$reports->arricao.'">Your current location ('.$reports->arricao.')</option>';} elseif(!$reports) {echo '<option value="'.Auth::$userinfo->hub.'">Your current location ('.Auth::$userinfo->hub.')</option>';}}?> Changed the original post to reflect this.
-
No worries, glad to have helped
-
I see the current location showing now, is it working? EDIT scratch that seen your post above. Yes you can make it so that there is no choice: 1: You can either make it so the current location appears first in the list, 2: Or you can remove the other options from the list so that only the current location one shows. 1: Just move the <option value="">All</option> below the php for the current location. 2: Delete the following: <option value="">All</option> <?php foreach ($airports as $airport) { echo '<option value="'.$airport->icao.'">'.$airport->icao.' - '.$airport->name.'</option>';} ?>
-
Yes that's right. When I said the FrontSchedule module, I meant the downloaded files from SimPilot's addon. The airport_search.tpl goes in the core/templates folder, not in the core/modules/FrontShedules folder. Apologies for the confusion there.
-
Try making a backup of the airport_search.tpl file, and then in the working copy you've been using to make the amendments delete the departure airport bit of code from the opening <tr> to the closing </tr>, then upload that to the server. If the departure airport part is missing then we are on the same page If not, then check your chosen skin folder to make sure there isn't an airport_search.tpl file in there. It's hard for me to guess where the problem is without seeing how your site is laid out on the server. If anyone wants to jump in feel free
-
Are you sure you have overwritten the airport_search.tpl file with the amended one? Looking at the html output for that page, there have been no modifications made to the file.
-
Nabeel has already given the code, and it was the same code I used. The only amendment I made was on this line: if(substr_count($schedule->daysofweek, $dayofweek) > 0) Changed to: if(substr_count($route->daysofweek, $dayofweek) > 0) Then it's just a case of amending the echo output to suit.
-
What's happening when you try to use the code? I've marked a <tr> that you missed out, but the code is the same as mine, and it works on my site.