Jump to content

vatware button on roster question


Strider

Recommended Posts

<?php
$fieldvalue = 0;
if($fieldvalue != '')
//<a href="http://www.vataware.com/pilot.cfm?cid=<?php echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID'); target="_blank"?><img src="<?php echo SITE_URL ?>/lib/skins/global/images/vatsim.gif" alt="Vatsim ID" /></a>

That is the code.

Cheers

Dan C

Link to comment
Share on other sites

<?php
$fieldvalue = $pilot;
if($fieldvalue != 'VATSIM_ID')
// <a href="http://www.vataware.com/pilot.cfm?cid=<?php echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID'); target="_blank"?><img src="<?php echo SITE_URL ?>/lib/skins/global/images/vatsim.gif" alt="Vatsim ID" /></a>

there you go nabeel.

Cheers

Dan C

Link to comment
Share on other sites

  • Administrators

Should be enough to ge tyou goin:

<?php
$fieldvalue = PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID');
if($fieldvalue != '')
{
echo '<a href="http://www.vataware.com/pilot.cfm?cid='.$fieldvalue.'  target="_blank"<img src="'.SITE_URL.'/lib/skins/global/images/vatsim.gif" alt="Vatsim ID" /></a>';
}

Link to comment
Share on other sites

<?php
$fieldvalue = "PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID');
if($fieldvalue != '')
{
   echo '<a href="http://www.vataware.com/pilot.cfm?cid='.$fieldvalue.'  target="_blank"<img src="'.SITE_URL.'/lib/skins/global/images/vatsim.gif" alt="Vatsim ID" /></a>'";
}

Still not working.

Cheers

Dan C

Link to comment
Share on other sites

Parse error: syntax error, unexpected '<' in /home/globalai/public_html/lib/skins/global/pilots_list.tpl on line 57

I get that error with your code. I know the piece of code causing it, but there is no way of stopping it from occuring.

Cheers

Dan C

Link to comment
Share on other sites

  • Administrators
<?php
$fieldvalue = PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID');
if($fieldvalue != '')
{
   echo '<a href="http://www.vataware.com/pilot.cfm?cid='.$fieldvalue.'" target="_blank"><img src="'.SITE_URL.'/lib/skins/global/images/vatsim.gif" alt="Vatsim ID" /></a>';
}

Link to comment
Share on other sites

  • 4 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...