Jump to content

simpilot

Administrators
  • Posts

    2773
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by simpilot

  1. doh! try changing TopPilot to TouchdownStats........
  2. Mark There are a couple of ways, the easiest may be to put this in your tp_index.tpl page where you want the table to display; <?php MainController::Run('TopPilot', 'top_landing_this_month '); ?>
  3. Do you guys have a different table prefix setup for your data base? If so, change it on the second line phpvms_schedules -to- yourprefix_schedules That error is saying there is no data coming back from the database.
  4. Is there an .htaccess file in the site root? If so try removing it and access the site. I have run into servers that do not have mod_rewrite configured correctly that will present with this same condition.
  5. That looks close, I think you will want to change flight.cfm?id= to pilot.cfm?cid=
  6. You need to make it a text area and then in your template make it a link. That is what I have done.
  7. That would be great Mark Glad the change worked for you.
  8. It will show up between Site Settings and View Your Site in the menu when you have any addon's. If there are none using this code then it will not show up at all.
  9. As the module is built now there is no option for the seperation of hub pilots. Maybe something to look at as a module extension or for a future updated release.
  10. You could replace the table and the php loop with this and it will give you a drop down with a go button; <script type="text/javascript"> function submitForm() { var list = document.navList.subMenu; var page = list.options[ list.selectedIndex ].value; if (page != "home") window.location = page; return false; } </script> <form name="navList" onsubmit="return submitForm();"> <select name="subMenu"> <option value="home">Current Month</option> <?php while ($startyear <= $today[year]): { $month_name = date( 'F', mktime(0, 0, 0, $startmonth) ); echo '<option value="'.url('/TopPilot/get_old_stats?month='.$startmonth.'&year='.$startyear.'').'">'.$month_name.' - '.$startyear.'</option>'; //advance dates if ($startmonth == $today[mon] && $startyear == $today[year]) { break; } if ($startmonth == 12) { $startyear++; $startmonth = 01; } else { $startmonth++; } } endwhile; ?> </select> <input type="submit" value="Go" /> </form> An example is at the bottom of the page here -> http://www.virtualaca.net/index.php/TopPilot
  11. http://forum.phpvms.net/topic/3984-phpvms-schedule/page__view__findpost__p__26845
  12. Your news items can be added, edited, and deleted from the admin panel. The module draws all its information from those news posts.
  13. You can use phpMyAdmin or the command line to change the size limit of the field in your database.
  14. Did you upload the new datbase tables to your MySql database that phpvms is using?
  15. You have an extra set of php tags in the file echo '<td><?php and ?></td>';
  16. simpilot

    ReCaptha

    Comment out lines 34, and 171 thru 182 in Registration.php. Remove all the reCaptcha code from the registration_mainform.tpl file.
  17. Not sure if I am following you fully but there are options in the admin panel to create whatever routes you would like and you can assign them to any aircraft in your fleet.
  18. It is probably the use of mootools in the template, I have had it conflict with jquery before which the route passed error is being generated from. Most, if not all of the functions that mootools is capable of, jquery does as well so there is no real need for both, but you will have to change any code in the templates that is using mootools as a base and convert it to use with jquery.
  19. You will need to add a couple lines in the PopUpNews.php controller after line 40 add; Template::Set('subject', $row->subject); Template::Set('postedby', $row->postedby); then in the popupnews_list.tpl you will have $subject and $postedby available to you. The $posted by will only be the db id # for the poster that you will have to convert to a pilot number in the template.
  20. The title field is limited to 30 characters in the database. If your title is longer than that, anything past the 30 characters is not being saved in the database.
  21. The only thing available right now is here -> http://forum.phpvms.net/topic/1954-pilotshop-releases-tracking/. Don't know if that might help you out.
  22. Had this around for a while so I thought I would post it. Just a simple port that you can build upon. The original license with the requirements for use is included in the folder. The only change that is not included in the skin folder is to change the map dimensions in local.config.php # Google Map Options Config::Set('MAP_WIDTH', '600px'); Config::Set('MAP_HEIGHT', '400px'); Set up using phpVMS ver 934 Original template is here -> http://www.freecsstemplates.org/preview/equivalency/ equivalency.zip
  23. @Tylor Your error is -> open_basedir restriction in effect It is a php setting that you need to have your host change it, but on free hosting they may not do it.
  24. Looking at the module the times are added as if they were tenths. It has been a while since I put this one together, looking at my install that must be why I round all the numbers for display. You will have to do some work to intergrate the native add time function into the module, but that would probably clear up the minutes versus tenths issue.
×
×
  • Create New...