Jump to content

stuartpb

Members
  • Posts

    326
  • Joined

  • Last visited

  • Days Won

    2

Posts 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. 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 :)

  3.  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.

  4. Hi, i need help

    This is my code for Fleet Table

    <h1><?php echo SITE_NAME?>'s Fleet Information</h1>

    <table>

    <!-- Fleet Table Version 1.1 - fleet_table.tpl -->

    <table border="1">

    <thead>

    <tr>

    <td><b>Image</b></td>

    <td><b>Type</b></td>

    <td><b>Range</b></td>

    <td><b>Empty Weight</b></td>

    <td><b>Cruise Alt</b></td>

    <td><b>Max Pax</b></td>

    <td><b>Max Cargo</b></td>

    <td><b>Total Hours</b></td>

    <td><b>Total Routes Flown</b></td>

    <td><b>Location</b></td>

    </tr>

    </thead>

    <tbody>

    <?php foreach ($fleet as $aircraft)

    {

    ?>

    <tr>

    <td><?php echo $aircraft->imagelink; ?></td>

    <td><?php echo $aircraft->name; ?> </td>

    <td><?php echo $aircraft->range; ?> </td>

    <td><?php echo $aircraft->weight; ?></td>

    <td><?php echo $aircraft->cruise; ?></td>

    <td><?php echo $aircraft->maxpax; ?></td>

    <td><?php echo $aircraft->maxcargo; ?></td>

    <td><?php echo $aircraft->totaltime; ?></td>

    <td><?php echo $aircraft->routesflown; ?></td>

    <?php

    $params = (array('a.registration'=>$aircraft->registration, 'p.accepted'=>PIREP_ACCEPTED));

    $pirep = PIREPData::findPIREPS($params);

    $current_location = $pirep[0]->arricao;

    $current_location2 = $pirep[0]->arrname;

    ?>

    <td><?php echo $current_location.'-'.$current_location2; ?></td>

    </tr>

    <?php } ?>

    </tbody>

    </table>

    <p><small><a href="http://forum.phpvms.net/index.php?topic=1665.0">FleetTable 1.1</a></small></p>

    In the line

    <td><?php echo $aircraft->imagelink; ?></td>

    I need see the image and not the link.

    Is possible this?

    Thanks

    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.

  5. 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.

  6. but does someone know how it comes that a pilot are on the gate. but he says its just 87% flown? and not 100%?

    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?

  7. Hey is there anyone who can help with skinning and not sure how to do css and all that site of things ?

    Thanks

    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 :)

  8. Well Thank-you James142 and tav1702 for your suggestions.

    Issue not resolved Yet

    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.

  9. Do you have to create all the pages manually in the admin center on the new site or is there a way to just copy the production pages into the test environment?

    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.

  10. I understand that. What is the best approach? Start a new environment from scratch and then copy data or not? Basically what I'm trying to do is copy the site over to a test environment so that I can test some menu changes without playing with the production site. What files should be copied over?

    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.

  11. I did all of that and it still doesn't have everything appear properly for some reason. I was just curious if there was some kind of documentation out there explaining the process of moving a website or copying it to another location.

    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.

  12. 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.

  13. Looks like Waleed (Mansoor) is at it again :rolleyes: 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?

    • Like 3
  14. 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.

  15. Do you know if they still have the vidios. I carnt learn anything from reading i need to watch it to learn

    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

  16. Thank you very much! i know css and i would just like to know how to integrate my stylesheet with phpvms pages and content.

    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.

×
×
  • Create New...