-
Posts
1307 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by Jeff
-
I used this to get it working: <?php # Don't allow overlapping bids and a bid exists if(Config::Get('DISABLE_SCHED_ON_BID') == true && $route->bidid != 0) { ?> <a id="<?php echo $schedule->id; ?>" class="addbid" href="<?php echo actionurl('/schedules/addbid');?>"><img src="http://www.mysite.net/lib/skins/cityportal/images/purchase2.png" srcover="http://www.mysite.net/lib/skins/cityportal/images/purchase2.png" srcdown="http://www.mysite.net/lib/skins/cityportal/images/purchase2.png" alt="Bid Flight" /></a> <?php } else { if(Auth::LoggedIn()) { ?> <a id="<?php echo $schedule->id; ?>" class="addbid" href="<?php echo url('/schedules/addbid');?>"><img src="http://www.mysite.net/lib/skins/cityportal/images/purchase2.png" srcover="http://www.mysite.net/lib/skins/cityportal/images/purchase2.png" srcdown="http://www.mysite.net/lib/skins/cityportal/images/purchase2.png" alt="Bid Flight"/></a><br /> <?php } } ?>
-
Now I need to show the aircraft name in the search form. Here is the code I am using, but nothing shows except "ALL" <?php foreach ($aircrafts as $aircraft) {echo '<option value="'.$aircraft->name.'">'.$aircraft->name.'</option>';} ?>
-
Is it possible to bid on a flight from the schedule_details.tpl page? I am trying to use this code to bid on the flight, but it does not do anything when clicked on. <?php # Don't allow overlapping bids and a bid exists if(Config::Get('DISABLE_SCHED_ON_BID') == true && $route->bidid != 0) { ?> <a id="<?php echo $route->id; ?>" class="addbid" href="<?php echo actionurl('/schedules/addbid');?>"><img src="http://www.mysite.net/lib/skins/cityportal/images/purchase2.png" srcover="http://www.mysite.net/lib/skins/cityportal/images/purchase2.png" srcdown="http://www.mysite.net/lib/skins/cityportal/images/purchase2.png" alt="Bid Flight" /></a> <?php } else { if(Auth::LoggedIn()) { ?> <a id="<?php echo $route->id; ?>" class="addbid" href="<?php echo url('/schedules/addbid');?>"><img src="http://www.mysite.net/lib/skins/cityportal/images/purchase2.png" srcover="http://www.mysite.net/lib/skins/cityportal/images/purchase2.png" srcdown="http://www.mysite.net/lib/skins/cityportal/images/purchase2.png" alt="Bid Flight"/></a><br /> <?php } } ?>
-
You should be able to direct link to the image with this Roger. www.yoursite.com/lib/signatures/background/background.png
-
Yeah, change the 5.10 to 0.72 and you should start having a better result in your income (as long as you are charging enough for your tickets). You don't need to edit any of your airports.
-
<table align="center" border="0" width="100%"> <thead> <tr> <th background='images/tables/tableheading.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 border="0"> <th align="center" background='images/tables/tableheading.png'>Â <font face='Verdana' size='2' color="#FFFFFF">Pilot</font></th> <th align="center" background='images/tables/tableheading.png'>Â <font face='Verdana' size='2' color="#FFFFFF">Airline</font></th> <th align="center" background='images/tables/tableheading.png'>Â <font face='Verdana' size='2' color="#FFFFFF">Flight #</font></th> <th align="center" background='images/tables/tableheading.png'>Â <font face='Verdana' size='2' color="#FFFFFF">Origin</font></th> <th align="center" background='images/tables/tableheading.png'>Â <font face='Verdana' size='2' color="#FFFFFF">Arrival</font></th> <th align="center" background='images/tables/tableheading.png'>Â <font face='Verdana' size='2' color="#FFFFFF">Landing Rate</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 background='images/tables/board.png'>Â <font face=Verdana size=2 color=#E8D33D> $pirep->firstname $pirep->lastname </font></td>"; echo '<td align=center width=120px bgcolor=#000000><a href="'.fileurl('/index.php/pireps/viewreport/'.$pirep->pirepid.'').'"><img src="'.fileurl('/images/airline/'.$pirep->code.'.gif').'" alt="'.$airline->name.'" width="127px" height="32px" /></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->depname </font></td>"; echo "<td align=center background='images/tables/board.png'>Â <font face=Verdana size=2 color=#E8D33D> $pirep->arrname </font></td>"; echo "<td align=center background='images/tables/board.png'>Â <font face=Verdana size=2 color=#E8D33D> $pirep->landingrate ft/min</font></td>"; echo "</tr>"; } } else { echo "<tr><td>There are no recent flights!</td></tr>"; } ?> </tbody> </table> images.zip
-
After a couple of days deep scanning these forums, I was finally able to find the code I was looking for. Thanks go out to Ian for posting this code in a post dated 14 May 2011 on this page: http://forum.phpvms.net/topic/5157-how-to-use-gc-map-insetad-of-google-maps/ <img src="http://www.gcmap.com/map?P=<?php echo $schedule->depicao ?>-<?php echo $schedule->arricao ?>&MS=wls&MR=15&MX=720x360&PM=*" /> Now I need to find out where I need to go in order to remove the Google map. I couldn't find it in Modules... Found what I was looking for.
-
Can you supply a link to your site, and I might be able to see if you have enough room to place one there. If you do, I can create one for you.
-
I am wanting to get rid of the GOOGLE map that shows up on the flight schedule view page. I want to replace it with the Great Circle Map one. What is the correct code to show the flights' route on GCM instead of GOOGLE? I think that I will need to change the MODULE to be able to remove the GOOGLE map itself, but what code do you place in the public_html/core/templates/schedule_details.tpl?
-
[SOLVED] How to add the pilots money to the pilot list
Jeff replied to Gotcha_Buccs's topic in Support Forum
If I'm not mistaken, you should be able to get that info by using this code: <?php echo FinanceData::FormatMoney($userinfo->totalpay) ?> -
You already have one: http://airindiavirtual.com/index.php/FrontBids Is there something else you are asking, or did I not read it correctly?
-
I had to do a lot of configuring to see how much the amount of the fuel price should be in order to come out with a fair result of income and expense. I use the real price amount for every flight I have that the real airline charges per ticket. The amount I have set in the config file is 0.99 (this is in USD) If you want it in Euro, it is 0.72 Once you have a few flights submitted after you change the fuel price, you can then come up with what expenses you want, then come up with a price you want to charge per expense.
-
Not sure how exactly that can be accomplished. What you can do is enter your frontpage_main.tpl and add some coding in there manually to have it show. I don't know what your template is, or what the news module looks like since there is no link to your website. But you can try something along these lines.... <h2><span></span>Newest Pages</h2> <div class="body"> <a href="http://www.mywebsitename.com/index.php/pages/tours">Tours</a><br /> <a href="http://www.mywebsitename.com/index.php/pages/videos">Videos</a><br /> </div> <div class="box_bottom"><span></span></div> </div>
-
There are several websites that have some pretty cool menus that you can use for your site's needs. Try this one or try Google for some more.
-
Craig, try this: http://forum.phpvms.net/topic/6218-page-issues-please-help/
-
Okay! Let's start with the page links. When you create a page from the Admin Center, you will notice that there are two (2) boxes on the bottom of the edit/create page. One says "Public" and the other says "Enabled". These two boxes determine who sees the links in the navigation menu. I have another post in here somewhere that describes their functions, but don't remember where, so I will explain what they do. Public: This means that the page link will show in the navigation menu whether or not you are a member of your Virtual Airline. If you take the check out of the box, the link will only show if you are logged in. Enabled: This means that the page link will show in the navigation menu to your members only. If you prefer to not have the link show in the navigation menu at all, then you will remove the check from the box**. **Removing the check from the box does not disable the page what-so-ever, it just determines whether or not you prefer to have it show in the navigation menu. Whenever I create a page, I leave both boxes empty, and direct link to the page from the Profile Center (profile_main.tpl). Now let's take care of your second question. I hope I understand you correctly. If you are wanting to display the link on another page or multiple pages, there are two (2) options you can do. Lets say that you have created a page called Videos. (The following examples will show you the different ways to show the link to Videos). OPTION 1: Text link <a href="http://www.yourwebsitename.com/index.php/pages/videos">Videos</a> OPTION 1 Result: Videos OPTION 2: Image link <a href="http://www.yourwebsitename.com/index.php/pages/videos"> <img src="http://www.yourwebsitename.com/images/profile/camera.png"><br/>Videos</a> OPTION 2 Result: (Hover over image) I hope you are getting the results you are looking for. ...happy coding
-
Skinning the Administration Center is not much different than a regular phpVMS skin. You just need to place the skin in the Admin folder instead of the lib/skins folder.
-
I would be very interested in using it if you could explain if you can remove all the stuff in-between the navigation menu and the footer. The reason is, I have fully customized several pages (ex: schedule_results.tpl, profile_main.tpl and more). Mostly, I just want to completely remove the "Recent Reports" and "Newest Pilots" from the left and then be able to stretch the Main area to position itself left-to-right so it stretches the span.
-
Here is the default one that comes with phpVMS. Not sure what you are trying to accomplish here. **Type this after your website link (ex: www.yoursite.com/index.php) /pireps/filepirep
-
Registered...where's the download link?
-
You're on a free host....Bad idea
-
Refresh the page that is showing the signature by hitting F5
-
I would like to know if I can show the live map on the front page in a different size without having the map on acars.tpl change its size.
-
Looks like you have #3 solved as well....
-
Answer to question #3: You can try http://www.flightaware.com for flight times between airports. If you cannot find them there, PM me and I can probably help you with just about any route time you are trying to figure out. Answer to question #1: You can use vRoute to find real-world routes between two airports.