Jump to content
Strider

Codeshare module V1.3

Recommended Posts

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

  • Like 1

Share this post


Link to post
Share on other sites

Is there a way to display them in order by airline with out having to input them in order?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

You need to put the link to the image in when you add a codeshare flight to the codeshare database

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

you need to be in phpmyadmin, go into the db where your phpvms installation is, and click on import

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×