-
Posts
275 -
Joined
-
Last visited
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by Tylor Eddy
-
G'day All, I have to custom filed in my registration, they are vatsim ID, and Transfer hours I would like to be able to make it so that the vatsim ID field has to be filled otherwise the registration will not proceed. How can i do this, without affecting my transfer hours field ? any help with this would be great, it'd reduce errors by my staff when accepting registrations, by tacking out the fact that they need to manually check to see if the field has been filled. Thanks Guys Tylor
-
anyone able to point out where i have went wrong ?
-
G'day Guys, I would like to display the minimum rank required to fly an aircraft in my fleet table, this will save me creating a rank table. i have attempted to do so with the following code i heaped together, but i can't seem to get it to work, some help getting me on the right track would be great <td><?php if($pilot->minrank == 1) { echo "<img style='padding-left:3px;' src='http://qantasvirtual.com/lib/images/ranks/juniorFO.png'>"; } elseif($pilot->minrank == 2) { echo "<img style='padding-left:3px;' src='http://qantasvirtual.com/lib/images/ranks/SeniorFO.png'>"; } elseif($pilot->minrank == 3) { echo "<img style='padding-left:3px;' src='http://qantasvirtual.com/lib/images/ranks/Junior Captain.png'>"; } elseif($pilot->minrank == 4) { echo "<img style='padding-left:3px;' src='http://qantasvirtual.com/lib/images/ranks/SeniorCaptain.png'>"; } else($pilot->minrank == 5) { echo "<img style='padding-left:3px;' src='http://qantasvirtual.com/lib/images/ranks/ChiefPilot.png'>"; } ?> </td> Also i am having trouble trying to display 'operated by, which is one of the fields in my table, i created a tpl file called operatedby, and added the following code, repeating for my whole fleet. if ($aircraft->registration == 'VH-EBG') #A332 (8 a/c) { $acname = ''; $paaequipment1 = 'RNP10 GPSRNAV'; $paaequipment2 = 'D'; $paawake = 'H'; $paatype = 'A332'; $paapob = '228'; $paaspeed = 'M083'; $paaother = ''; $inforuhf = ''; $inforvhf = ''; $inforelba = ''; $infos = ''; $infosp = ''; $infosd = ''; $infosm = ''; $infosj = ''; $infoj = ''; $infojl = ''; $infojf = ''; $infou = ''; $infov = ''; $infodnumber = ''; $infodcapa = ''; $operatedby = 'Qantas'; $zfw = ''; $costindex = '113'; and in the file i want the 'operated by' info to display, i put <?php include('operatedby.tpl') ?> up the top. and <?php echo $operatedby; ?> where i wanted to call it in my table. Am i doing the right process for what i want to create ? any help would be great, learning this will slowly add to my knowledge of coding My Current layout can be seen here : http://qantasvirtual.com/index.php/fleet
-
I have stretched it now, so it spans the whole way.
-
If you are after a different colour i can get you a different colour too Tylor
-
cheers
-
sure everything you need is in the file attached Fixed My menu, all good, now, thanks for the support guys, very greatly appreciated. new dropdown menu.zip
-
Removed I cant work it out for the life of me, this is my css code for the menu.
-
You were a great help, i worked out it was a piece of javascript that i put into the core_navigation.tpl that upset it all, now i just need to work out why it wont do what its meant to. Thanks very much, very greatly appreciated
-
Ok, i've almost got it
-
Removed
-
If you would like, i can put up the coding, or upload the files to view.
-
Ok i fixed it, now it wont display the complete length of the site, thats a css issue right ?, and also ive lost my images above the bar as well, i'm not sure why that is, i didnt remove anything, just added code.
-
i have this for my menu <!-- Menu Starts --> <div id="menu"> <!-- Menu Items Starts --> <ul class="menu"> <?php Template::Show('core_navigation.tpl'); ?> </ul> <!-- Menu Items Ends --> </div> <!-- Menu Ends --> its almost done, it just wont stretch the whole way across the site, and that footer needs a foot up the a#@ haha thanks for your help so far
-
is the <div> tag missing from core_navigation.tpl, or layout.tpl ? take a look now, i've implemented the changes you recommended
-
Thanks Jeff, I forgot all about getting the code to display the image... apologies for not replying to display my table header image, the red bar i used this code in my style.css file table.other th { background:url(http://www.qantasvirtual.com/lib/skins/brilliancev1/images/headerother.png) no-repeat; height:30px; margin:1px 0 0 0; overflow:hidden; color: white; font-size:11px; } Then in my file i wanted to display it, pilot_list.tpl for example, i set the class to 'other' for my table header. <table id="tabledlist" class="other"> I'll 'watch' the topic so i dont forget again haha
-
Schedule Search (Airline, Aircraft, Arrival, Departure)
Tylor Eddy replied to simpilot's topic in Simpilot Group Addons
That looks unreal stuart, great job Unfortunatley, i get this issue when i attempt to search. This great little module has a bone to pick with my site, everytime i go to use it haha Warning: Invalid argument supplied for foreach() in /home/qantasvi/public_html/lib/skins/brilliancev1/schedule_results.tpl on line 59 -
G'day Guys, I have been trying to get my new drop down menu working for my site, I've spent quite a few hours on this, but am getting nowhere. Some help would be very greatly appreciated, to point my back in the right track menu here: http://qantasvirtual.com/dev/ if you need to take a look at the coding, just let me know and ill chuck it up. I am unsure why the footer has moved to its current position. what i am aiming for is to get the pilot center to display under crew when logged in, and not be there if a user isnt logged in. Cheers
-
Thanks Very much guys, working great now. How do i mark this topic as solved ?, i am unfamiliar with this forum type. Cheers Tylor
-
G'day Guys, Thanks for the support, sorry for the delayed reply, my sites been down ,so i couldnt test this. I just tested in then and i get Hello Tylor 000. I'm not sure what the 000 is , but its nearly there, all im after is the first name, and its got that. It just has some numbers after it. Any idea's ? Thanks for the support While we are on the topic of pilot numbers, is it possible to pull the number and bot the full ID, so just the 000, not the whole QFA000 ?
-
Something Like this would be great, as you wouldnt have the spacing issue, looks really good too
-
G'day Guys, Ive seen alot of interest in the flight board, so i decided to create a background for one, what i hope to achieve is to have the letters display over the top of the image below and use the image as a background. Is this possible ? anyways here is what i created earlier today
-
After trying your code, i recieved this error Parse error: syntax error, unexpected ';' in /home/qantasvi/public_html/lib/skins/brilliancev1/layout.tpl on line 205 I was recieving this earlier, when i attempted to change it too. Cheers
-
G'day All, I'm having some trouble manipulating the code below to get it to display the pilots first name, rather than their ID <?php if(Auth::LoggedIn() == false){ echo 'Hello Guest'; }else{ echo 'Hello '.PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid); } ?> Some help would be great, i've tried a few times, and i just can't get it to work Cheers Tylor
-
Schedule Search (Airline, Aircraft, Arrival, Departure)
Tylor Eddy replied to simpilot's topic in Simpilot Group Addons
Ok my php.ini is empty, apparently i am meant to comment it out, but there is nothing to comment out haha. Actually it isnt completely empty, i have timezone configuraition info in there. So how can i go about disabling this feature ? Regards