Jump to content

simpilot

Administrators
  • Posts

    2773
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by simpilot

  1. @jon, the building, extending, or overall use of the news function is not an issue with me. If you look back through old threads about it in this forum you will see I have been asked to move the link, remove the link, and to extend the module, all without issue. I actually think SimpleNews is a rather nice extension to the phpvms system, I may even use it in the future, and after all it is governed by a visualidiot license so even I should be able to handle that. The point I am trying to make, which it seems I have not been able to convey, is that when Tom has issue with what he referred to as "vague snipes" from me, (which were not in the open forum) he should follow his own direction. It is also amusing to me that he would put claim to not wanting copyright or links on anyone's site, why put one in his own work? This all stems from another post in the forum in which I reminded a user about the license for the PopUpNews module, but if you notice I did not say a word until they themselves made an open complaint of their own work being used without permission or attribution. The work I do around phpVMS has been more of a hobby than anything, and yes, I do make a few extra dollars here and there that gives my kids the little extras they want. I have contributed to the core coding of the system, released many free modules, helped more users than I can remember, and donated to Nabeel to help pay for his server costs, for the most part free of charge and asking nothing in return. It just frustrates me that after being here for a few years why people find it necessary to try and find it necesarry to degrade both phpvms and my own work. A link back does help developers in their real world work, one of my latest projects has been for the real world Piedmont Airlines building a health and wellness tracking system (pdthealth.com) for which the connection came to me directly from the networking and attribution from my work here at phpVMS. I also find it frustrating when users here on the forum find the constant need to put anyone and everyone down about anything they can, trying to be part of the solution instead of extending the problem will take everyone much further in life. Every developer, if they are a hobbyist, student, or professional deserves at least a little respect. If you disagree with something, explain why, don't automatically make it wrong just because you feel differently. Unfortunately the open access to the web makes everyone a developer. If you go through the paid services forum you will find the vast majority of "professional developer" sites have either disappeared, restarted numerous times claiming "issues", or have complaints against them of taking money and not returning a product or service. I will apologize to Tom for this topic getting to where it is at this point, if you would like to start another one I will rename, deprecate, and lock this one if you so request. (Once again doing my best to be fair to everyone)
  2. Maybe I mis-spoke - I am meaning your phpvms site templates - one example here -> http://vdalairlines.com/ - bottom right, nice integration of popupnews by the way....
  3. funny how this is on the bottom of the html of all your templates - guess it is ok for all of them to have copyrights all over them, Design by <a href="http://www.tomsterritt.com/phpvms" target="_blank">Tom Sterritt</a></div><!-- Linkback required by license -->
  4. What are you using for a database address - "localhost" ? If it is free hosting it is probably located on another server and you will need to put the address for it in place of the "localhost"
  5. This is working for the airlines I work with that are flying cargo flights. Have you set a price in the ticket price for the schedule? It would be the price per pound, kilo, or whatever unit you are using. Also the aircraft itself must have a maxcargo setting which is then multiplied by the percentage of load set in the local.config.php file.
  6. If all your code is still in place, I think the last time we ran into this error it was an issue with the javascript in the acars.tpl file and how it was being called on the server. Do you have a link to your site?
  7. You could build your sql call to just get the pilots dep and arr airports and sort them by count highest to lowest. Maybe something like this for departures - untested but should get you started $query = "SELECT COUNT(depicao) AS total FROM ".TABLE_PREFIX."pireps WHERE pilotid = '$pilotid' GROUP BY depicao ORDER BY total DESC"; $total = DB::get_results($query); return $total->total;
  8. If you are on any of the version 2 builds, including the latest stable build this module is really not needed. Nabeel built this function into the core system and the landing rate field is automatically filled in when a PIREP is submitted if it available in the log. I wrote a newer module to get the data from the database and display it. -> http://forum.phpvms....chdownstats-10/ I would start using that module and adjust the data class to ignore the aircraft id's of the helicopters in your fleet. Adding something like WHERE $aircraft->id !='1' AND WHERE $aircraft->id !='2'
  9. Thanks! @flyalaska and @CPC900
  10. Take them out of the templates folder so they are like; /lib/skins/mynewskin/layout.tpl
  11. Did you put it inside of a folder named mail; /lib/skins/my_skin/mail/template.tpl If it is placed in the right place and that is the one you are editing try using a color code instead of a name.
  12. Have you placed another copy of the template in your skin folder and maybe editing the one in the /core/templates folder?
  13. And you accused me of making vauge snipes not but a few months ago.... A requirement for a link back to the creator of any freeware is not uncommon, it is part of phpVMS as well. Have I pestered a couple lately about not having a link back, yes, but most often it is after they themselves have gotten upset about someone copying/using their own work without permission or attribution. If you are going to re-write all my modules I hope you make the next one RealScheduleLite as that seems to be popular but has never gotten to a point that it satisfy's everyone using it.
  14. There is a group of config options in the local.config.php file # Options for the signature that's generated Config::Set('SIGNATURE_TEXT_COLOR', '#000000'); Config::Set('SIGNATURE_USE_CUSTOM_FONT', true); Config::Set('SIGNATURE_FONT_PATH', SITE_ROOT.'/lib/fonts/MankSans.ttf'); Config::Set('SIGNATURE_FONT_SIZE', '11'); Config::Set('SIGNATURE_X_OFFSET', '10'); Config::Set('SIGNATURE_Y_OFFSET', '17'); Config::Set('SIGNATURE_FONT_PADDING', 4); Config::Set('SIGNATURE_SHOW_EARNINGS', false); Config::Set('SIGNATURE_SHOW_RANK_IMAGE', true); Config::Set('SIGNATURE_SHOW_COPYRIGHT', true);
  15. Have you refreshed the signatures from the admin panel?
  16. Check that the image JAL0001.png is actually set to 777 and not just the folder it is in. If the folder is set to 777 you can also just delete the signature banners and then recreate them from the admin panel and the server should create them with permissions set to 777.
  17. @MrBean Thank you for clairifying your statement.
  18. @Mr Bean, and how is asking for a little license respect make me look like a crying baby? This attitude of not respecting a license, especially one associated with something you are getting for free, is what drives developers away from projects.
  19. For your own site: From the Pop Up News License,
  20. Locking this thread. - As it has been stated many times in this thread, the user was posting copyrighted material and his site was shut down.
  21. I have change dthe code a little in TouchdownstatsData.class.php to solve the error and return a '0' instead of an error. It has been updated on GitHub to reflect the following. public function pilot_average($pilotid) { $stats = self::pilot_stats($pilotid); $total = 0; $count = 0; if(!empty($stats)) { foreach ($stats as $stat) { $total = $total + $stat->landingrate; $count++; } return $total / $count; } else {return '0';} } You could do something like this in your template to get the 'No Flights' message; <?php $avg_rate = TouchdownStatsData::pilot_average($userinfo->pilotid); if($avg_rate == '0') {echo 'No Flights';} else {echo round($avg_rate, 2);} ?>
×
×
  • Create New...