Moderators Kyle Posted April 24, 2010 Moderators Report 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
Administrators simpilot Posted April 24, 2010 Administrators Report 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
Moderators Kyle Posted April 24, 2010 Author Moderators Report 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
Administrators simpilot Posted April 24, 2010 Administrators Report 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
Strider Posted April 24, 2010 Report Posted April 24, 2010 If you want i have the codee and a graphic for it. Cheers Dan C 1 Quote
Daniel Posted November 6, 2010 Report 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
Daniel Posted November 21, 2010 Report 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
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.