Jump to content

Th3Boss

Members
  • Posts

    33
  • Joined

  • Last visited

Everything posted by Th3Boss

  1. I want it if $high1name == "open" then it shows div 1 if $high1name has any other value show div 2 otherwise show div 3
  2. This is how I currently have it setup <?php if ($high1name == "open") { ?> <div class="module high open"> <img src="Icon_hi_slot.png" width="46" height="46"> </div> <?php } elseif ($high1name == "none") { ?> <div class="module high inactive"> </div> <?php } else { ?> <div class="module high"> <img src="http://image.website.com/Type/<?php print($high1typeID);?>_64.png"> </div> <? } ?> But I would like to have it something like this <?php if ($high1name == "open") { ?> <div class="module high open"> <img src="Icon_hi_slot.png" width="46" height="46"> </div> <?php } elseif ($high1name == "ANY VALUE HERE") { ?> <div class="module high"> <img src="http://image.website.com/Type/<?php print($high1typeID);?>_64.png"> </div> <?php } else { ?> <div class="module high inactive"> </div> <? } ?> How do I get the elseif to work for any value $high1name has?
  3. Figured it out.
  4. I tried that before, it doesnt work.
  5. The code below is suppose to check if someone is "Alliance" if they are then the page is visible, if they arnt it shows the message and Enter button to reload site. It works except people who are "Alliance" get the message and Enter button and can only view site after they click the Enter button. How can I get it to not show message and Enter button to people who are "Alliance" and instead just show website. Thanks <?php if($trusted=$_SERVER['HTTP_EVE_TRUSTED']){ $charname=($_SERVER['HTTP_EVE_CHARNAME']); $corpname=($_SERVER['HTTP_EVE_CORPNAME']); $alliancename=($_SERVER['HTTP_EVE_ALLIANCENAME']); } if($alliancename == "Alliance"){ $access=TRUE; }else{ $access=FALSE; } if($access==FALSE){ $msg="Message Here"; print($msg); Echo "<center><h4><a href='http://www.website.com/'>Click 2 Enter</a></h4></center>"; } if($access){ ?> *Website Here* <?php }else{ } ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.