Jump to content

estebanmejia

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by estebanmejia

  1. Here is the code for the IVAO status image in the roster:

    $feildvalue = PilotData::GetFieldValue($pilot->pilotid, 'IVAO ID');
    
    if($feildvalue != '')
    {
    echo '<img src="http://status.ivao.aero/R/'.$feildvalue.'.png">';
    }
    
    

    Place it in your pilots_list.tpl, and save it to your skin folder.

    Change the IVAO ID to what ever it is in your database. You can use the correct spelling for feildvalue to what you want, you can even change it to another name if you like.

    Remplace echo '<img src="http://status.ivao.aero/R/'.$feildvalue.'.png">'; to echo '<img src="http://status.ivao.aero/R/'.$fieldvalue.'.png">';

    it had a little mistake

    thanks

×
×
  • Create New...