Jump to content

How difficult would this be?


CrashGordon

Recommended Posts

if($pilot == inactive)

{

//Show this badge

}

else

{

//Show this badge

}

}

if($pilot == inactive)
{
//Show this badge
}
else
{
//Show this badge
}

took out the extra }

i have it in my site, it works, but only for the bottom pilot of each table. How could i fix this?

Cheers

Dan C

Link to comment
Share on other sites

<?php
 if($pilot == inactive)
{
	echo '<img src="'.SITE_URL.'/lib/skins/cargo/images/inactive.png" width="150" height="58" alt="inactive">';
}


 else
{
	echo '<img src="'.SITE_URL.'/lib/skins/cargo/images/active.png" width="150" height="58" alt="active">';
}
?>

That is the code i used, should be fine, as it shows the active, but only at the bottom of each hubs roster.

Cheers

Dan C

Link to comment
Share on other sites

if($pilot->retired == 1)
{
// theyre inactive
}
else
{
// theyre active
}

for some reason I found that nabeel's code got it wrong, and my active pilots were shown to be inactive when they were active. I have put the fix up. But you can try both ways and see what works for you.

Cheers

Dan C

Edited by nightfox
Link to comment
Share on other sites

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