# Codeshare module V2.3

**URL:** <https://forum.phpvms.net/t/codeshare-module-v2-3/8176>\
**Category:** Releases\
**Created:** [June 7, 2013, 3:15pm UTC](https://forum.phpvms.net/t/codeshare-module-v2-3/8176 "2013-06-07T15:15:29Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Strider](https://forum.phpvms.net/user_avatar/forum.phpvms.net/strider/32/17_2.png) [@Strider](https://forum.phpvms.net/u/Strider)\
**Post date:** [June 7, 2013, 3:15pm UTC](https://forum.phpvms.net/t/codeshare-module-v2-3/8176/1 "2013-06-07T15:15:29Z")

</div>

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](https://github.com/Strider2/codeshare)

Demo of the front of the module: [http://malaysiava.or…x.php/codeshare](http://malaysiava.org/index.php/codeshare)

---

<div class="post-metadata">

**Author:** ![Toyuko](https://forum.phpvms.net/user_avatar/forum.phpvms.net/toyuko/32/12_2.png) [@Toyuko](https://forum.phpvms.net/u/Toyuko)\
**Post date:** [June 7, 2013, 3:16pm UTC](https://forum.phpvms.net/t/codeshare-module-v2-3/8176/2 "2013-06-07T15:16:19Z")

</div>

Very good! Good Job

---

<div class="post-metadata">

**Author:** ![ChrisA](https://forum.phpvms.net/user_avatar/forum.phpvms.net/chrisa/32/235_2.png) [@ChrisA](https://forum.phpvms.net/u/ChrisA)\
**Post date:** [June 9, 2013, 2:19am UTC](https://forum.phpvms.net/t/codeshare-module-v2-3/8176/3 "2013-06-09T02:19:28Z")

</div>

Seem to be having a problem getting the schedules listed. Please advise.

---

<div class="post-metadata">

**Author:** ![Strider](https://forum.phpvms.net/user_avatar/forum.phpvms.net/strider/32/17_2.png) [@Strider](https://forum.phpvms.net/u/Strider)\
**Post date:** [June 9, 2013, 12:07pm UTC](https://forum.phpvms.net/t/codeshare-module-v2-3/8176/4 "2013-06-09T12:07:51Z")

</div>

any error? Do they show in the admin side?

---

<div class="post-metadata">

**Author:** ![Strider](https://forum.phpvms.net/user_avatar/forum.phpvms.net/strider/32/17_2.png) [@Strider](https://forum.phpvms.net/u/Strider)\
**Post date:** [July 28, 2013, 2:23pm UTC](https://forum.phpvms.net/t/codeshare-module-v2-3/8176/5 "2013-07-28T14:23:50Z")

</div>

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](https://github.com/Strider2/codeshare)

---

<div class="post-metadata">

**Author:** ![Ariel](https://forum.phpvms.net/user_avatar/forum.phpvms.net/ariel/32/25_2.png) [@Ariel](https://forum.phpvms.net/u/Ariel)\
**Post date:** [November 20, 2013, 7:28pm UTC](https://forum.phpvms.net/t/codeshare-module-v2-3/8176/6 "2013-11-20T19:28:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Strider](https://forum.phpvms.net/user_avatar/forum.phpvms.net/strider/32/17_2.png) [@Strider](https://forum.phpvms.net/u/Strider)\
**Post date:** [November 20, 2013, 7:57pm UTC](https://forum.phpvms.net/t/codeshare-module-v2-3/8176/7 "2013-11-20T19:57:56Z")

</div>

[https://github.com/Strider2/codeshare](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.

---

<div class="post-metadata">

**Author:** ![Ariel](https://forum.phpvms.net/user_avatar/forum.phpvms.net/ariel/32/25_2.png) [@Ariel](https://forum.phpvms.net/u/Ariel)\
**Post date:** [November 20, 2013, 8:29pm UTC](https://forum.phpvms.net/t/codeshare-module-v2-3/8176/8 "2013-11-20T20:29:45Z")

</div>

> [https://github.com/Strider2/codeshare](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!

---

<div class="post-metadata">

**Author:** ![SiedlerP](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/s/67e7ee/32.png) [@SiedlerP](https://forum.phpvms.net/u/SiedlerP)\
**Post date:** [January 15, 2014, 12:58pm UTC](https://forum.phpvms.net/t/codeshare-module-v2-3/8176/9 "2014-01-15T12:58:54Z")

</div>

Hi,

how can i make the Images from Airline visible ???

---

<div class="post-metadata">

**Author:** ![Strider](https://forum.phpvms.net/user_avatar/forum.phpvms.net/strider/32/17_2.png) [@Strider](https://forum.phpvms.net/u/Strider)\
**Post date:** [January 16, 2014, 1:37am UTC](https://forum.phpvms.net/t/codeshare-module-v2-3/8176/10 "2014-01-16T01:37:04Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![SiedlerP](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/s/67e7ee/32.png) [@SiedlerP](https://forum.phpvms.net/u/SiedlerP)\
**Post date:** [January 16, 2014, 7:27pm UTC](https://forum.phpvms.net/t/codeshare-module-v2-3/8176/11 "2014-01-16T19:27:53Z")

</div>

thanks works

---

<div class="post-metadata">

**Author:** ![FSX30HD](https://forum.phpvms.net/user_avatar/forum.phpvms.net/fsx30hd/32/310_2.png) [@FSX30HD](https://forum.phpvms.net/u/FSX30HD)\
**Post date:** [January 23, 2014, 8:11pm UTC](https://forum.phpvms.net/t/codeshare-module-v2-3/8176/12 "2014-01-23T20:11:40Z")

</div>

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](http://www.skydream-airlines.com/index.php/Codeshare)

---

<div class="post-metadata">

**Author:** ![Strider](https://forum.phpvms.net/user_avatar/forum.phpvms.net/strider/32/17_2.png) [@Strider](https://forum.phpvms.net/u/Strider)\
**Post date:** [January 23, 2014, 9:09pm UTC](https://forum.phpvms.net/t/codeshare-module-v2-3/8176/13 "2014-01-23T21:09:10Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![FSX30HD](https://forum.phpvms.net/user_avatar/forum.phpvms.net/fsx30hd/32/310_2.png) [@FSX30HD](https://forum.phpvms.net/u/FSX30HD)\
**Post date:** [January 26, 2014, 2:28pm UTC](https://forum.phpvms.net/t/codeshare-module-v2-3/8176/14 "2014-01-26T14:28:53Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![GBAirlines](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/g/67e7ee/32.png) [@GBAirlines](https://forum.phpvms.net/u/GBAirlines)\
**Post date:** [June 27, 2014, 11:48am UTC](https://forum.phpvms.net/t/codeshare-module-v2-3/8176/15 "2014-06-27T11:48:58Z")

</div>

This may be a stupid question, where do i get the schedid from?

---

<div class="post-metadata">

**Author:** ![Strider](https://forum.phpvms.net/user_avatar/forum.phpvms.net/strider/32/17_2.png) [@Strider](https://forum.phpvms.net/u/Strider)\
**Post date:** [June 30, 2014, 10:39pm UTC](https://forum.phpvms.net/t/codeshare-module-v2-3/8176/16 "2014-06-30T22:39:51Z")

</div>

you get it from the schedules database.

---

<div class="post-metadata">

**Author:** ![GBAirlines](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/g/67e7ee/32.png) [@GBAirlines](https://forum.phpvms.net/u/GBAirlines)\
**Post date:** [July 1, 2014, 8:49am UTC](https://forum.phpvms.net/t/codeshare-module-v2-3/8176/17 "2014-07-01T08:49:52Z")

</div>

ok thanks

---

<div class="post-metadata">

**Author:** ![GBAirlines](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/g/67e7ee/32.png) [@GBAirlines](https://forum.phpvms.net/u/GBAirlines)\
**Post date:** [July 6, 2014, 9:48pm UTC](https://forum.phpvms.net/t/codeshare-module-v2-3/8176/18 "2014-07-06T21:48:29Z")

</div>

I can’t get the airline image to show, just the airline code shows up?

---

<div class="post-metadata">

**Author:** ![Strider](https://forum.phpvms.net/user_avatar/forum.phpvms.net/strider/32/17_2.png) [@Strider](https://forum.phpvms.net/u/Strider)\
**Post date:** [July 7, 2014, 9:16am UTC](https://forum.phpvms.net/t/codeshare-module-v2-3/8176/19 "2014-07-07T09:16:03Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![GBAirlines](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/g/67e7ee/32.png) [@GBAirlines](https://forum.phpvms.net/u/GBAirlines)\
**Post date:** [July 7, 2014, 9:19pm UTC](https://forum.phpvms.net/t/codeshare-module-v2-3/8176/20 "2014-07-07T21:19:18Z")

</div>

The airline image is showing in the admin panel but not on the codeshare page?

[Next page](https://forum.phpvms.net/t/codeshare-module-v2-3/8176.md?page=2)
