Jump to content

stuartpb

Members
  • Posts

    326
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by stuartpb

  1. I've just taken a look at the site, and I think you are really pushing the boundaries of what you will get away with there. For example, your timetables/routes map are merely a link to the real Emirates schedules counterpart. There is no explanation on your site that you are linking to the real counterpart, or any evidence of permission to use their materials in the way you have. I would seriously be worried that if the real airline finds out, they will have you shut down in no time. What you are doing could easily be seen to be misleading, whether intentional or not and certainly in the realms of copyright infringement.
  2. No worries, glad to have helped. The data pulled in the schedules page doesn't include the airport name, only the ICAO. So I had to pull the airport names from the airports table, relative to the airport ICAO's on the schedule.
  3. Did anyone ever get this working? I've been trying for a few days to get pax counts showing in the schedules brief, without success.
  4. Departure <?php $departname = OperationsData::getAirportInfo($route->depicao);?> <td><?php echo $route->depicao;?> <?php echo $departname->name;?></td> Arrival <?php $arrivename = OperationsData::getAirportInfo($route->arricao);?> <td><?php echo $route->arricao;?> <?php echo $arrivename->name;?></td> Hope that helps
  5. You jocks are never happy, you've been crying out for independence for centuries, and now you're moaning about not being included in the UK . . . . . . Just kidding BTW EDIT: I think a lot of US peeps fail to realise exactly what the UK comprises of (England, Northern Ireland, Wales and Scotland).
  6. If it's the pilots private profile page then the file you want is: profile_main.tpl If it's the pilots public profile page, then the file is: pilot_public_profile.tpl
  7. if($pirep->accepted == PIREP_ACCEPTED) echo '<span style="color:#whatever">Accepted</span>'; elseif($pirep->accepted == PIREP_REJECTED) echo '<span style="color:#whatever">Rejected</span>'; elseif($pirep->accepted == PIREP_PENDING) echo '<span style="color:#whatever">Approval Pending</span>'; elseif($pirep->accepted == PIREP_INPROGRESS) echo '<span style="color:#whatever">Flight in Progress</span>'; That's a quick and dirty way, you would just set the whatever to a valid hex colour value. You would be better applying classes to the spans, and set the attributes in your CSS stylesheet. Something like this: if($pirep->accepted == PIREP_ACCEPTED) echo 'span class="accept">Accepted</span>'; elseif($pirep->accepted == PIREP_REJECTED) echo '<span class="reject">Rejected</span>'; elseif($pirep->accepted == PIREP_PENDING) echo '<span class="pending">Approval Pending</span>'; elseif($pirep->accepted == PIREP_INPROGRESS) echo '<span class="inprog">Flight in Progress</span>'; Then in your CSS: .reject {color:#whatever} .accept {color:#whatever} .pending {color:#whatever} .inprog {color:#whatever} It's always best to use the CSS stylesheet to apply styling, as it makes life much easier.
  8. stuartpb

    Fleet Table

    Yes: <td><img src="<?php echo $aircraft->imagelink; ?>"/></td> You need to make sure the image links are full, valid HTML URLs pointing to the images.
  9. I finished an ICT & the Law module as part of my degree course last month, and a large part of the module was concerned with trademark and copyright protection. It is an interesting subject, and one which is ever more important nowadays, as it's so easy to fall foul of the regulations. I can understand airlines wanting to protect their brand, and also understand why they will contest unauthorised usage. Having said that though, I think that a serious and established VA community (like yours Mark) built around a real world airline is something that the real world airlines should encourage. There are positives for both parties in doing so. The trouble is though, that we keep seeing half baked VAs popping up, where the owners have ripped a real world VA name and branding, and spent no time in both planning and execution, and I can see why they would be very concerned about that type of VA.
  10. Just curious, but after you have said all this, your website features trademarked and copyrighted logos, so did you (or your VA) gain legal authority from the owners of these materials to replicate these for your VA site?
  11. The distance is calculated on the distance between latitude and longitude coordinates of the destination and arrival airports. If the gate is some distance away from the coordinate given, then the % shown will be inaccurate. For example, when I fly to Charles De Gaul, the gate I was allocated was some distance from the coordinates for the centre of the airport, and it showed 98% completed. How long was the flight in question, in nautical miles?
  12. CSS is pretty easy to get the hang of, once you dedicate a bit of time practising and learning. A great place to start would be the tutorials on the W3 schools website, as they give a good grounding of CSS: http://www.w3schools.com/css/default.asp Here's some more CSS tutorials: http://www.westciv.com/style_master/academy/hands_on_tutorial/index.html http://www.w3.org/Style/Examples/011/firstcss You also need to know some HTML, and there are also some great tutorials for this too: http://www.w3schools.com/html/default.asp Once you have a basic understanding, another great tip is to download some of the available skins for phpVMS, and study it, then experiment with it. You can quickly pick up how to skin by doing this. You can't run before you can walk, so by understanding the basics of HTML & CSS, you can then move on to skinning. Without the basics, it's a much harder job, and you can very easily run into problems. Hope this helps
  13. If it's skinning help you need, you would be better posting your questions here: http://forum.phpvms.net/forum/22-skinning/
  14. If it's a blog you want, you can skin Wordpress to suit your own theme. Or even Joomla. I don't think you will find anyone who will tell you how to do this, because it's an indvidual job, with specific requirements depending on your skin for phpVMS, and how you want the blog to be integrated. It would also help if you could be more specific too. James and TAV have both come up with good solutions to what you seem to be asking for. I use a phpbb3 forum, where there is a dedicated forum, specifically for news articles. Then I have a custom module on the phpvms front end, which shows the latest 5 posts from the phpbb3 news forum, with links to each article.
  15. You have to create the pages in the admin panel, and then phpVMS will create the links to these pages. What I do though is to create a page in the admin panel and then download the pages file, edit it manually, and then upload it to the production site, overwriting the one present.
  16. The way I built my site was to create a sub folder on the production site, install phpVMS into that subfolder, and then work on that to create the styling. Once I'm happy, I'll move the contents over to the main public_html folder, and make the necessary changes to links and file URL's.
  17. Any content like images will have a URL directing the browser to that file. If you have relocated the site, then all these URL's need to be changed to reflect the new location.
  18. Maybe it's a case of what comes around goes around then This waleed is turning into a PITA, as I've heard a few people slagging phpVMS based VA's because of the sub standard sites like this Mansoor keeps churning out.
  19. I've just found something else out about the shady Waleed (Mansoor). This latest VA he's dreamed up is a blatant rip off of an existing VA: Mansoor's: http://www.vpiasim.waleeddc.com The one he's ripped: http://www.vpia.org/VirtualPIA Mansoor, by continuing carrying off like you are, your reputation is going to be terrible within the virtual flight community (it probably already is!). Why not actually do some work, spend the necessary time required to set a VA up properly, and then try it out. Even better, get some experience of actually flying with a VA. You don't seem to understand that any successful VA is only as good as it's reputation, and the reputation of it's creators.
  20. Looks like Waleed (Mansoor) is at it again Despite his assurances that Bird Virtual was the only VA he was operating, he's opened yet another new one, this time with a gobful of name to it: Virtual Pakistan International Airline Simulation www.vpiasim.waleeddc.com Mansoor (or Waleed), can I ask why you are opening so many VA's Exactly what are you hoping to achieve? I think you are being extremely stupid opening so many VAs up and then advertising them with shoddy websites. Have you never thought that the reason people aren't joining these VAs is because of your actions? What pilot in their right mind would take you or any of your VAs seriously, when you cannot be bothered to even try and set just one of these VAs up to work well. Instead, you are launching half hearted attempts, and that shines through in the websites. So, are you seriously trying to launch a VA, or are you just enjoying messing with the various websites?
  21. Here's an example: frontpage_main.tpl <div id="mainbox"> <?php // Show the News module, call the function ShowNewsFront // This is in the modules/Frontpage folder MainController::Run('News', 'ShowNewsFront', 5); ?> </div> <div id="sidebar"> <h3>Recent Reports</h3> <?php MainController::Run('PIREPS', 'RecentFrontPage', 5); ?> <h3>Newest Pilots</h3> <?php MainController::Run('Pilots', 'RecentFrontPage', 5); ?> <h3>Users Online</h3> <p><i>There have been <?php echo count($usersonline)?> user(s), and <?php echo count($guestsonline);?> guest(s) online in the past <?php echo Config::Get('USERS_ONLINE_TIME')?> minutes.</i></p> <?php /* $usersonline also has the list of users - really simple example Or if you're not on the frontpage: $usersonline = StatsData::UsersOnline(); foreach($usersonline as $pilot) { echo "{$pilot->firstname} {$pilot->lastname}<br />"; } */ ?> </div> With some id's and classes given for various elements (just a quick and dirty example): <div id="mainbox"> <?php // Show the News module, call the function ShowNewsFront // This is in the modules/Frontpage folder MainController::Run('News', 'ShowNewsFront', 5); ?> </div> <div id="sidebar"> <h3 id="blueh3">Recent Reports</h3> <?php MainController::Run('PIREPS', 'RecentFrontPage', 5); ?> <h3 id="redh3">Newest Pilots</h3> <?php MainController::Run('Pilots', 'RecentFrontPage', 5); ?> <h3 class="allcapsh3">Users Online</h3> <p class="textbold">There have been <?php echo count($usersonline)?> user(s), and <?php echo count($guestsonline);?> guest(s) online in the past <?php echo Config::Get('USERS_ONLINE_TIME')?> minutes.</p> <?php /* $usersonline also has the list of users - really simple example Or if you're not on the frontpage: $usersonline = StatsData::UsersOnline(); foreach($usersonline as $pilot) { echo "{$pilot->firstname} {$pilot->lastname}<br />"; } */ ?> </div> I don't mean to be rude, you say you know CSS, but part of knowing CSS is how to use it with HTML. The .tpl files have php and html code present, but assigning classes and ID's is very straightforward, if you know CSS.
  22. You could find some tutorial videos on CSS styling elsewhere, as skinning phpVMS is just a matter of using the CSS stylesheet in combination with setting classes and ID's on HTML elements. http://www.google.co.uk/search?aq=f&sourceid=chrome&ie=UTF-8&q=css+tutorials#q=css+tutorials&um=1&ie=UTF-8&tbo=u&tbm=vid&source=og&sa=N&hl=en&tab=wv&bav=on.2,or.r_gc.r_pw.&fp=1a55cbd4d4788f9c&biw=1920&bih=1075
  23. You need to go through each .tpl (template) page in the phpVMS core/templates folder, and assign styles and id's to the page, content and container elements you want to style. If you know CSS I won't bore you with explanations on how to do that.
  24. Just download phpVMS again, and take the local.config.php file from the download, and use that.
×
×
  • Create New...