Jump to content

Thomas Rozanov

Members
  • Posts

    131
  • Joined

  • Last visited

Everything posted by Thomas Rozanov

  1. Don't know if anyone noticed that well atleast for me. My site isn't at the top of the list even though my VA's name is completely original. Anyways My question is how do i put meta tags to my website? what file do i edit? index.php? And even though google bot searched my site it misunderstands the text. perhaps its made for html sites not php. I honestly don't know. please help Thanks in advance! Tom,
  2. How do i change the width of the actual skin? Because on the jquery panel (the one on the top) my Pilot Center link doesnt fit into the width of the page or skin...
  3. I kind of get it but still not confident :S
  4. Thanks A Lot Tom! Could you explain number one more clearly please. I don't get it honestly. And for # 2 http://mpmap02.flightgear.org/?pilots_filter_callsign=example I need this site. So the example part is what i need to change. : $url = 'http://mpmap02.flightgear.org/?pilots_filter_callsign='; $post = $this->post->input: $input = $url.$post;
  5. During the process of learning PHP (which I have ) I came up with a couple of questions. Maybe some PHP experts could answer them. 1) You know how you put } or { after each statement I think. What's the rule for that? What do they do ? Which side do i put? { or } ? 2)How do I make a website url a variable? however I want one part of the website to be able to change (text-box) . Like ex. $example= http://twitter.com/recessionwire but i want the recessionwire part to be changable when someone types in text box. Thanks Guys!
  6. Somebody please help me out here. What do you suggest...
  7. Wait so i put your code into a seperate .php or .tpl file and i just put include file. In the schedule_brief.tpl
  8. Okay now it works (kind of) except the page is totally deformated and in the charts part it says : Fatal error: Call to undefined method TemplateSet::displayChart() in /home/brtvirtu/public_html/lib/skins/ObsessBlue/schedule_briefing.tpl on line 125 line 125 is : <img border="0" src="<?php echo self::displayChart($schedule->depicao)?>"
  9. Okay, So I use jantorre (thanks!) custom charts database code which is: <h3>Procedures and Information</h3> <table width="98%" align="center"> <tr style="background-color: #333; color: #FFF;"> <td>Charts for <?php echo $schedule->depicao?></td> <td>Charts for <?php echo $schedule->arricao?></td> </tr> <tr align="center"> <td width="50%" valign="top"> <a href="<?php $data = OperationsData::GetAirportInfo($schedule->depicao); echo $data->chartlink; ?>" target="_blank"> <img border="0" src="http://www.yoursite.com/images/charts/<?php echo $schedule->depicao?>.gif" width="387px" height="594px" alt="No chart available" /></a><br> <a href="<?php $data = OperationsData::GetAirportInfo($schedule->depicao); echo $data->vacc; ?>" target="_blank">Local VACC</a> </td> <td width="50%" valign="top"> <a href="<?php $data = OperationsData::GetAirportInfo($schedule->arricao); echo $data->chartlink; ?>" target="_blank"> <img border="0" src="http://www.yoursite.com/images/charts/<?php echo $schedule->arricao?>.gif" width="387px" height="594px" alt="No chart available" /></a><br> <a href="<?php $data = OperationsData::GetAirportInfo($schedule->arricao); echo $data->vacc; ?>" target="_blank">Local VACC</a> </td> </tr> </table> And everything works great but i need it to work for both .png and .gif . So Lorathon (Big Thanks!) wrote a small piece of code to help me out. public function displayChart($icao) { $chart = SITE_ROOT.'/images/charts/'.$icao.'.png'; if(!file_exists($chart)) { // PNG image Does NOT exist so look for GIF image $chart = SITE_ROOT.'/images/charts/'.$icao.'.gif'; if(!file_exists($chart)) { // GIF image does not exist either return false; } } // Return image path return $chart; } And suggested to insert it like so in schdule_brief.tpl <h3>Procedures and Information</h3> <table width="98%" align="center"> <tr style="background-color: #333; color: #FFF;"> <td>Charts for <?php echo $schedule->depicao?></td> <td>Charts for <?php echo $schedule->arricao?></td> </tr> <tr align="center"> <td width="50%" valign="top"> <a href="<?php $data = OperationsData::GetAirportInfo($schedule->depicao); echo $data->chartlink; ?>" target="_blank"> <img border="0" src="<?php echo self::displayChart($schedule->depicao)?>" width="387px" height="594px" alt="No chart available" /></a><br> <a href="<?php $data = OperationsData::GetAirportInfo($schedule->depicao); echo $data->vacc; ?>" target="_blank">Local VACC</a> </td> <td width="50%" valign="top"> <a href="<?php $data = OperationsData::GetAirportInfo($schedule->arricao); echo $data->chartlink; ?>" target="_blank"> <img border="0" src="<?php echo self::displayChart($schedule->arricao)?>" width="387px" height="594px" alt="No chart available" /></a><br> <a href="<?php $data = OperationsData::GetAirportInfo($schedule->arricao); echo $data->vacc; ?>" target="_blank">Local VACC</a> </td> </tr> </table> <?php public function displayChart($icao) { $chart = SITE_ROOT.'/images/charts/'.$icao.'.png'; if(!file_exists($chart)) { // PNG image Does NOT exist so look for GIF image $chart = SITE_ROOT.'/images/charts/'.$icao.'.gif'; if(!file_exists($chart)) { // GIF image does not exist either return false; } } // Return image path return $chart; } ?> And I'm getting : Parse error: syntax error, unexpected T_PUBLIC in /home/brtvirtu/public_html/lib/skins/ObsessBlue/schedule_briefing.tpl on line 140 And line 140 is public function displayChart($icao) Please Help! Or suggest something else Thanks!
  10. Oh, Okay Big Thanks! Maybe if you could tell us how it needs to be in css file? Do you want to make it an image based tab or just html color code sort of thing?
  11. Thanks! And How Do I make Seperators? Like lines or tabs?
  12. How do you edit the sidebar? Where in layout.tpl is the sidebar part? Because now i only have news there. Thanks! Awesome Skin!
  13. Thank You So Much! Where do I put the code though? Thanks! I mean i know its in schedule_brief.tpl but where exactly do i put it. In img url???
  14. Well if you approve it then yes. But acars won't show tHe flight.
  15. Please help. I admit I am a noob and this is probably as easy as 123. But i JUST don't know how...
  16. Thats an IATA code there mate. Stony river airport does not have an ICAO code. Which is strange but probably because small airport.
  17. I want to be able to have my airport diagram image in 2 formats. So KJFK.gif and EDDF.png would work? How do I do that? In other words how do you make it possible for 2 file extensions (.gif and .png) Thanks!
  18. Can somebody help me out? As far as I know the screenshot center only supports .jpg files (to upload). I need it to support .png files too. What files do I edit? Thanks!
  19. You could try to make a LOT of Modifications to simpilot's screenshot center. And you could make it have video instead. That way your pilots can just upload the video on to your site instead of youtube. You would have to find a video player script and that would be your base. And then when people upload videos your database takes the link and links it basically just like simpilot's screenshot center. Good Luck!
  20. What Blue And Black Box? I mean where? In the new pilot center????
  21. )) Thanks! And sorry for my stupidity :S
  22. Thanks Guys! I think i got it now But have a look on mark's site. His left menu bar is different from his upper black one. So what did he do? Thanks!
  23. Could you give me the code please? Sorry for bothering you but it's just im having problems using ones off jquery tutorial sites.
  24. I need help with making my website look better. So I have a couple of questions. Info: I'm using obsess blue skin. I'm a noob 1) How do I make my var ticker ( the black moving text) and my normal text box. Not be on every page of my site? 2) How can i make my right menu (obsess blue) be different from my upper menu? In other words how do i seperate the two menu's in core_navigation.tpl? Thanks A Lot!!
  25. Thanks Everyone For Your Help And Support! It really is a pleasure to be using PHPVMS. It's easy to learn how to use it. And if you have a problem you can post it on the forum. Honestly I just Love It I actually have fun making my VA's Website
×
×
  • Create New...