Strider Posted June 7, 2013 Report Posted June 7, 2013 (edited) I am releasing the codeshare module that will show all flights in your schedules that you are codesharing on. You are able to include an image of the airline, to do so you must change the img link in the codeshare.tpl file. change the skin_name to your skin name. This modules uses a modified simpilots events module admin side. This update has the following additions: -ajax controls to the flight number. You can download the module here Demo of the front of the module: http://malaysiava.or...x.php/codeshare Edited February 20, 2021 by Strider updated to 2.3 1 Quote
ChrisA Posted June 9, 2013 Report Posted June 9, 2013 Seem to be having a problem getting the schedules listed. Please advise. Quote
Strider Posted June 9, 2013 Author Report Posted June 9, 2013 any error? Do they show in the admin side? Quote
Strider Posted July 28, 2013 Author Report Posted July 28, 2013 I have released version 1.2 of the module. It adds the ability to add the flight to your bids directly from the module. You can download it from my github page. https://github.com/Strider2/codeshare Quote
Ariel Posted November 20, 2013 Report Posted November 20, 2013 Is there a way to display them in order by airline with out having to input them in order? Quote
Strider Posted November 20, 2013 Author Report Posted November 20, 2013 https://github.com/Strider2/codeshare If you replace the class file and the module file, it will order them by airline without having to insert them by airline. 1 Quote
Ariel Posted November 20, 2013 Report Posted November 20, 2013 https://github.com/Strider2/codeshare If you replace the class file and the module file, it will order them by airline without having to insert them by airline. Worked like a charm thanx again Daniel! Quote
SiedlerP Posted January 15, 2014 Report Posted January 15, 2014 Hi, how can i make the Images from Airline visible ??? Quote
Strider Posted January 16, 2014 Author Report Posted January 16, 2014 when adding the image, it just needs the code of the airline, just put the airline code in, do not add the image type. In the images folder, the image must be named the same as the airline code like BAW for British Airways that should be BAW.png. Quote
FSX30HD Posted January 23, 2014 Report Posted January 23, 2014 Need Help Please I don't understand steep in the readme file nstructions on how to use this module: ======================================= 1) Upload the files into their correct locations. 2) In phpmyadmin import the phpvms_codeshares.sql file into your database where the main phpvms is located. 3) Insert all codeshare flights into your schedules. 4) Get the schedid. 5) Put the schedid into the schedule ID box in the admin panel. 6) Add the airline ICAO code into the airline box. 7) To use the images create a folder within your lib/skins/skinname/images folder called logo's. 8) Edit the codeshare.tpl file in your core/templates folder. 9) Images should be 109x39px's and be named the same as the ICAO code of the airline in the db. And after howto share with other VA please? Ex: http://www.skydream-airlines.com/index.php/Codeshare Quote
Strider Posted January 23, 2014 Author Report Posted January 23, 2014 at the moment it does not take info from another va, so you have to add the flight to your schedules, then add it to the module via the schedid. Quote
FSX30HD Posted January 26, 2014 Report Posted January 26, 2014 Thanks Strider for your module and your answer but I have added Other VA airline in my Airlines List ex: (HEW) but not is normal if one pilot need to register he can see others VA list. By that way I mean If i want make a code share with others VA the flight number I give need to match with the other VA ICAO. Quote
GBAirlines Posted June 27, 2014 Report Posted June 27, 2014 This may be a stupid question, where do i get the schedid from? Quote
Strider Posted June 30, 2014 Author Report Posted June 30, 2014 you get it from the schedules database. Quote
GBAirlines Posted July 6, 2014 Report Posted July 6, 2014 I can't get the airline image to show, just the airline code shows up? Quote
Strider Posted July 7, 2014 Author Report Posted July 7, 2014 You need to put the link to the image in when you add a codeshare flight to the codeshare database Quote
GBAirlines Posted July 7, 2014 Report Posted July 7, 2014 The airline image is showing in the admin panel but not on the codeshare page? Quote
Strider Posted July 8, 2014 Author Report Posted July 8, 2014 The only thing I can think of, is you removed the code for the image in the public side. redownload the tpl file and replace the one you have and it should work Quote
GBAirlines Posted July 8, 2014 Report Posted July 8, 2014 Tried all of the above, still not working What do you edit in the template? "8) Edit the codeshare.tpl file in your core/templates folder." Quote
strawbs Posted July 12, 2014 Report Posted July 12, 2014 I also experienced this problem. It's no biggie though.... You can add the link through the Database itself instead of through the Administration Centre. Quote
Virtualei Posted July 17, 2014 Report Posted July 17, 2014 Great module. Thanks for sharing. I too have the problem of the image link not being saved in the database and have had to add it manually. Have been looking at the code to see if I can see the problem but no luck Quote
Strider Posted July 17, 2014 Author Report Posted July 17, 2014 I found the problem, and have fixed it. From line 30 to 46 in the CodeShareData.class.php file replace the code with the following: public function save_new_codeshare($schedid, $airline, $image) { $query = "INSERT INTO phpvms_codeshares (schedid, airline, image) VALUES ('$schedid', '$airline', '$image')"; DB::query($query); } public function save_edit_codeshare($schedid, $airline, $image, $id) { $query = "UPDATE phpvms_codeshares SET schedid='$schedid', airline='$airline', image= '$image', WHERE id='$id'"; DB::query($query); } Quote
poole3003 Posted August 4, 2014 Report Posted August 4, 2014 i cant upload the .SQL file to phpvms my admin Quote
Strider Posted August 4, 2014 Author Report Posted August 4, 2014 you need to be in phpmyadmin, go into the db where your phpvms installation is, and click on import Quote
poole3003 Posted August 5, 2014 Report Posted August 5, 2014 yep i have done that and it has gone in wih no colums and when i change the MH in the file to ETD nothing happens and nothing shows on the website under routes Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.