Jump to content

greeham

Members
  • Posts

    25
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

greeham's Achievements

Newbie

Newbie (1/14)

0

Reputation

  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
×
×
  • Create New...