Jump to content

greeham

Members
  • Posts

    25
  • Joined

  • Last visited

Everything posted by greeham

  1. Great stuff, works a treat. I did think it might be something to do with it but missed the action bit before the url. Cheers, Graham
  2. I am hoping someone out there can help me again with another issue. I am using my own skin and have my own Search form and results page and the form works fine but the resulting search doesn't have any formatting, it almost seems as though it isn't adhering to the same rules for the layout file? Is this true, or should the search results conform to the page content like any other template file? Perhaps I need to add the relevant style links directly in the search result file (schedule_results.tpl/php)? Thanks, Graham
  3. Thanks a million, that has solved it. Just need to work out why the formatting of the search results isn't working. Thanks again, Graham
  4. Hi All, I have been through all the posts I can find in relation to receiving a 'No route passed' error when trying to add a bid through the Scheduling search form. I do use a bootstrap template and I have tried the noconflict query and I have also tried removing the jquery reference from the template (which renders part of the template non functional) but the same problem occurs. Any suggestions would be greatly received. Thanks, Graham
  5. Fantastic work, thanks for the help. Greeham
  6. I am just using the standard frontpage_main.tpl file with some scripting:- <?php echo StatsData::PilotCount(); ?> Obviously gives the full count and <?php echo count(PilotGroups::getUsersInGroup('2')); ?> gives me a full list of those in the 'Active' Pilot group, but the numbers are misleading. Many thanks, Greeham
  7. Hello, I am trying top have a stat on the front page showing all pilots that are active. The problem is that retired pilots are also classed as active, giving a misleading figure. In my thinking I need to count the pilots that have a status of not retired but am unsure what query to use? Thanks in advance, Greeham
  8. Hi, It all depends on whether you want to allow any old Tom d*** or Harry to join your VA doesn't it? I agree with you if you are completely open to the public but that's not in our plans right now, just nice to have the option And thanks for the tip simpilot. Cheers, Graham
  9. Hi, I was referring to the 'phpVMS javascript' that Nabeel mentioned (Above), not where the js references need to be placed in the tpl. Thanks, Graham
  10. Hi Nabeel, I can't locate the reference to the this file in the skinning docs.... Thanks, Graham
  11. Hi All, I have searched and I can't seem to find the answer. I would like our Pireps to be automatically approved, rather than an admin having to do it. How can I go about this? Thanks in advance, Graham
  12. Hi Tom, Great stuff, thanks, works a treat, presumably I just use the same technique for the other modules/tpl files? Thanks, Graham
  13. Hi Tom, That's really useful info, thanks again. I wouldn't confess to being a php expert but I do have some knowledge, what changes could I make, module wise, to make it a bit 'cleaner' in the restricting of access? Many thanks again, Graham
  14. Hi Tom, Thanks for that, I just tried that with the roster (pilots_list.tpl), code shown below (just for a test) and it still listed the hubs with the not allowed under each heading, all I really wanted was a message saying not allowed. COuld you add any further pointers? Cheers, Graham <h3><?php echo $title?></h3> <? if(Auth::LoggedIn()){ ?> <?php if(!$allpilots) { echo 'There are no pilots!'; return; } ?> <table id="tabledlist" class="tablesorter"> <thead> <tr> <th>Pilot ID</th> <th>Name</th> <th>Rank</th> <th>Flights</th> <th>Hours</th> </tr> </thead> <tbody> <?php foreach($allpilots as $pilot) { /* To include a custom field, use the following example: <td> <?php echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID'); ?> </td> For instance, if you added a field called "IVAO Callsign": echo PilotData::GetFieldValue($pilot->pilotid, 'IVAO Callsign'); */ // To skip a retired pilot, uncomment the next line: //if($pilot->retired == 1) { continue; } ?> <tr> <td width="1%" nowrap><a href="<?php echo url('/profile/view/'.$pilot->pilotid);?>"> <?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid)?></a> </td> <td> <img src="<?php echo Countries::getCountryImage($pilot->location);?>" alt="<?php echo Countries::getCountryName($pilot->location);?>" /> <?php echo $pilot->firstname.' '.$pilot->lastname?> </td> <td><img src="<?php echo $pilot->rankimage?>" alt="<?php echo $pilot->rank;?>" /></td> <td><?php echo $pilot->totalflights?></td> <td><?php echo Util::AddTime($pilot->totalhours, $pilot->transferhours); ?></td> <?php } ?> </tbody> </table> <? } else { ?> Not allowed <? } ?>
  15. Hi, I have a seperate homepage (As found on these forums, adjusting the Frontpage module) but I now want to restrict access certain pages to only logged in members i.e don't want pilots public profiels or pireps accessible to 'outsiders'. How would I do this? Thanks, Graham
  16. Hi All, I found a few threads with this but tried what was suggested to no avail. <?php ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title><?php echo $page_title; ?></title> <?php echo $page_htmlhead; ?> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="robots" content="all" /> <link rel="stylesheet" href="<?php echo SITE_URL?>/lib/skins/geekia/css/style.css" type="text/css" media="screen" /> <link href="css/style.css" rel="stylesheet" type="text/css" /> <script src="<?php echo SITE_URL?>/lib/skins/geekia/js/jquery.js" type="text/javascript"></script> <script src="<?php echo SITE_URL?>/lib/skins/geekia/js/jquery-1.3.2.min.js" type="text/javascript"></script> <script src="<?php echo SITE_URL?>/lib/skins/geekia/js/slide.js" type="text/javascript"></script> <script src="<?php echo SITE_URL?>/lib/skins/geekia/js/s3Slider.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function() { $('#s3slider').s3Slider({ timeOut: 9000 }); }); </script> </head> <body> <?php echo $page_htmlreq; ?> <!-- Wrapper Starts --> <div id="wrapper"> That's how the code for my layout.tpl starts but it still gives the no route passed error when adding to bid. Any help appreciated. Many thanks, Graham
  17. Has Anyone managed this as I am looking to do this? Thanks, Graham
  18. greeham

    Welcome to our site

    Just remove the html that says the same in the layout.tpl file. since it is hard coded into this file it will show on every page:- Line 350'ish:- <div class="mc0201">Welcome to our site</div> Cheers, Graham
  19. Hi All, I managed to fix it, it was the frontpage_main.tpl that was in the skin directory, it was empty and newsfront was coded directly into the layout.tpl which meant it showed on every page Thanks, Graham
  20. Hi, Anyone tell me how I can stop the Newfront from showing underneath every page you visit in the ObsessBlue skin? The echo page content is there as well as the show newsfront, but if I remove the shownews front, the news doesnt show at all when going to the home page. Thanks in advance, Graham
  21. I don't believe it would, but calling the data takes a while as there are over 6000 table entries to call.
  22. what version of php is the server running?
  23. I actually did put all the Airports in but it only slows down the Administration portion of the site. i.e having to read all the data from the Airports table. In the end just have the ones I want and it's nice and easy...
  24. Create a text file and name it something like htaccess.txt. In it just paste the following:- AddType x-mapp-php5 .php Save it and then upload it to your site (root directory) and once you have done that rename it to .htaccess That's it, try that...
  25. Hi, Try creating an .htaccess file and add the following entry:- AddType x-mapp-php5 .php Then upload to your sites root folder, worked for me to allow PHP5 use on a dual PHP4/5 operated server. Good luck...
×
×
  • Create New...