Jump to content

AUZ

Members
  • Posts

    74
  • Joined

  • Last visited

Posts posted by AUZ

  1. Thanks Nabeel,

    I just checked my local.config.php but I don't have an option there for the date format,

    The admin settings has it showing that its formatted correctly.

    The rest of the site is working with the correct date format, its just this module I'm using by simpilot for the popup news items.

    I have managed to change the format in other areas, but this format is different to the above echo '<tr><td>'.date('j/n/Y', strtotime($event->date)).'</td>';

    Is there a way I can add (( echo '<tr><td>'.date('j/n/Y', strtotime($event->date)).'</td>'; )) to ((<?php echo $postdate;?>)) ?

    Sorry for my general lack of php knowledge

    Regards

    Adam

    AUZ

  2. Hello All,

    I have 2 suggestions if I may?

    1. In the Admin area under both Schedules and Airports if we could have a search option?

    I currently have 16 pages of Airports and if I need to edit something then it becomes very time consuming.. :(

    2. Again, in the Admin area, within Schedules, could we please have an AJAX Snippet that will check to ensure that a Flight Number doesn't already exist ?

    After filling out a schedule, then finding that it hasn't saved becuase the Flight Number you wanted to use was already taken by a schedule burried 4 pages down the list... :(

    Also, if that happens, is there a way of returning the result with the option to add a different Flight Number instead of loosing all the information you just entered ?

    Thanks for hearing me out :)

    Regards

    Adam

    AUZ

  3. It takes more effort to log in to the website and download a config then just type in a URL. cool.gif

    Just saying...

    I certainly understand that, but I have already had one member make comment on such a great program, .. but lacks a cfg like the other products listed in phpvms.

    I just asked the question incase I missed a thread explaining its existence.

    Cheers

  4. Hope that helps,

    Jeff

    Hi Jeff,

    Thanks for your answers,

    It was with v1.0.0.6 using phpvms v2.1.934 and it gave me a switch error using Win7 x64bit, apart from that error, the program works flawlessly!

    Will try now with v1.0.0.7 and let you know if it happens again.

    Thanks again and keep up the great work!!

    Cheers

    Adam

    AUZ

  5. First of all, very nice program and congrats to the creator/s

    My questions are,

    1.Is there a way to create a cfg for it so the pilots don't have to manually enter the URL address ?

    2. When I select my A/C and click on the Load button, I get a switch error, is this just me or is it happening to everyone ?

    and lastly;

    3. What does the Charter Flight do exactly ?

    Any answers to my questions would be mostly appreciative.

    Thanks in adavance

    Adam

    AUZ

  6. To get it to work you need to enter the correct php tag at the end of line 8 ;

    <p>

    <?php

    # Don't allow overlapping bids and a bid exists

    if(Config::Get('DISABLE_SCHED_ON_BID') == true && $schedule->bidid != 0)

    {

    ?>

    <a id="<?php echo $schedule->id; ?>" class="addbid"

    href="<?php echo actionurl('/schedules/addbid');?>">Add </a> <?php

    }

    else

    {

    if (Auth::LoggedIn())

    {

    ?>

    <a id="<?php echo $schedule->id; ?>" class="addbid"

    href="<?php echo url('/schedules/addbid');?>">Add to Mission</a>

    <?php

    }

    }

    ?>

    </p>

  7. Hi Adam,

    Thanks for this module, I was hoping to simply add an image to each ICAO location using the country flags but I'm not real good at programming but am trying ... lol

    Here is what I have so far, (Most likely no where near the mark ...)

    Warning: Missing argument 1 for Countries::getCountryImage(), called in C:\xampp\htdocs\adam\auz\phpvms\lib\skins\auz\airport_main.tpl on line 18 and defined in C:\xampp\htdocs\adam\auz\phpvms\core\common\Countries.class.php on line 93

    Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\adam\auz\phpvms\lib\skins\auz\airport_main.tpl on line 19

    <h2>All Airports</h2>

    <table border="0" cellpadding="5" cellspacing="3">

    <thead>

    <tr bgcolor="#E4EEF6">

    <td bgcolor="#E4EEF6"><div align="center"><strong>Country</strong></div></td>

    <td><b>ICAO</b></td>

    <td><b>Airport Name</b></td>

    <td><b>Airport Country</b></td>

    <td><b>Lat</b></td>

    <td><b>Long</b></td>

    </tr>

    </thead>

    <tbody>

    <?php $allairports = OperationsData::GetAllAirports(); ?>

    <?php $countries = Countries::getCountryImage();?>

    <?php foreach ($countries as $country)

    { ?>

    <?php foreach ($allairports as $airport)

    {

    ?>

    <tr>

    <td><div align="center"><img src="<?php echo Countries::getCountryImage($code->icao);?>"

    alt="<?php echo Countries::getCountryName($code->icao);?>" /></div></td>

    <td><?php echo $airport->icao; ?> </td>

    <td><?php echo $airport->name; ?> </td>

    <td><div align="center"><?php echo $airport->country; ?> </div></td>

    <td><?php echo $airport->lat; ?> </td>

    <td><?php echo $airport->lng; ?> </td>

    </tr>

    <?php }

    } ?>

    </tbody>

    </table>

    So would anyone know what the correct code would be to simply add an image to the country ?

    Any suggestions would be mostly appreciated.

    Thanks in advance

    Adam

    AUZ

  8. Can someone please post the code to show which member was the last one to fly the aircraft so it will show up in the table as well? Thanx

    This was exactly what I was about to ask!

    Would be a great addition to a great module!!

    Reasin being ...

    I duplicated then renamed the original fleet table and edited the out put only to display;

    Type

    Rego

    Location - Location

    Now all I need is the last pilot who flew it.

    Then I can promote the Module as "Last Known Whereabouts" giving pilots the incentive to take that aircraft and fly it to where they want to go.

    Any assistance in coding would be mostly appreciative.

    Thanks in advance

    Adam

    AUZ

  9. Thanks for your replies,

    Yes, I can do an iFrame in Joomla, but I cant seem to show only the registered pilots page with out showing the menu that has the other links attached to it.

    Nebeel, are you meaning two seperate skins? I would of been happy with two different working menus, I tried duplicating the nessecary files then nameing them 1 and 2, but that never seemed to work lol

    If I run an iFrame at the present, I show the menu with several other links to carious things including the register or login links, this is what I dont want to show to the public as its required to first register at the Joomla website before being approved to register as a phpvms pilot. The rest of phpvms and the Pilot Center is only visable to members that have registered and logged in.

    Otherwise I have the public registering at the Pilot Center and not registering at the site and as both DB's use different criteria, I can't bridge the two.

    I was hoping if there was a way to copy the required cfg's and roster page to a Joomla Directory that it will work inside and iFrame as a single page, or in a wrapper using a php mod.

    Hope this kinda makes things a little easier to understand.

    Thanks again for you assistance.

    Adam

    AUZ

  10. Dear fellow phpvms users and developers,

    As I already have an established VA and was previously using vAPN as the VA suite, I am now using phpvms and am extremely happy with your product.

    My VA is designed in Joomla CMS with phpvms access via a menu item that is only visble to registered users.

    But I would like to show the Pilot Roster to the public, meaning I need to show the roster on its own for the public to see.

    Is there a way I can use the Pilot Roster page solely as a .php so I can wrap it inside Joomla ?

    The other idea I had was to make a second core_navigation menu and only display the pilots link, but I can't see a way of having two core_navigation menu's.

    Any ideas or suggestions would be greatly appreciative.

    Thanks in advance

    Adam

    AUZ

  11. Sorry but I get the following message when I tried this;

    Parse error: syntax error, unexpected '}' in C:\xampp\htdocs\adam\auz\phpvms\lib\skins\auz\schedule_briefing.tpl on line 19

    I think it has something to do with the last } character as I don't know what it does, but when I remove it the page shows but is missing the Add Bid code.

    Here is my code;

    <h3 align="left">    <p>    <?php echo '<tr><td colspan=2 align="center" style="padding:5px 0px 5px 0px;font-weight:bold"><a href="javascript:history.back()">« back</a></td>';?><p>    

    <?php

    # Don't allow overlapping bids and a bid exists

    if(Config::Get('DISABLE_SCHED_ON_BID') == true && $schedule->bidid != 0)

    {

    ?>

    <a id="<?php echo $schedule->id; ?>" class="addbid"

    href="<?php echo actionurl('/schedules/addbid');?>">Add </a> <?

    }

    else

    {

    if (Auth::LoggedIn())

    {

    ?><a id="<?php echo $schedule->id; ?>" class="addbid"

    href="<?php echo url('/schedules/addbid');?>">Add to Mission</a>

    <?php

    }

    }

    ?>

    </p></h3>

    <h3 align="left">    Flight Briefing<br />

    </h3>

    Could you please confirm that the code is still fuctioninal?

    Thanks in advance

    Adam

×
×
  • Create New...