
dimitris
Members-
Posts
188 -
Joined
-
Last visited
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by dimitris
-
Hello all! As I was bored yesterday evening I made some small changes to one of my old skins and I m glad to share with you Enjoy! Release version: 1 Tested on phpVMS: v2.1.934-153-g822a0b9 (should work for earlier) Installation: 1)Upload the folder "illustration" at ./lib/skins folder. 2)Select the skin from admin center dropdown list. 3)Open local.config.php and replace the lines related with the width/height of google map with the following: # Google Map Options Config::Set('MAP_WIDTH', '950px'); Config::Set('MAP_HEIGHT', '550px'); Done! Download Here Details & Photo Here Thank you for your attention Any suggestions appreciated!
-
I can pack something automatically for you but first I have to see the picture you want to use as a certificate Then it is easy with some coding. Regards,
-
I m back from London! Expecting release in 1~2 days from now Thanks for the positive feedback Regards,
-
Hi! I did this with the code box time ago here is the code to add at screenshots_large.tpl <tr> <td> BB Forum Code: </td> <td colspan="2"> <input type="text" name="textfield" id="textfield" value="[img=<?php echo SITE_URL; ?>/pics/<?php echo $screenshot->file_name; ?>]" style="width:500px;" readonly="readonly" /></td></tr> <tr> <td> HTML Code: </td> <td colspan="2"> <input type="text" name="textfield" id="textfield" value='<img src="<?php echo SITE_URL; ?>/pics/<?php echo $screenshot->file_name; ?>" style="max-width: 940px" alt="<?php echo $screenshot->file_description; ?>" />' style="width:500px;" readonly="readonly" /></td> </tr> wherever you like it BUT inside the table Regards,
-
Very nice idea! Would love to have this also Something can bee calculated with the touchdown stats of simpilot Something like: touchdown > -200 = -2% from aircraft status touchdown < -200 = -0.5% from status touchdown >--500 = -5% and go on... Regards,
-
Working on IVAO/VATSIM live flights board for phpvms see here: and here: I wonder if you are interested in such a project ? The difference from the current build in acars map is that this one is getting direct data from IVAO or VATSIM either a pilot have an acars open or not It doesn 't matter. Regards,
-
Hi Ray! Thanks for the update I just edited the code so the users select from a dropdown list the FS version: To do it open add_scenery.tpl and find this line: <td><input type="text" name="simv" id="simv" /></td> about 16 and replace with: <td><select name="simv"> <option>FS9</option> <option>FSX</option> <option>Xplane 9</option> <option>Xplane 10</option> </select> </td> To add more Fs versions add: <option>Whatever you like!</option> The above is working with files from Scenery_v1.2.rar Regards,
-
Hi TAV1702! Thanks for your interest and also thank you for extending the code You are free to publish it here at this thread
-
Hi Tato! What is your website pleasee ? I will try to access the pages with direct links to see if there is any error with the links
-
yea multiple receivers will be a great feature to have also mailing lists would be good. Regards,
-
mattia You should change the #whatever to what ever you wanna do with CSS. A good reference is here: http://www.w3schools.com/css/css_background.asp Regards,
-
Hi! For the map use this code: change "5" to any number of flights you like <?php $flights = PIREPData::getRecentReportsByCount(5); $string = ""; foreach($flights as $flight) { $string = $string.$flight->depicao.'+-+'.$flight->arricao.',+'; } ?> <img src="http://www.gcmap.com/map?P=<?php echo $string ?>&MS=bm&MR=240&MX=650x360&PM=pemr:diamond7:red%2b%22%25I%22:red&PC=%230000ff" /> and for the flight board use this: <?php $count = 5; $pireps = PIREPData::getRecentReportsByCount($count); ?> <table width="100%"> <tdead> <tr> <td>Flight No</td> <td">Departure</td> <td>Arrival</td> <td>Duration</td> <td>Pilot</td> <td>Status</td> </tr> </tdead> <tbody> <?php if(count($pireps) > 0) { foreach ($pireps as $pirep) { { $pilotinfo = PilotData::getPilotData($pirep->pilotid); $pilotid = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid); if($pirep->accepted == '0') $status = 'REJECTED'; if($pirep->accepted == '1') $status = 'ACCEPTED'; else $status = 'PENDING'; } ?> <tr> <td><?php echo $pirep->code.$pirep->flightnum; ?></td> <td><?php echo $pirep->depicao; ?></td> <td><?php echo $pirep->arricao; ?></td> <td><?php echo $pirep->flighttime; ?></td> <td><?php echo $pilotinfo->firstname.' '.$pilotinfo->lastname; ?></td> <td><?php if($pirep->accepted == PIREP_ACCEPTED) echo 'Accepted'; elseif($pirep->accepted == PIREP_REJECTED) echo 'Rejected'; elseif($pirep->accepted == PIREP_PENDING) echo 'Approval Pending'; elseif($pirep->accepted == PIREP_INPROGRESS) echo 'Flight in Progress'; ?> </td> </tr> <?php }} else { echo '<tr><td>There are no recent flights!</td></tr>'; } ?> </tbody> </table>
-
Hi Thomas I found the error you are referring to Problem is now fixed and version 1.1 is now uploaded please check it and tell me. If you are getting a MySQL fetch_array error check the name of the prefix of database's table to be the same as the other tables. Regards, Dimitris See post #10 for version 1.2 - Added FS versio (By TAV1702)
-
Developed and Tested on: phpVMS 2.1.934 php 5.2.6 By: dimitris | http://www.greeceairwaysva.com/ phpVMS module to allow pilots submit sceneries (hosted on other locations) to create a database. Each scenery need to be approved by an Admin before the public view. Create a link at: <?php echo url('/Scenery'); ?> To view the scenery list and admin. See post #4 for updated version
-
While I was trying to find some old files on my server I came up to the awful 404 error page of Apache... Then I made my custom one which(I Think) looks much better Steps: If .htaccess not exist go to step 1.2 1)Edit .htaccess file and add the following line: ErrorDocument 404 http://www.yourdomainname.com/index.php/notfound404 Save, close and upload to your root directory. 1.2)Create a .htaccess with the following contents: ErrorDocument 404 http://www.yourdomainname.com/index.php/notfound404 Save, close and upload to your root directory. 2)create a folder in core/modules named "notfound404" and make a php file named "notfound404.php" with the following contents: <?php class notfound404 extends CodonModule { public function index() { Template::Show('404.tpl'); } } ?> 3)Now in your skin folder make a 404.tpl file and place inside it whatever you wanna see if something not found. (f.i): <strong><h2>The page could not be found on the server.<br /> Error number 404.</h2> </strong> It appears that you have come up on a page that is not present on this web site. It could have been re/moved, spelled incorrectly.<br/><br /> We apologize for any inconvenience that this may have caused.<br /><br /> | <a href="<?php echo SITE_URL; ?>/index.php">Home Page</a> | <a href="<?php echo SITE_URL; ?>/index.php/contact">Tell as about the error</a> | <a href="javascript:history.go(-1)">Go Back</a> |<br/> 4)Place your browser to http://www.yourdomainname.com/index.php/notfound404 and see if it works. Demo: Demo Link Regards, Dimitris
-
set page and database encoding to UTF-8 or your local accent ISO code. These settings can be found on local.config.php and your phpmyAdmin page
-
Hi all! I would Like to have the ability to select all the aircrafts for a flight and/or the ability to select 3/4/5 or any of them. I think it will be nice to have this. Any code or something for this ? Thanks!
-
Hi Nabeel I re installed the old and good php5 and everything is fine now! I will install again later tge php6 to post you the errors. As far as i remember there were about 80-100 lines of errors and warning and then the site (style) without any sql data...
-
Are you sure you put the directories at correct places? Or did you try an other upload ? maybe some file got corrupted on his way
-
Blue Panorama Virtual Airlines - Open in phpVMS!
dimitris replied to Blu-Express VA's topic in Virtual Airlines Discussion
I wish you all the best mate As I can;t find any contact form at your site I have to write it here... I don't wanna start this again but did it reminds you anything ?-> You are right! Greece Airways Va images again! The DIR is the edit you did and the WM with the white curve is ours If you look closer you will see the white curve at the right and left of the image. I hate when people steal the job of others and present it like theirs, this shows that you can't do anything alone or/and you are bored to do so. Regrds, Dimitris -
Hi mark! I found a couple of lines at codon.config.php $version = phpversion(); if($version[0] != '5') { die('You are not running PHP 5+'); } changing the lines to $version = phpversion(); if($version[0] != '6') { die('You are not running PHP 5+'); } cause a lot of problems and the site is not working... Only errors Thanks
-
Hello all! Today I re-installed my localhost and the php version I m running is now 6.0.0-dev. When trying to access my phpvms localhost site an error comes up saying: "You are not running PHP 5+" But I m running 6. Is there a problem or a problem with 6.0.0-dev version ? Regards.
-
Hello all! I m asking the gurus of phpvms to make a more detailed documentation with examples on how to insert/update/delete/select data from the vms's database, creation of custom classes and other. It would be very useful for everyone of us here. The current documentation is very limited and it is not giving the ability to other people understand the core of phpvms. For example now, I m making a module with a big scenery database which is based on company's schedule, and I need to have an INSERT function to pass data from a form to database and my big problem is that I don't have a place to get an example on INSERT or something. Once again I (and more) would like to see a more detailed documentation for vms. Thanks for the great system, the support and the time you have put on this guys! Regards, Dimitris