Development Help
For help and support for the development of addons
523 topics in this forum
-
- 3 replies
- 1.8k views
Hello everybody.because a am new , how can i create a link in my phpvms webpage? Thanks a lot.It s possible someone to explain step by step?
Last reply by mark1million, -
- 0 replies
- 1.5k views
Nevermind...
Last reply by xhector, -
- 6 replies
- 2.9k views
I Did a new pilot list adapted of the FSACARS code. This code need conect_db.Example <?php $hostName = "localhost"; $userName = "XXXXX"; $password = "XXXX"; $dbName = "XXXXX"; /* make connection to database */ mysql_connect($hostName, $userName, $password) or die("Unable to connect to host $hostName"); mysql_select_db($dbName) or die("Unable to select database $dbName"); ?> <?php /* Constants */ @define ("MYSQL_CONNECT_INCLUDE", "connect_db.php"); // MySQL database connection (a sample file is included) /* Database connection */ include(MYSQL_CONNECT_INCLUDE); /* Select all pilots */ $query = "SELECT * FROM phpvms_pilots ORDER BY pilotid ASC"; $r…
-
flightboard
by joeri- 28 replies
- 9.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, -
- 23 replies
- 6.7k 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, -
- 6 replies
- 2.6k views
Hello everyone, I have been looking for a way to create a comment system for pilots(just like the one for PIREP's but where only admins can see). I just can't really find a way to do so. If someone could help me, or point me in the right direction, that would be greatly appreciated. Thanks, Dave
Last reply by Talisman57, -
- 4 replies
- 2.2k views
Any body have a template or script I can add for Pilot and Staff applications? And if so, where and how do I put it in the website. I am very new to this (coding etc..)so please bear with me, LOL
Last reply by Steve Bartlett, -
- 9 replies
- 8.1k 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, -
- 8 replies
- 2.6k views
I am almost complete a module that i have been working on for awhile, and am looking for a beta tester, to try it out on their site. - I am looking to see how it works with other sites - What you think of it - and any way it can be improved Message me here at phpvms or leave a comment below and ill message you! thanks
Last reply by MrAmsterdam, -
I'm not one to do scripting, so if I could get some help, would be great. I'll ask questions regarding what I'm doing in this post. First off, how is a module created that shows up in the admin area as well as frontpage? Next, how can I show only 1 of each of the aicraft in the fleet on a page? edit: All this is going to be in the same module
Last reply by BBuchanan, -
URL problem
by Jason- 1 reply
- 1.1k 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.7k 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, -
- 2 replies
- 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, -
- 3 replies
- 2.2k 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, -
- 15 replies
- 6.6k 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, -
- 8 replies
- 3.9k 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, -
- 5 replies
- 3.1k 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
- 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, -
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, -
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, -
- 25 replies
- 11.5k views
Okay guys, and gals, I have been up, down, inside and out of this forum since I purchased PHPVMS from www.fivedev.net, and I'd have to say I have yet to see a post anywhere that asks or shows how people go about creating schedules to insert into the MyAdmin panel of php/VMS. I'd have to say that when we were using php/VMS on a free server, it was very hard to come up with an easier way to create a schedule. Included in this post is a link to the file you need to make this process alot easier for you to create hundreds or thousands of schedules at a time before you convert it over to .csv How it works: You need Microsoft Excel 2003 or greater to use this (as I'm sure mo…
Last reply by Kyle, -
- 0 replies
- 2k 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, -
- 3 replies
- 2.3k views
Hi Guys, What about an addon that all pilots can use to link a landing that they made to a youtube video. Example: You have an awesome landing or a landing in bad weather or something like that. You create a video and upload it to youtube. Then you go to the website and attach the link to the pirep. There is a possibility to add the video link to the comment section of the pirep but you need more time to create a video. So the best would be to add the link later to the pirep or to a whole different "Video" section on the site. Regards Lucas
Last reply by MrAmsterdam, -
- 1 reply
- 1.7k 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
- 4.7k views
To show your status on Skype simply add this lines in the /core/templates/frontpage_main.tpl (with crystal skin, but work also with all other skins) before the last </div> tag at the bottom source code. Replace YOURSKYPENAME with your own Skype name. You can see the result here Italian Virtual Pilots --- Gianni --- <p> <left>WebMaster attualmente <p> <!--Skype 'Webmaster is now' button http://www.skype.com/go/skypebuttons--><script type="text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js"></script> <a href="skype:YOURSKYPENAME?call"><img alt="My Status" height="4…
Last reply by flyalaska, -
- 5 replies
- 2.7k views
Hello could create an addon to show the statistic of the virtual airline on a certain page in the case would create a new page with the name "airline stats" to be accessed at www.mysite.com / index.php / airlinestats. Thank you for your attention
Last reply by James142, -
- 8 replies
- 2.6k 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 reply
- 1.4k 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.3k 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.7k views
Hey, Just wondering, is there a fuel planner for phpvms, Or like a fuel dispatcher. Lets us know J
Last reply by mark1million,