Jump to content

mynameiskhan

Members
  • Posts

    66
  • Joined

  • Last visited

Everything posted by mynameiskhan

  1. Thank simpilot for such a great add on +1 for you........ every thing is working fine with me.
  2. if we want to delete any screenshot what we have to do cant understand that......? one more question this screeshot system is not accepting PNG files how we can change that so it will accept PNGS also?
  3. well TOM when i opened File in Code Editor it is showing on Line 87 } ?> what to do now........?
  4. Tom Sorry but this is also not working again Error Parse error: syntax error, unexpected $end in /home/ahmad/public_html/scripts/menu/m_item_pilot.php on line 87 yes i am not using PHPVMS its a different site based on direct php coding. sorry. Regards
  5. well when iam putting this code <?php /* Quick example of how to see if they're logged in or not Only show this login form if they're logged in */ if(Auth::LoggedIn() == false) { ?> it gives this error and like this i am putting the code <?php /* Quick example of how to see if they're logged in or not Only show this login form if they're logged in */ if(Auth::LoggedIn() == false) <div class="urbangreymenu"> <h3 class="headerbar">Pilot Center</h3> <ul <li><a href='ATR42.php'><b>ATR42 Schedules</a></li></b> <li><a href='skedatr.php'><b>ATR42F Schedules</a></li></b> <li><a href='b737.php'><b>B737 Schedules</a></li></b> <li><a href='a310.php'><b>A310 Schedules</a></li></b> <li><a href='b767.php'><b>A300 Schedules</a></li></b> <li><a href='b777.php'><b>B777 Schedules</a></li></b> <li><a href='b747.php'><b>B747 Schedules</a></li></b> <li><a href='logbook.php'><b>My logbook</a></li></b> <li><a href='download.php'><b>Download Section</a></li></b> <li><a href='help.php'><b>Pilot's Manual</a></li></b> <li><a href='rankings.php'><b>Rankings</a></li></b> <li><a href='pilotroster.php'><b>Pilot hours</a></li></b> <li><a href='flights.php?map=karachi' target='_blank'><b>Flight Movements</a></li></b> </ul> </div> { ?> i really don't know how to put with in TAGS can you explain me with full code please and let me explain you how i am using my menu now in my server i have one folder name Menu and inside it i have many PHPS files for different Menu section to show up with main.php and in other pages if i wnt to show my menu with the page i am putting php code on the top of the page like this <? include("menu/m_item_general.php") ?> i hope now you guys understand the process.......... Regards
  6. Guys thank you so much for replying now the thing is Tom i am not using that Print Commands i have changed my menu that was old one what i am trying to ask you guys is this is my new menu code <div class="urbangreymenu"> <h3 class="headerbar">Pilot Center</h3> <ul <li><a href='ATR42.php'><b>ATR42 Schedules</a></li></b> <li><a href='skedatr.php'><b>ATR42F Schedules</a></li></b> <li><a href='b737.php'><b>B737 Schedules</a></li></b> <li><a href='a310.php'><b>A310 Schedules</a></li></b> <li><a href='b767.php'><b>A300 Schedules</a></li></b> <li><a href='b777.php'><b>B777 Schedules</a></li></b> <li><a href='b747.php'><b>B747 Schedules</a></li></b> <li><a href='logbook.php'><b>My logbook</a></li></b> <li><a href='download.php'><b>Download Section</a></li></b> <li><a href='help.php'><b>Pilot's Manual</a></li></b> <li><a href='rankings.php'><b>Rankings</a></li></b> <li><a href='pilotroster.php'><b>Pilot hours</a></li></b> <li><a href='flights.php?map=karachi' target='_blank'><b>Flight Movements</a></li></b> </ul> </div> now juts tell me how i can hide only this pilot center menu and pilots can only see this menu after login example would be gr8 for me waiting for your reply asap. Regards
  7. thank you so much simpilot it worked for me now.......... can you please help me in this case PHP Code Needed
  8. Dear all hi i need help please guide me through this. ok now the question is i have changed my virtual airline side menu last night and have installed some good menu here is the code <? print "</tr>"; print "<tr>"; print "<td width='190' height='100%' bgcolor='#B7CEC7' valign='top' style='border-right: 1px solid #004800'><br>"; ?> <?php if ($logged=="yes"){ print "<a href='logoff.php'><b>Logoff</b></a>"; } else{ print "<a href='logon.php'><b>Logon</b></a>"; } ?> <div class="urbangreymenu"> <h3 class="headerbar">VPIA </h3> <ul> <br> <img src="http://www.aircanadavirtual.com/images/simmiles.png" /> <img src="http://www.vpia.org/images/vatsim.png" /> <br> <br> <li><a href="http://www.simmiles.com/asiava/PIA/pilots.php">Simmiles Online Pilots</a></li> <li><a href="http://www.simmiles.com/asiava/PIA/routes.php">Simmiles Online Routes</a></li> <li><a href="http://www.simmiles.com/asiava/PIA/fleet.php">Simmiles Online Fleet</a></li> <li><a href='about.php'>About us</a></li> <li><a href='faq.php'>FAQ</a></li> <li><a href='staff.php'>Staff</a></li> <li><a href='photogallery.php'>Photo Gallery</a></li> <li><a href='contact.php'>Contact</a></li> <li><a href='disclaimer.php'>Disclaimer</a></li> </ul> </div> now the thing is previously it was coded with some other coding in php and every thing is working properly now when i changed the side menu i dont know how to use php code with this menu basically i wanted to hide my pilot center from visitors and pilot i want pilot can only see pilot center after login with pilot IDS so i can i do that please help me out of this here is my old menu code <? print "</tr>"; print "<tr>"; print "<td width='190' height='100%' bgcolor='#B7CEC7' valign='top' style='border-right: 1px solid #004800'><br>"; print "<table width='100' valign='top' border='0' cellpadding='5' cellspacing='0'>"; print "<tr>"; print "<td>"; if ($logged=="yes"){ print "<a href='logoff.php'><b>Logoff</b></a>"; } else{ print "<a href='logon.php'><b>Logon</b></a>"; } print "</td>"; print "<td></tr>"; print "<table width='100%' valign='top' border='0' cellpadding='5' cellspacing='0'>"; print "<tr>"; print "<td width='7%' height='26' background='../images/menu_bg.gif'>"; print "<center><img src='../images/menu_arrow.gif'></center>"; print "</td>"; print "<td width='93%' height='26' background='../images/menu_bg.gif' class='menu'>"; print "VPIA <a href='main.php'><image src='/images/home.gif' border=0></a>"; print "</td>"; print "</tr>"; print "<tr>"; print "<td height='66' colspan='2'>"; print "<p>"; print "<a href='http://www.facebook.com/group.php?gid=4083514203'><image src='http://www.vpia.org/images/fcbk.jpg' border=0></a><br>"; print "<a href='skype:virtualpia?call'><img src='/images/skype1.jpg' style='border: none;' alt='Skype Me™!'/></a><br>"; print "<a href='http://www.twitter.com/VirtualPIA'><img src='http://twitter-badges.s3.amazonaws.com/follow_us-a.png' alt='Follow VirtualPIA on Twitter' width='150' height='25'</a><br>"; ?> <br> <img src="http://www.aircanadavirtual.com/images/simmiles.png" /> <img src="http://www.vpia.org/images/vatsim.png" /> <br><a href="http://www.simmiles.com/asiava/PIA/statistics.php"></a> <br><a href="http://www.simmiles.com/asiava/PIA/pilots.php">Online Pilots</a> <br><a href="http://www.simmiles.com/asiava/PIA/routes.php">Online Routes</a> <br><a href="http://www.simmiles.com/asiava/PIA/fleet.php">Online Fleet</a> <br> <? print "<a href='about.php'>About us</a> / <a href='faq.php'>FAQ</a><br>"; print "<a href='staff.php'>Staff</a><br>"; print "<a href='photogallery.php'>Photo Gallery</a><br>"; print "<a href='contact.php'>Contact</a><br>"; //print "<a href='http://vpia.free-forums.org' target='blanc'>Forum</a><br>"; print "<a href='disclaimer.php'>Disclaimer</a><br>"; //print "<a href='events.php'>Events</a><br>"; //print "<a href='news.php'>News</a><br>"; //print "<a href='links.php'>Links</a><br><br>"; if ($logged<>"yes"){ print "<a href='registration.php'><b>JOIN VPIA</b></a><br>"; } print "</td>"; print "</tr>"; print "</table>"; ?> hope someone can help me soon. regards
  9. hi i have problem adding new event on my site www.vpia.org/virtualairblue/ i am trying to add events from admin panel after adding event it was showing nothing to me on events page and also in admin panel i tried it many times but no luck could any body assist me please on this....... Regards
  10. Dear All today i visited my website and it was not showing me my website some errors are coming i have checked all the files are there in cpanel but dont understand why its is saying header.tpl doesnt exists.......... Please help here is my website so you guys can check http://www.vpia.org/virtualairblue/index.php
  11. can some body help me plz i am getting this error when try to login to AIRmail page. Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'Mail::inbox' was given in /home/ahmad/public_html/virtualairblue/core/classes/MainController.class.php on line 218 waiting for some good help and one more question where exactly we have to put mailimages folder............. regards irfan khan http://www.vpia.org/virtualairblue/index.php
  12. code worked for me guys many many thanks from my side.
  13. thank you so much guys i will try it and come back with the result. just wanted to be sure can you tell me nabeel what are the exact phases of FSACARS or can you tell me from which file can i get phasedetails.
  14. ok Nabell i will try to solve it but only last thing please tell me i have to put all the phase details in one line or one by one in next lines examples <td><% if(flight.phasedetail== 'Boarding'){%><img src="<?php echo SITE_URL; ?>/lib/skins/ObsessBlue/image/boarding.gif" /><%}%></td><td><% if(flight.phasedetail == 'Takeoff') { %> <img src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/boarding.gif" /> <% } %></td><td><% if(flight.phasedetail == 'Climbing') { %> <img src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/boarding.gif" /> <% } %></td> OR <script type="text/html" id="acars_map_row"> <tr class="<%=flight.class%>"> <td><a href="<?php echo url('/profile/view');?>/<%=flight.pilotid%>"><%=flight.pilotid%> - <%=flight.pilotname%></a></td> <td><%=flight.flightnum%></td> <td><%=flight.depicao%></td> <td><%=flight.arricao%></td> <td><% if(flight.phasedetail == 'Takeoff') { %> <img src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/boarding.gif" /> <% } %></td> <td><% if(flight.phasedetail == 'Climbing') { %> <img src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/boarding.gif" /> <% } %></td> <td><% if(flight.phasedetail == 'Crusing') { %> <img src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/boarding.gif" /> <% } %></td> <td><%=flight.alt%></td> <td><%=flight.gs%></td> <td><%=flight.distremaining%> <?php echo Config::Get('UNITS');?> / <%=flight.timeremaining%></td> </tr> </script> thanks
  15. now i have 80% success before it was not showing me any thing in My link but now in examples it was showing me my recent posts but it was not showing me in main page of my website dont know why code: <div class="mc01t2"> Recent posts </div> <div class="mc01cc"> <ul> <?php ssi_recentTopics($num_recent = 8, $exclude_boards = null, $include_boards = null, $output_method = 'echo'); ?> </ul> </div>
  16. nabeel i did what ever mentioned in EXAMPLES actually i am not understanding how to give flile path in php code i did what i understood have a look on the code maybe you will understand where i did mistake. Snipped irfan
  17. can any one please please please please please please please please HELP ?????????????? i need the code please explain with the code. thanks in advance
  18. nabeel i didnt find any example in forum help plz?
  19. sim pilot thanks you your reply i have checked out examples but cannot figured out how it will work on my main page if you can tell me it will be gr8 then for me here is my code header.tpl file Cut the code out if you want to paste code, please use pastebin if you can tell me where i have to do changings to work this addon. thanks
  20. Hi guys i have installed simple machine forums on my virtual airline now i wanted to add recent posts on my main virtual airline page or left menu how i can do that?
  21. Thank you very much mark i really appreciate your help code worked for me WOW phpvms have genius people. mark i need your help in this thread also please please if you can. My link
  22. Nabeel i uploaded the gif files but its now showing any thing there no gif image in avtive or inactive BAR code <td><div align="center"><?php If ($pilot->retired == 0) { echo '<img src="/images/green-status.gif" />'; } else { echo '<img src="/images/red-status.gif" />'; } ?></div></td></div></td> <?php dev which skin r u using try to copy paste upper code in your pilots_list.tpl file i did the same it worked for me i am using ObsessBlue skin.
×
×
  • Create New...