Jump to content

Thomas Rozanov

Members
  • Posts

    131
  • Joined

  • Last visited

Posts 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. if($condition){
    // Do things
    }

    for the second you need a form somewhere, and in the appropriate module it's sent to

    $url = 'http://www.twitter.com/';
    $post = $this->post->input:
    $twitter = $url.$post;

    where your input field is named input.

    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;

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

  4. Like I said in my PM's, I think you are going to have to write a class. Then stick the code I wrote in there. Then call the function from that class. Look in the core/common for the class files. See how they work and try and figure it out.

    OR

    Like was initially suggested, do the easy thing and change all the files to the same type :)

    Wait so i put your code into a seperate .php or .tpl file and i just put include file. In the schedule_brief.tpl

  5. Sorry I did not get back to you right away with your PM.

    Remove the word "public" and see how it works.

    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)?>"

  6. 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!

  7. You need to get in to you css file and create them. I can not give code since I have not even done mine yet. I am going to eventually, just have not got around to it yet.

    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?

  8. Thanks for posting the code. My apologies for not coming back and saying that I got it working.

    And as far as the side area goes, it is located inside the layout.tpl file.

    Look for a comment line that says sidearea starts here and another one that says side area ends here.

    Thanks! And How Do I make Seperators? Like lines or tabs?

    brilliance.png

  9. I agree. But I suppose you could do it. You would have to write a check for one file and if absent open the other file type.

    Something like the following would check both (UN-TESTED)

    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;
    }
    

    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???

  10. We have numerous flights in our database. The flight numbers are generated by us, but occasionally a pilot may want to fly a trip using an historical timetable. How can he submit a pirep using a flight number that may not be in my database? Is it possible? Thanks!

    Well if you approve it then yes. But acars won't show tHe flight.

  11. 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!

    Please help.

    I admit I am a noob :P and this is probably as easy as 123. But i JUST don't know how...

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

  13. What my site?

    I used jquery menu tabs with their own css using the same js that loads with the site originally.

    Could you give me the code please? Sorry for bothering you but it's just im having problems using ones off jquery tutorial sites.

  14. 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 :P

    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!!

×
×
  • Create New...