Moderators Kyle Posted April 24, 2010 Moderators Report Share Posted April 24, 2010 Ok, you know in the pilot roster list and they have VATSIM links, how do i do that like the img on the bottom. http://highfreightva...co.cc/Mine!.JPG One point if it works! Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted April 24, 2010 Administrators Report Share Posted April 24, 2010 If you mean the link to VATAWARE and you are on the pilot_list.tpl page you would do something like <?php $vatsimid = PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID'); if($vatsimid) {echo '<a class="profiletop" href="http://www.vataware.com/pilot.cfm?cid='.$vatsimid.'" target="_blank">Vataware Data</a>'; } ?> You will need to change VATSIM ID to whatever you have the id saved as in your custom profile field. 1 Quote Link to comment Share on other sites More sharing options...
Moderators Kyle Posted April 24, 2010 Author Moderators Report Share Posted April 24, 2010 Ok, ok if i title the feild as "VATSIM" <?php $vatsimid = PilotData::GetFieldValue($pilot->pilotid, 'VATSIM'); if($vatsim) {echo '<a class="profiletop" href="http://www.vataware.com/pilot.cfm?cid='.$vatsim.'" target="_blank">Vataware Data</a>'; } ?> Is this correct? Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted April 24, 2010 Administrators Report Share Posted April 24, 2010 Just the one spot needs to match your field name <?php $vatsimid = PilotData::GetFieldValue($pilot->pilotid, 'VATSIM'); if($vatsimid) {echo '<a class="profiletop" href="http://www.vataware.com/pilot.cfm?cid='.$vatsimid.'" target="_blank">Vataware Data</a>'; } ?> 2 Quote Link to comment Share on other sites More sharing options...
Strider Posted April 24, 2010 Report Share Posted April 24, 2010 If you want i have the codee and a graphic for it. Cheers Dan C 1 Quote Link to comment Share on other sites More sharing options...
Daniel Posted November 6, 2010 Report Share Posted November 6, 2010 ok could someone please give me that code so it only shows Vataware Data link not their Vatsim id then the link to vataware data. thanks Daniel Quote Link to comment Share on other sites More sharing options...
Daniel Posted November 21, 2010 Report Share Posted November 21, 2010 could i possible have some help code so it only shows Vataware Data link not their Vatsim id then the link to vataware data. Quote Link to comment Share on other sites More sharing options...
Strider Posted November 21, 2010 Report Share Posted November 21, 2010 Sent you a pm Daniel 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.