Jump to content

mark1million

Moderators
  • Posts

    2288
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by mark1million

  1. Ok now i am back at a pc i can help you better, Find the file in the screenshots folder screenshots_viewer.tpl there are a couple of adjustments you need to make to the code from displaying 4 pictures wide to 3 which fits in with the skin you are using. For me its line 65, if ($tiles == '3') { echo '</tr>'; $tiles=0; } default code is, if ($tiles == '4') Change the 4 to a 3, there are a couple of other tpl files you need to do this with as well.
  2. HI in your html pages switch to source code view and use <?php YOUR CODE ?>
  3. OK so if your flight numbers are the same they will just be updated, so if you currently have flights from 1 to 1000 then if you upload the same or more with the flight numbers they will be updated with the new information. No need to delete anything.
  4. It is in there somewhere because i remember reading it also in the skin it tells you to add you own scripts below this line It may be in the tpl.
  5. You also need to change the display from the default 4 images wide to 3 Its in the code there.
  6. Thing is malware is hidden in scripts and will usually look for folders it has permissions to write to, so once you upload a js file or unknown content then potentially every file / folder it can write to it will do to try in this case redirect to a booby trapped site for what ever reason. Its a right pain to get rid of and fully make sure you are free, its a time consuming task that must be done. In your example above anyone reaching your site from the popular search engines will be redirected to that site defined in the decode.
  7. That is a known malware site!!!!! What ever code was in your scripts it would appear that it has written a redirect to that url, Not a good outcome as you dont know where else it has written that meta redirect. Roger that defiantly does NOT belong in the action.php
  8. Someting like this? <td align="center"> <?php if($report->accepted == PIREP_ACCEPTED) echo '<div id="success">Accepted</div>'; elseif($report->accepted == PIREP_REJECTED) echo '<div id="error">Rejected</div>'; elseif($report->accepted == PIREP_PENDING) echo '<div id="pending">Pending</div>'; elseif($report->accepted == PIREP_INPROGRESS) echo '<div id="error">Flight in Progress</div>'; ?> </td> This is what i use.
  9. Bump Is it possible to take over this code and add the amount of times an airport has been flown to?
  10. Thanks guys, found it
  11. Hey guys i remember once there was a fuel calculator knocking about here based on aircraft type and route miles that displayed on the briefing page,I had this in a previous VA i started but cant seem to find it, if someone can point me in the right direction. Cheers.
  12. I see where your going now, i got the same with new pilots so all i did was tell that page not to output a php error <?php error_reporting(0); ?> at the top of that tpl
  13. Thanks Vansers but im sorted now
  14. Tempted by teh +1 Rep <?php if(!$pireps) { echo '<p>Sorry No recent flights have been found</p></div>'; return; } $flights = PIREPData::getLastReports($userinfo->pilotid, '20'); $string = ""; foreach($flights as $flight) { $string = $string.$flight->depicao.'+-+'.$flight->arricao.',+'; } ?> You may need to get rid of that extra closing div as that is needed for me on my site.
  15. Cheers, that seems to bring all the flown routes back but it doesn't matter as im using great circle now
  16. cheers, im nearly done Its crazy what you can do when you put your mind to it.
  17. Hey no problem Ray were all there at times After all i have learnt so much here on this site and coding other options in phpVMS. Great support here all round.
  18. Hey guys i am trying to display the route map, route_map.tpl in another template the profile_main.tpl, how can i call this please? I dont want to include, iframe or embed. Thanks.
  19. mark1million

    Icons

    Hi, im in the process of redoing the pilot center and i am looking for a good source of icons, there are lots on the web coming up on searches just wondered if anyone has any recommendations?
  20. If that didnt work have a look with Firefox, there must be an overriding setting in your css.
  21. Try this, <div id="topNav" align="center"> <ul class="nav"> <?php Template::Show('core_navigation.tpl'); ?> </ul> </div> If not take a look in the nav.tpl
  22. Yep that maybe so but check the actual line before that the whole nav sits in a center div bit just the url link
  23. OK to get the header colour make the top cells <th> for table header, then define that colour in your css file. With the alternate colours you can use, /* custom tables */ table.mytable { font-family: Times New Roman; background-color: #FF6600; margin:5px 0pt 5px; font-size: 11pt; width: 100%; text-align: left; } table.mytable tbody tr.odd td { background-color:#f0f0f0; table.mytable thead tr th { background-color: #FF6600; border: 1px solid #FFF; font-size: 12pt; padding: 2px; } So in your table you create <table class="mytable"> then it will read from your css your defined values there. Just change the #color to what you want. Hope that makes sense
  24. Never heard of that before, google her i come
  25. I have not looked at that skin for a while just try to all the align="center" to that div the nav sits in.
×
×
  • Create New...