Jump to content

Jeff

Members
  • Posts

    1307
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Jeff

  1. Well...without you posting any information of what LINE 21 is then maybe you can check your code against mine to see what your problem may be. <?php if(Auth::LoggedIn() == false) { echo 'You must be logged in to view this page!'; return; } ?> <?php //simpilotgroup addon module for phpVMS virtual airline system // //simpilotgroup addon modules are licenced under the following license: //Creative Commons Attribution Non-commercial Share Alike (by-nc-sa) //To view full license text visit http://creativecommons.org/licenses/by-nc-sa/3.0/ // //@author David Clark (simpilot) //@copyright Copyright (c) 2009-2010, David Clark //@license http://creativecommons.org/licenses/by-nc-sa/3.0/ ?> <table width="100%" border="1" bgcolor="#042233"> <tr> <td align = "center"><b><font color="#CCCCCC">Pilot</b></td> <td align = "center"><b><font color="#CCCCCC">Aircraft</b></td> <td align = "center"><b><font color="#CCCCCC">Arrival Field</b></td> <td align = "center"><b><font color="#CCCCCC">Landing Rate</b></td> <td align = "center"><b><font color="#CCCCCC">Date Posted</b></td> </tr> <?php foreach($stats as $stat) { $pilot = PilotData::getPilotData($stat->pilotid); $aircraft = OperationsData::getAircraftInfo($stat->aircraft); echo '<tr>'; echo '<td align = "center"><font color="#CCCCCC">'.PilotData::getPilotCode($pilot->code, $pilot->pilotid).' - '.$pilot->firstname.' '.$pilot->lastname.'</td>'; echo '<td align = "center"><font color="#CCCCCC">'.$aircraft->fullname.'</td>'; echo '<td align = "center"><font color="#CCCCCC">'.$stat->arricao.'</td>'; echo '<td align = "center"><font color="#CCCCCC">'.$stat->landingrate.'</td>'; echo '<td align = "center"><font color="#CCCCCC">'.date(DATE_FORMAT, strtotime($stat->submitdate)).'</td>'; echo '</tr>'; } ?> </table> You do not need to have this code in there. I just use it for members eyes only. <?php if(Auth::LoggedIn() == false) { echo 'You must be logged in to view this page!'; return; } ?>
  2. This will show the news on any page you place this code. If you want to show more or less than 5 at a time, just change the number to any one you want. <?php // Show the News module, call the function ShowNewsFront // This is in the modules/Frontpage folder MainController::Run('News', 'ShowNewsFront', 5); ?>
  3. <strong>Active Pilots: </strong><?php echo StatsData::PilotCount(); ?><br /> That's the way I have it. I'm not sure why it isn't working for you.
  4. Just edit the code with the little mailbox, and change your text to what you want.
  5. do a search for "RECENT BIDS" on these forums. You will be surprised what you can find by searching
  6. Can I ask you to post what you have in the Modules one, I added all of mine to /pages but I need to pull some information for it, but you can't use .php in the /pages.tpl
  7. http://www.virtualflightzone.net/index.php
  8. Can you point me in the right direction, I am not quite sure how to do that.?
  9. Okay, I'm stumped, I can't figure this one out. If anyone can give me a hand here, I would deeply appreciate it.
  10. Jeff

    Airlines Stats

    Kyle, do you have one for Total Airlines?
  11. Jeff

    ObsessBlue 2.0

    Maybe try to upload all the files again, maybe there are some corrupt ones that need to be replaced.
  12. Jeff

    ObsessBlue 2.0

    There is no header.tpl in ObsessBlue.
  13. Jeff

    ObsessBlue 2.0

    By getting a paid host. Free websites aren't very compatible with phpVMS. Sorry dude, but that's just the way it is.
  14. Ah, yea, I see what you mean. As I will be shortly giving FsPax the boot and getting my hands on Kobus' Personalized ACARS program for the only way to submit their flights (and I don't accept manual pireps), I can say that maybe there could be a slim chance that this can still be done. If not, well... couldn't say we didn't try.
  15. Great idea Ray (as yours usually are ) especially for those who restrict specific aircraft for the rank the pilot is. It would also save a ton of work for us to do as well.
  16. It's located in the SITE & SETTINGS > MAINTENANCE section of your Admin page.
  17. I just checked my folder, and I believe it is: /forums/install/install_install.php Double check your folder to see if it is the same as this one. Your path may be different, but it shouldn't be. Sorry for the confusion
  18. With Google as my guide, I was able to come across a website that explained how it is done. First off, you need to have an image you want to use and upload it to any folder. Second, you just need to use the code to pull the image and have it repeat the pattern for use with the table. Here is the code I use to pull it: <table align="center" border="0" width="100%"> <thead> <tr> <th background='images/tables/tablebg.png'> <font face='Verdana' size='2' color="#FFFFFF">Your Text Goes Here</font></th></tr> </thead> </table> To explain how It works: <th background='images/tables/tablebg.png'> 1) This code is how it finds your image. I placed it in the following directory: www.mysite.com/images/tables/ <font face='Verdana' size='2' color="#FFFFFF"> 2) This is what is used for the font type, size and color used for the text you want to show on the table image. 3) As an example of the code in use, I will use the Recent Flight Report that most of you use under the recent flights map for Great Circle Map. <table align="center" border="0" width="100%"> <thead> <tr> <th background='images/tables/tableheadingbg.png'> <font face='Verdana' size='2' color="#FFFFFF">Last 10 Flights</font></th></tr> </thead> </table> <?php $count = 10; $pireps = PIREPData::getRecentReportsByCount($count); ?> <table align="center" border="0" width="100%"> <thead> <tr> <th align="center" background='images/tables/tablebg.png'> <font face='Verdana' size='2' color="#FFFFFF">Airline</font></th> <th align="center" background='images/tables/tablebg.png'> <font face='Verdana' size='2' color="#FFFFFF">Flight #</font></th> <th align="center" background='images/tables/tablebg.png'> <font face='Verdana' size='2' color="#FFFFFF">Departure</font></th> <th align="center" background='images/tables/tablebg.png'> <font face='Verdana' size='2' color="#FFFFFF">Arrival</font></th> <th align="center" background='images/tables/tablebg.png'> <font face='Verdana' size='2' color="#FFFFFF">Pilot</font></th> <th align="center" background='images/tables/tablebg.png'> <font face='Verdana' size='2' color="#FFFFFF">Landing Rate</font></th> <th align="center" background='images/tables/tablebg.png'> <font face='Verdana' size='2' color="#FFFFFF">Aircraft</font></th> </tr> </thead> <tbody> <?php if(count($pireps) > 0) { foreach ($pireps as $pirep) { $pilotinfo = PilotData::getPilotData($pirep->pilotid); $pilotid = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid); echo "<tr>"; echo '<td align=center width=120px bgcolor=#000000><a href="'.fileurl('/index.php/pages/'.$pirep->code.'').'"><img src="'.fileurl('/images/airline/'.$pirep->code.'.gif').'" alt="'.$airline->name.'" /></a></td>'; echo "<td align=center background='images/tables/board.png'> <font face=Verdana size=2 color=#E8D33D> $pirep->code-$pirep->flightnum </font></td>"; echo "<td align=center background='images/tables/board.png'> <font face=Verdana size=2 color=#E8D33D> $pirep->depicao </font></td>"; echo "<td align=center background='images/tables/board.png'> <font face=Verdana size=2 color=#E8D33D> $pirep->arricao </font></td>"; echo "<td align=center background='images/tables/board.png'> <font face=Verdana size=2 color=#E8D33D> $pilotid $pilotinfo->firstname $pilotinfo->lastname </font></td>"; echo "<td align=center background='images/tables/board.png'> <font face=Verdana size=2 color=#E8D33D> $pirep->landingrate </font></td>"; echo "<td align=center background='images/tables/board.png'> <font face=Verdana size=2 color=#E8D33D> $pirep->aircraft </font></td>"; echo "</tr>"; } } else { echo "<tr><td>There are no recent flights!</td></tr>"; } ?> </tbody> </table> 4) As you can see, I used 2 different images for the table, but I used the same code (with a different image name) to pull the second image. 5) Of course, your images will vary from mine, so the text colors will need to be changed to suit your needs. 6) The image below will show you the outcome of the above code.
  19. When you download the forums from the site, it comes all zipped up. unzip it and you will see the folder on your desktop. That is the one you rename.
  20. Looking at your PAGE SOURCE, I see this: <li><li><a href="http://sflogistik.dhl-aircargo.de/index.php/Frontpage"><img src="http://sflogistik.dhl-aircargo.de/lib/skins/ObsessBlue/images/Home.png" alt="" /></a></li> There is an extra <li> at the beginning of the link. Also, you can try to code it this way for the Home link: <tr> <td><p><a href="http://sflogistik.dhl-aircargo.de/index.php/Frontpage"><img src="http://sflogistik.dhl-aircargo.de/lib/skins/ObsessBlue/images/Home.png" alt="" /></a></p></td> <td><p><img src="http://sflogistik.dhl-aircargo.de/lib/skins/ObsessBlue/images/blank.png" alt="" /></p></td> </tr> <tr> <td>Home</td> <td></td> </tr> That way it will show a transparent image and you should be all lined up.
  21. 2 problems. First, you shouldn't need to place them inside the <p></p>. Second, you have <a href=""> but you aren't closing it with the </a> Here's the first one, you can change the rest. You have: Change it to:
  22. Yep, I use phpBB forums. To install, rename the file forums, and upload it to your /public_html folder (no need to go into any folder inside /public_html, just place it in there) Once you have it uploaded, you can install it by typing in your forum install link (www.yoursite.com/forums/install/install.php)
×
×
  • Create New...