Jump to content

web541

Members
  • Posts

    700
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by web541

  1. Maybe try this: public static function get_pilots_newscreenshot($pilot_id, $count) { $query = "SELECT id, file_name, file_description, pilot_id, UNIX_TIMESTAMP(date_uploaded) AS date FROM ".TABLE_PREFIX."screenshots WHERE pilot_id='$pilot_id' AND file_approved='1' ORDER BY date_uploaded DESC LIMIT $count;"; return DB::get_results($query); } I added the ".TABLE_PREFIX." In front of the table name which should allow it to pick up the data now
  2. I just noticed that in your previous post that you said you modified the module Just to clarify, in core/modules/Screenshots/Screenshots.php You have these public function { And in core/common/ScreenshotsData.class.php you have these public static function { If that doesn't work, then you might have to wait for Dave, you can try to hide the error in the meantime but that is not ideal
  3. I can't speak for @TheBulk, but it should work as it should under https:// provided that you do change all http:// references to https:// and change your site url in local.config.php to https:// One issue I suspect will happen though is the adding airports function, because the api.vacentral.net server is using the http:// protocol, you might get a mixed content exception error in your console which won't allow it to search. But if you've got a separate way to search these airports e.g. finding the lat/lng/airport info separately or modifying the script to search another server, then I can't see why it wouldn't work.
  4. http://forum.phpvms.net/topic/22757-vacentral-status-and-updates/#entry120870 http://forum.phpvms.net/topic/20739-trouble-with-airports-also/#entry111443 http://forum.phpvms.net/topic/20668-add-new-airport-error/#entry111021
  5. Try installing this version? https://github.com/DavidJClark/phpvms_5.5.x There have been problems with GoDaddy in the past, but you should be able to make it work.
  6. Try re-uploading the core/modules/Registration/Registration.php file for the second one, check here http://forum.phpvms.net/topic/20629-most-common-fixes-phpvms-installation/ And if that doesn't work, try installing this version https://github.com/DavidJClark/phpvms_5.5.x
  7. As you can see, it is calling the module class not the data class Non-static method Screenshots::show_random_screenshot() Try going into core/Screenshots/Screenshots.php and add the public static function on those functions Non-static method ExtraData::get_pilots_newscreenshot() I think you missed this one while going through the classes, ExtraData.class.php not ScreenshotsData.class.php
  8. <?php // make sure that $pilotcode exists where you are trying to put it if(!file_exists(SITE_ROOT.AVATAR_PATH.'/'.$pilotcode.'.png')) { echo '<img src="'.SITE_URL.AVATAR_PATH.'/noavatar.png'.'" alt="No Avatar" />'; } else { echo '<img src="'.SITE_URL.AVATAR_PATH.'/'.$pilotcode.'.png'.'" width="300px" height="195px" alt="Has Avatar" /> '; } ?>
  9. Go to your acarsmap.tpl/.php in your skin folder (or core/templates if it's not there) and find this var acars_map_defaults = { And inside this section place this autozoom: false,
  10. Edit the frontpage_main.tpl/.php from inside core/template, bear in mind that you should be copying that file to lib/skins/YOURSKINNAME and editing it there so it doesn't get overwritten in the future. For the content itself, go to http://yourvaurl.com/admin/index.php/sitecms/viewnews
  11. Make sure that all files have been uploaded. Looks like you could be missing a class or something. Make sure that your database connection is correct in local.config.php
  12. Can you check your firebug console for any errors? Have you viewed the source code of your page to make sure that your dropdowns are actually on the page but just not showing? Are you able to provide us with your code and/or website to check if something is missing?
  13. <td><a href="<?php echo actionurl('/pireps/filepirep/'.$bid->bidid);?>">File PIREP</a><br />
  14. try this one for your version phpVMS 2.1.936 https://github.com/nabeelio/phpVMS
  15. What version of phpvms are you running?
  16. yep, you can make adjustments accordingly, it's in admin/modules/Operations/Operations.php
  17. This? phpVMS 5.5.x https://github.com/DavidJClark/phpvms_5.5.x
  18. admin/core/modules/Operations/Operations.php
  19. Go into core/common/StaffData.class.php and change all instances of function or public function to public static function
  20. Try Pagination. http://forum.phpvms.net/topic/5342-to-get-the-pagination-for-the-schedules-to-work/ or here http://www.tutorialspoint.com/php/mysql_paging_php.htm
  21. Basically, you cannot prevent someone from accessing your source code from the front end. But if you need to protect your files from the back end (server side), try a .htaccess file like this http://forum.phpvms....directories-r35
  22. Make sure you have closed } and ?>
  23. Search http://forum.phpvms.net/topic/8654-accepting-pireps/#entry57641
  24. web541

    JSON array

    Depends what you want to do with it Agreed, would like to know also. And what do you plan on using this for? (this maybe? http://forum.phpvms.net/topic/23696-flight-path-on-google-maps )
  25. go into core/common/FBSVData.class.php and change all of these public function to public static function In your local.config.php file, change or add these # If someone places a bid, whether to disable that or not Config::Set('DISABLE_SCHED_ON_BID', true); Config::Set('DISABLE_BIDS_ON_BID', true);
×
×
  • Create New...