Development Help
For help and support for the development of addons
515 topics in this forum
-
- 9 replies
- 9.5k views
sry for my bad english skills.. mates, unfortunately i'm new in this php thing and I just need a little help. Is there any script that we can use to add more registrations in one aircraft? my va will operate a lot of airlines and its kinda hard to add 20x777's, 56x737's, etc. Someone said to me in this forum I have to add in the database but I dont want mess up the database so how can I do that? does someone have a script to add only registrations for the same type of a/c? thanks for your support - take care all - cheers!
Last reply by iafhq, -
URL problem
by Jason- 1 reply
- 1.3k views
The problem i am having is when my module try's to open a .zip file for example or .css, the url is www.mysite.com/index.php/modulename/filename.zip. However because it includes the "Index.php" the website trys to find a module, instead of opening the file. Is there anyway i can do this so the website opens the .zip file instead of trying to find a module.
Last reply by Tom, -
- 1 reply
- 1.9k views
I am creating a module and i am wondering if there is a way to only allow a specific group (admin) to use the module created.
Last reply by mark1million, -
- 4 replies
- 10.7k views
Is there anyway to get a full database? I mean all current airports. I know it would be a large file. Just curious.
Last reply by eliezerazevedo, -
- 3 replies
- 2.4k views
Hi, Is there any way you could put a piece of code into a page so someone could refer the VA to a friend? Thanks, Nathan Hancock
Last reply by Jeff, -
- 2 replies
- 2.2k views
I have been thinking about this for sometime now, Im not a coder. I think a poker run system would be great to have, of course it would have to be paid software, do to the technical coding that has to be done, But if anyone is up the the challenge I am willing to pay..... Regards, Allan
Last reply by Allan, -
- 15 replies
- 4.8k views
Hi phpVMS people, I am always on the go, and when I get a moment, it would be great if I could do some work on my airline, but the iPhone will not let me type anything on that page. My main question is: Can an app be made for the iPhone to manage phpVMS? I can do most of the coding, but the connection is where I could use some help. Thanks, David Oliveira Verazano Virtual
Last reply by vader21, -
- 1 reply
- 2.2k views
I have created a module to upload images for staff to use in forum posts and other areas of the site. What I want the script to do is echo out a html link for the file that was uploaded without actually parsing the code. I can get it to echo code and NOT parse it, but for the life of me I can not get it to echo the file name back to me. Can one of you experts take a peak at this for me? And please don't laugh. It was my first real true honest shot at a cool module. <?php $target = "files/upload/"; $target = $target . basename( $_FILES['uploaded']['name']) ; $ok=1; //This is our size condition if ($uploaded_size > 350000) { echo "Your file is too large.&…
Last reply by TAV1702, -
I have made a page on my site for each one of my hubs. I have it pulling stats and pilot info. Now I am curious if we can create a link or something that would work like the schedule search except it would only list the flights to or from that hub. It would be real nice if it knew the difference between the cargo, passengers, or charter flights. That way We could create a link for each kind of flight. Wishful thinking or doable?
Last reply by TAV1702, -
Since we have pay adjust built in to phpVMS now, I am wondering if it is at all possible to create a cron job that will pay adjust pilot spay weekly. Like say for example, a hub managers pay is $5k/wk. On a set day, the cron would run and adjust the pilot s pay according to the weekly pay rate. Problem is, if you have many different jobs with many different pay rates, how many crons would be needed and how would it know who to pay what to? I have never been a cron job wizard. What I do not know about them can fill a book. It would be REAL sweet if we can figure out a way to pay the staff their weekly pay and then have it either send them an email or even an AIRMail t…
Last reply by mark1million, -
- 4 replies
- 2.8k views
Has anyone ever made a basic voting booth? I badly need a way for pilot to vote on stuff on my site and right now we have no way to do it. I could use a poll option from a regular forum, but we do not use a regular forum. We use VA Forum2. It would need the option of running multiple polls at once since some would run longer or shorter than others. I am stuck between a rock and a hard place now with this one. I am not sure how to code one up at all using admin section of phpVMS.
Last reply by TAV1702, -
- 7 replies
- 5.8k views
Can someone pass me the code to make the Map Live This Way?
Last reply by flyalaska, -
- 0 replies
- 2.3k views
Add to pilot_public_profile.tpl(It is in public_html / Core / Templates) <?php if(!$pireps) { echo '<p>Sorry No recent flights have been found</p></div>'; return; } $flights = PIREPData::getLastReports($userinfo->pilotid, '5'); $string = ""; foreach($flights as $flight) { $string = $string.$flight->depicao.'+-+'.$flight->arricao.',+'; } ?> <p align="center"><strong>Pilots Recent Flights</strong><br /><img src="http://www.gcmap.com/map?P=<?php echo $string ?>&MS=bm&MR=240&MX=685x360&PM=pemr:star10:red%2b%22%25I%22:white&PC=blue" /><br /> Maps generated by the <a href="http:…
Last reply by Rafael, -
- 23 replies
- 7.5k views
Can someone pass me the HTML of the statement of the last flights of the pilot? Example: http://www.easyjetva.com/index.php/profile/view/1001 (Pilots Recent Flights)
Last reply by Blu-Express VA, -
- 8 replies
- 4.4k views
Hey, I love making signatures for some reason, and I thought there could be no better way then to help out the phpVMS community. Most of you already have awesome badges, but for those who don't, I'm willing to create one for you for FREE. This includes status badges for simpilot's paid service. So, if you want one, give me the following details, either by PM or by reply: - Dimensions in pixels (default is 500px x 120px) - Border (Yes/No) and if yes, what colour? - Image (You must provide your own background image) - Specific font, colours, style, text etc. I hope this will help a lot of VAs. Regards, Iain.
Last reply by freshJet, -
flightboard
by joeri- 28 replies
- 10.2k views
so here is the mess i made :-) i created a tpl called frontpage_recentbids.tpl there i put in this <style type="text/css"> <!-- .style1 { color: #F60; font-weight: bold; } .style2 { color: #000000; font-size: 18px; } .tablesorter { color: #FFF; } .tablesorterb { color: #FFF; } .tablesorterBIS { color: #FFFFFF; } .tablesorter .style1 .tablesorter { color: #000; } .tablesorter tbody tr .tablesorter { color: #000; } .tablesorter tbody .tablesorter .style2 { font-size: 10px; } .tablesorter tbody .tablesorter .style2 { color: #0F0; } .tablesorter tbody .tablesorter .style2 { color: #000; } .Style3 { font-size: 18px; } --> </style> <h3>Live Flight …
Last reply by Tylor Eddy, -
- 1 reply
- 1.9k views
Hello, I'm from cloud virtual airlines. I've already did one post but still have no cleu of how to make a dropdown menu. At the moment I'm using the skin "detachable" could anybody help me with starting a drop down menu from the beggining I already researched for 2 weeks so please help me and don't point me to aother topic, because I already saw every topic with the word drop down menu in it. www.cloudvairlines.com Vincent, ivinc@mac.com
Last reply by flyalaska, -
- 8 replies
- 2.9k views
I saw on Mark's Site (easyjetva) he used google translate. Mark Could You Share the code and how to make it on the sidebar like that please? Thanks!
Last reply by Thomas Rozanov, -
- 1 follower
- 138 replies
- 1.9b views
Dear All I'm to proudly announce that I have completed a new form of flight booking system for the great PHPvms software. I actually combined 3 Add-ons (simpilot realschedulelite, frontschedule and lorathon random itinerary builder) to create this new method of flight booking. Attached, you can find the file. Thanks Parkho Install: 1. Create SQL table using the one provided in the folder(realschedulelite.sql) 2. Upload the files in the order of the folders into the PHPvms software. .tpl files should go to your skin folder if you don't one the default .tpl changed. 3. Access it by <?php echo url('/FrontSchedules") ;?> 4. Enjoy. Pix: Download…
Last reply by Curshad, -
- 1 reply
- 1.7k views
Hello, I'm Vincent Peters website manager of Cloud VA: www.cloudvairlines.com I'm finishing of the website but I want to make scroll down menus I did some research but did not understand it. I was wondering if there's anyone that would like to help me with making the menus? I now almost no php or CSS. Vincent
Last reply by simpilot, -
- 1 reply
- 1.5k views
i need to create a drop down list of all the departure/arrival airports, aircraft outside of the system in an external page, the issues im having at the moment is how can i populate the drop down list with a list of all the unique airports? etc.
Last reply by simpilot, -
- 1 reply
- 1.9k views
Hey, Just wondering, is there a fuel planner for phpvms, Or like a fuel dispatcher. Lets us know J
Last reply by mark1million, -
- 2 replies
- 2k views
I have read the API's documentataion regarding sending variables to scrips using the URL. Like index.php/moduletest/pageone/apple/red Gives the varible 'apple' the value 'red' to the script function pageone However I wan't a module to remember the setting, while fetching an other variable, like /beer/isgood. Next time the page is loaded the scripts remember that the user already has seleced red apples, when the user select the option beer is good. Then can process a page based on these settings? I am gone use this for creating dynamic SQL's where the where clause might cange, in terms of value and number of criterias given. Eg, first click filters on pilotid, next cli…
Last reply by Wingthor, -
- 5 replies
- 3.6k views
"What! He's asking another question?" Yes. He is. Don't judge him, he doesn't know anything. Moving on. I came across this snippet a few days ago that will allow me to display recent flights underneath a map (GCMap), and it works like a charm. I sized it down and added it to the sidebar on my home page. Now, the question is this. And please understand that I do a lot of wingin' it when it comes to code, and while I can generally understand how things work and how to change them, I just don't understand this map thing quite yet. I have a list on my home page as well, that shows upcoming flights (pulled from pilot bids), and I want to display a similar GCMap to displ…
Last reply by Kyle, -
- 1 reply
- 2.1k views
Hey, I think this may came up but, I don't see anything in the forums for Hub Stats, so I'm requesting an module for hub stats. If anyone can create it, and We would be all be thankful!!!
Last reply by Daniel, -
- 0 replies
- 1.5k views
Hi @ all, i find a easy solution to make phpVMS Pages (e.g. briefing page) printable. You find a code generator a informations at http://www.printfriendly.com/ I tried out and works well! Regards Andreas
Last reply by Andy, -
- 15 replies
- 7.3k views
Hi all, I currently have som spare time, and wants to refresh my PHP knowledge. I also want to have a nice frontpage showing new awards. So I need a lot of them. The deadline for the project is currently open. First question is that if this is build before? Second is I could need som input creating awards. I have pasted in the result of my brainstoring below, but need som input from the public. The system is a kind of inspired by FSX own award system. Hopefully it can contribute to an internal and friendly competition among your pilots. The awards must be based on objective data from an acars system. So the data must be there, and the data must be able to be extraced w…
Last reply by mark1million, -
- 1 reply
- 1.8k views
Hi again... I currently working with an addon which I think will have to 'explode' the raw data from the pireps table in the database. When inspecting the database it seems like FSPassengers pirep's raw data goes to the field log, while fsfk's goes to the table source. Where the free Xacars goes I don't know, does any one know? Is this a bug, which I can expected to be fixed? It is no big issue, but it is nice to know when coding the addon. Regards
Last reply by Wingthor, -
Landing rates by month and all time
by Guest Stormchaser- 1 follower
- 16 replies
- 4.7k views
My pilots love the landing rate module and have had a few requests to do it by month instead for all time. I have pilot stats module and landing rates combined on one page. Wondering if there is a way to combine top pilot module and landing rate module into one so landing rate pulls by month. Not much of a coder before I started this but learning how to copy and paste pretty good to manipulate code. Just asking if someone has done this already save me a great deal of time. And by the way always like to say thanks for phpvms!
Last reply by Wingthor, -
- 1 reply
- 1.8k views
I am working on code to get the charts for the airports your VA arrives and departs from working, so you can always have in the schedule pilot brief a dep and arr charts. http://malaysiava.org/index.php/schedules/brief/91 Take a look there, the code is simple. <img border="0" src="<?php echo SITE_URL ?>/lib/images/charts/<?php echo $schedule->depicao?>.png" width="387px" height="594px" alt="No chart available" /> <img border="0" src="<?php echo SITE_URL ?>/lib/images/charts/<?php echo $schedule->arricao?>.png" width="387px" height="594px" alt="No chart available" /> All that is required is for you to create …
Last reply by mark1million,