Jump to content

simpilot

Administrators
  • Posts

    2773
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by simpilot

  1. I will look this weekend, forgot about it honestly....
  2. You can delete the exams from the adminpanel. When you delete an exam it will orphan the questions assigned to it and they will show up in the list as unassigned, but you can delete the individual questions as well. To change to only 3 answers you would have to modify every tpl file that has anything to do with questions and answers, modify both the exams and exams_admin controllers, and also the examsData.class.php file. Look around through all those and change everything from sets of 4 to sets of 3.
  3. With smf isn't it easier to just use the built in features of ssi.php that is already installed with the board? Here is the one from the westjetvirtual board, http://www.westjetvirtual.net/forum/ssi_examples.php if you have smf installed you should be able to get to it by - path to your forum/ssi_examples.php
  4. Check the database and see if it is active "1", clear the cache again as you did for phpvms and also clear your browser cache/temp files.
  5. To change the skin from the admin panel you need to go to - admin/general settings - not admin/template diff - On that page you will find a drop down for the choice of skins that are available in your skin folder. Choose the one you want and save the setting using the save button at the bottom.
  6. What errors is firefox - firebug spitting out?
  7. Try another browser, i have had trouble in the past with these pages and certain browsers.
  8. If you are trying to lose the phpvms layout and have a different layout for your pilot module but still use data from phpvms and the functions built in to it, there are two ways you can do it. 1 - action.php instead of index.php will bypass the template structure and you can direct the function to bring up a template that has only what you want in it. 2 - create your own pages and load the codon structure at the start to make all the functions available in your stand alone page -> <?php include_once'path to /codon.config.php'; ?>
  9. The system automatically already updates the pilots table with the newest login date and ip address.
  10. simpilot

    Reset VA

    Create a clean database then import your pilot list, airports, and schedules would probably be the easiest way.
  11. The two have nothing to do with each other, my guess is you erased, or added, somthing to the config file that is causing the issue.
  12. Did you do a print_r? what was output?
  13. I would dig back through the thread, I think there are some fixes along the way. The developer has abandoned the project I believe, he has not been around since April.
  14. Try a <?php print_r($total); ?> after the data call and see what it pukes out. if it empty something in the db call is not correct, I use the screenshot in the first post to write the call, so if something in your db is different than that it will not work.
  15. I built one for smf 1.1.11 here ->http://forum.phpvms.net/topic/2916-smfregister-10/ - you can take that and adapt the basic idea to your Wolf Board.
  16. From the looks of the url you have dropped some part of the code off, probably part of the php opening tag, it should not be echoing out "url" and all the % signs are open spaces in your url. Take a good look at that.
  17. Create a file called vatsimflightsData.class.php in your core/common folder and put this in it -> <?php class vatsimflightsData extends CodonData { function get_onlineflights() { $query = "SELECT COUNT(*)AS total FROM '.TABLE_PREFIX.'pirepvalues WHERE value = 'Yes'"; return DB::get_row($query); } } ?> Then in a template do -> <?php $total = vatsimflightsData::get_onlineflights(); ?> <strong>Total Flights Flown On Vatsim: </strong><?php echo $total->total; ?><br>
  18. You need to create a new class or include it in an existing one, but if you include it in an existing one it will be overwritten in an update of the system. Then when you call it from our module or template (module preferably) you change the mynewdata.class with whatever you name you class.
  19. Try -> PIREPData::getLastReports($userinfo->pilotid, '10') Change the 10 to how many you want returned.
  20. Wouldn't it be easier to just skin the board the same as your phpVMS install and link to each other? That is what I believe most everyone, myself included, has done with the various forum boards out there.
  21. <?php $total = mynewdata::get_onlineflights(); ?> <strong>Total Flights Flown On Vatsim: </strong><?php echo $total->total; ?><br>
  22. Do you mean an Exam Admin? For that you would use the "add/remove administrators" link from the main exam center management panel, then just click on the pilot you want to change and set them to staff or admin.
  23. Mark, I will have a look at the pagination when I get home tonight and am at my home PC.
  24. 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;
  25. 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"
×
×
  • Create New...