Jump to content

simpilot

Administrators
  • Posts

    2773
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by simpilot

  1. Mark, I will have a look at the pagination when I get home tonight and am at my home PC.
  2. Build a class with a sql call something like -> <?php function get_onlineflights() { $query = "SELECT COUNT(*)AS total FROM '.TABLE_PREFIX.'pirepvalues WHERE value = 'Yes'"; return DB::get_row($query); } ?> then in your template call it like this -> $total = mynewdata.class::get_onlineflights(); echo $total->total;
  3. The error is telling you that the template file does not exist or is not in the correct path. If you have uploaded it to the server chances are it is in the wrong place. All the template files for touchdownstats should be in one of two places -> root/core/templates/touchdownstats/"template files" or root/lib/skins/"your skin"/touchdownstats/"template files"
  4. Many of the functions in app>config are also in local.config which is called last. Any function or configuration call that is in local.config will overwrite the same function in app.config. You should be changing things in local.config and also any functions that are not in it that are in app.config can be copied over to the local.config.
  5. Errr, ok. I thought you were having problems with it. Glad to hear you got things working.
  6. If it works and then doesnt and the does again, my guess would be it is the server causing issues, what configuration are you on? (free, shared, vps, dedicated)
  7. Not sure what you have going on, it is hard to tell from your description and just looking at the public portion of your site. running - http://www.syafiq.0adz.com/install/checkdb.php and http://www.syafiq.0adz.com/install/checkinstall.php shows one error on the install side but I do not believe that is your issue. Doesnt really make sense that you can get to the admin panel, which you need to be logged in for, but cant access certain portions of the panel because your not logged in. Did you assign yourself to a group that does not have all the permissions necesarry? Have you tried in a different browser to see if it session related? Clear the sessions table manually using phpmyadmin or similar to see if there is something hung up there. Also clear the cache using the maintenance option.
  8. I think this has gone far enough... Locked.
  9. simpilot

    Obsess Blue

    Think this may help you http://forum.phpvms.net/topic/3340-if-page-is-main/
  10. Works for me, might want to try FRONTPAGE in caps, some servers complain about it. Also to test that the function is there you can do -> <?php echo MainController::$activeModule; ?> That will show you what the controller is that you are on.
  11. Not sure, are the folders all in the right place? It is odd that it goes back to the homepage. Did you change any of the code that determines the permission set for the modules?
  12. In your template you will need to put an if statement to qualify if there is data or not. Maybe something like -> <?php if(!$myvariable) //"if" it is empty { echo 'There are no flights this month'; } else { Display your table } ?>
  13. Not the same...... http://www.westjetvirtual.net/index.php/profile/view/4 to http://www.saavirtual.org/index.php/profile/view/3 Water over the dam now, use it, a new template for WJAv will be released on Aug 9th to coincide with a number of other milestones for WJAv
  14. <?php if(MainController::$activeModule == 'frontpage') { do stuff } ?>
  15. <?php if(MainController::$activeModule == 'yourmodule') { do stuff } ?>
  16. I dont think this will fix the issue of all your form buttons going to a paypal donate link, the core nav file is just your menu, it does not have anything to do with form actions as far as I know... I would look through your tpl files with forms and see what the form action is, if they are correct then start looking in the individual functions within the modules and see what has gotten changed there.
  17. There is nothing to resize the images at this time, it is all done in the template displays. If you want to add something in you would add it into the screenshots.php file in the save_upload function.
  18. idk - but I do not believe it has anything to do with the AIRMail module. I just was meaning if you had used the find and replace function of your ide to replace the buttons and by accident chose replace all. Good Luck.
  19. Every button now goes to the donate link? - sounds like you did a mass replacement and it changed all the code...
  20. I think you mean to forward Mark. As of now it would have to be something in the data class. I would have to hunt around for a method, probably not really something I would build into a new version.
  21. <?php $data = TouchdownstatsData::get_all_stats('7'); ?> In your template would fill the "$data" variable with all the stats for the month of July (7th month) if you change your data class to public function get_all_stats($month) { $query = "SELECT pilotid, code, flightnum, depicao, arricao, aircraft, landingrate, submitdate FROM `".TABLE_PREFIX."pireps` WHERE landingrate < '0' AND MONTH(submitdate) = '$month' ORDER BY landingrate DESC"; return DB::get_results($query); } You really should add the year in as well or you will be pulling all the july data from every year ]<?php $data = TouchdownstatsData::get_all_stats('7', '2010'); ?> public function get_all_stats($month, $year) { $query = "SELECT pilotid, code, flightnum, depicao, arricao, aircraft, landingrate, submitdate FROM `".TABLE_PREFIX."pireps` WHERE landingrate < '0' AND MONTH(submitdate) = '$month' AND YEAR(submitdate) = '$year' ORDER BY landingrate DESC"; return DB::get_results($query); }
  22. Not as it stands now. I can find a workaround for the next version when/if I write it. The module is looking for the location of the aircraft and then finding the next route for it from there, so if you have more than one route from the airfield it will show them all when you got to find the next flight for the aircraft. Probably have to use anbother db table to track each plane and work with departure times or something... Have to think about that one.
  23. Can you also post a link to the site, Thanks.
×
×
  • Create New...