Jump to content

Recommended Posts

Posted (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 by Strider
updated to 2.3
  • Like 1
  • 1 month later...
  • 3 months later...
  • 1 month later...
Posted

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.

Posted

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

Posted

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.

  • 5 months later...
Posted

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

Posted

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

Posted

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);
}

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...