Jump to content

greeham

Members
  • Posts

    25
  • Joined

  • Last visited

Posts posted by greeham

  1. 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

  2. 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

  3. 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

  4. 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

  5. The whole point of having an admin approve it is to verify that it is legit. Having it automatically approved will make it real easy to submit fake pireps.

    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

  6. 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

  7. 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
    
    <? } ?>
    

  8. 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

  9. 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

  10. 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

  11. 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...

×
×
  • Create New...