Jump to content

web541

Members
  • Posts

    700
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by web541

  1. 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.
  2. 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
  3. 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
  4. <?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" /> '; } ?>
  5. 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,
  6. 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
  7. 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
  8. 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?
  9. <td><a href="<?php echo actionurl('/pireps/filepirep/'.$bid->bidid);?>">File PIREP</a><br />
  10. Go into core/common/StaffData.class.php and change all instances of function or public function to public static function
  11. 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
  12. 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
  13. Make sure you have closed } and ?>
  14. Search http://forum.phpvms.net/topic/8654-accepting-pireps/#entry57641
  15. 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 )
  16. 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);
  17. Have you tried to follow this? http://forum.phpvms....es-with-phpvms/ Made some amendments spatial.zip
  18. I just submitted a pull-request on this one. Changed $this->shoe('career'); to $this->show('career'); In your github files to make sure that the template is correctly rendered.
  19. Open core/common/CareerData.class.php find this public function getgenaward() { $sql = "SELECT * FROM " . TABLE_PREFIX . "awards"; return DB::get_results($sql); } public function getranks() { $sql = "SELECT * FROM " . TABLE_PREFIX . "ranks ORDER BY minhours"; return DB::get_results($sql); } public function getaircrafts($rankid) { $sql= "SELECT distinct icao FROM " . TABLE_PREFIX . "aircraft WHERE minrank=" . $rankid; return DB::get_results($sql); } And replace it with this public static function getgenaward() { $sql = "SELECT * FROM " . TABLE_PREFIX . "awards"; return DB::get_results($sql); } public static function getranks() { $sql = "SELECT * FROM " . TABLE_PREFIX . "ranks ORDER BY minhours"; return DB::get_results($sql); } public static function getaircrafts($rankid) { $sql= "SELECT distinct icao FROM " . TABLE_PREFIX . "aircraft WHERE minrank=" . $rankid; return DB::get_results($sql); }
  20. Depends where he wants it, the Auth:: variable will only access the currently logged in user (I believe), so you can declare $pilot or $userinfo separately wherever he wants to use it. And also, by the looks of things, it looks like he wants to access the profile page of a pilot. Specifically, like the pilot roster, $pilot could be a number of pilotids which are looped through. <?php $allpilots = PilotData::getAllPilots(); foreach($allpilots as $pilot) { echo '<a href="'.SITE_URL.'/index.php/profile/view/{$pilot->pilotid}">View Profile</a>'; } ?>
  21. web541

    News

    And this one https://github.com/DavidJClark/phpvms_5.5.x/blob/master/core/common/ActivityData.class.php
  22. http://forum.phpvms.net/topic/3909-solved-live-map/#entry26401
  23. tpl or php version of phpvms? Make sure you upload all the files, then rename them to .tpl instead of .php iif your running that version.
  24. Just add the top line and bottom three lines to the pilots_list.tpl/.php as well to make it show up
  25. try going here? http://yourvaurl/admin/index.php/maintenance/calculateranks Do you have automatically calculate ranks on?
×
×
  • Create New...