Jump to content

simpilot

Administrators
  • Posts

    2773
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by simpilot

  1. Make this change -> https://github.com/DavidJClark/phpvms_5.5.x/commit/59e80518130a693ad1756066f9a02119a39b6771 <- to correct the image from text error. The 500 error could be just about anything but I would start with removing the .htaccess file from the site root and see if that is the issue.
  2. http://forum.phpvms.net/topic/18860-i-have-a-xxxxxxtpl-file-not-found-error/
  3. You are allowing it to create a new table.
  4. I think this is what you are looking for <?php if(Auth::LoggedIn()) { //do stuff if the user is logged in } else { //do stuff if they are not logged in } ?>
  5. Whats the link to your site/map?
  6. I would look at it again. It seems to be working on the example -> http://skyline-va.de/phpvms/index.php/acars/viewmapbig
  7. There is a couple of charts including the pie chart for aircraft usage on this page -> /index.php/profile/stats
  8. I think you should be importing it directly into your phpvms_airports table. I have not seen the file but if the first line is table headers you will need to set phpmyadmin to ignore them.
  9. <?php echo SITE_URL?> This should output the url of your site as defined in your local.config.php file
  10. Without knowing how the template has been edited I would guess the link has been edited incorrectly. It should be something like: <a id="<?php echo $schedule->id; ?>" class="addbid" href="<?php echo actionurl('/schedules/addbid/?id='.$schedule->id);?>">Add to Bid</a>
  11. You still have to put some code in your skin for the links. The information can be found int he first post here -> http://forum.phpvms....822-airmail-30/ The search function is your friend.
  12. Heres a start -> http://forum.phpvms.net/topic/19785-livemap-and-inair/#entry106970
  13. Have you tried adding "addslashes" to the incoming text from the form? I have already added it to the pilotname field in my development version to fix pilot names with apostrophes. public static function AddNewsItem($subject, $body) { $subject = DB::escape($subject); $body = DB::escape($body); $postedby = Auth::$userinfo->firstname . ' ' . Auth::$userinfo->lastname; //added to combat pilot names with apostrophes $postedby = addslashes($postedby); $sql = 'INSERT INTO ' . TABLE_PREFIX . "news (subject, body, postdate, postedby) VALUES ('$subject', '$body', NOW(), '$postedby')"; $res = DB::query($sql); if (DB::errno() != 0) return false; return true; } maybe try $body = addslashes($body);
  14. You are going to have to catch the error from the database. If you enable de-bugging and do not see it add this to your SiteData.class file in the addPage function temporarily, then try to add a page and see what it shows. $sql = "INSERT INTO " . TABLE_PREFIX . "pages (pagename, filename, postedby, postdate, public, enabled) VALUES ('$title', '$filename', '$postedby', NOW(), $public, $enabled)"; $ret = DB::query($sql); if (DB::errno() != 0) return false; make it look like this temporarily $sql = "INSERT INTO " . TABLE_PREFIX . "pages (pagename, filename, postedby, postdate, public, enabled) VALUES ('$title', '$filename', '$postedby', NOW(), $public, $enabled)"; $ret = DB::query($sql); var_dump(DB::error());exit; if (DB::errno() != 0) return false; I am guessing there is an apostrophe in the user name or the text somewhere that you don't realize is there. What is the link to your site?
  15. You need to use phpMyAdmin, probably from your hosting control panel. The image you show is the phpVMS admin panel.
  16. Untested but try -> /core/common/SiteData.class.php public static function GetAllPages($onlyenabled = false, $loggedin = false) { $sql = "SELECT * FROM " . TABLE_PREFIX . "pages"; if ($onlyenabled == true) { $sql .= ' WHERE enabled=1'; if ($loggedin == false) { $sql .= ' AND public=1'; } } return DB::get_results($sql); } to public static function GetAllPages($onlyenabled = false, $loggedin = false) { $sql = "SELECT * FROM " . TABLE_PREFIX . "pages"; if ($onlyenabled == true) { $sql .= ' WHERE enabled=1'; if ($loggedin == false) { $sql .= ' AND public=1'; } } $sql .= ' ORDER BY pagename ASC'; return DB::get_results($sql); }
  17. http://forum.phpvms.net/topic/18860-i-have-a-xxxxxxtpl-file-not-found-error/
  18. You need to allow the script more time to execute. Set it in your php.ini or edit the script and include a ini time declaration.
  19. Not sure if this is exactly what you want but using action.php instead of index.php will make it "skinless". I do not understand why you are going through all this work to bring all the functions outside of the phpVMS structure. You realize you can just skin (template) the phpVMS system to your likes, right?
  20. I am not aware of an option that resets a page template cache. There is a function in the admin panel to reset the general cache of the site but I do not beleieve it is going to do anything with the saving pages issue. Admin > Site & Settings > Maintenance Options > Clear Cache If your host was able to fix it before I would contact them again.
  21. levicosta released one here -> http://forum.phpvms....dmin-panel-free <- not sure if the link still works (EDIT: link broken) itrobb started one here -> http://forum.phpvms....min-skin-solved <- I don't know if he ever released anything but he has some good pointers in the thread. There are a few others, the search function is your friend.
  22. Admin > Airline Operations > Add & Edit Fleet In sidebar export a csv file to start with and fill out. Import it back to the system. That is about the easiest way unless you can get someone to give you their list but that is all part of building a VA.
  23. Not sure about the news error without more information but the page error is most likely a folder permissions issue on the pages foldwer. Check the permissions and make sure they are at least set to 0755
  24. If I am following you correctly and you are at - /pireps/view/(pirepid) - I think the variable should be $pirep->pirepid not $report->pirepid
  25. simpilot

    OceanBlue

    I think it is layout.tpl line 81 <a href="#">Ocean Blue</a>
×
×
  • Create New...