Viewing 4 replies - 1 through 4 (of 4 total)
  • DianeV

    (@dianev)

    What code did you want it to echo?

    Thread Starter michaelmcguk

    (@michaelmcguk)

    Hi,

    Just something like:

    <link rel="stylesheet" href="<?php echo $zenCSS ?>" type="text/css" />
    	<script type="text/javascript" src="<?php echo FULLWEBPATH . "/" . ZENFOLDER ?>/plugins/rating/rating.js"></script>
        <link rel="stylesheet" href="<?php echo FULLWEBPATH . "/" . ZENFOLDER ?>/plugins/rating/rating.css" type="text/css" />
        <link rel="stylesheet" href="<?php echo FULLWEBPATH . "/" . ZENFOLDER ?>/js/thickbox.css" type="text/css" />
    	<script src="<?php echo FULLWEBPATH . "/" . ZENFOLDER ?>/js/jquery.js" type="text/javascript"></script>
    	<script src="<?php echo FULLWEBPATH . "/" . ZENFOLDER ?>/js/thickbox.js" type="text/javascript"></script>
    	<script type="text/javascript">
    	  function toggleComments() {
          var commentDiv = document.getElementById("comments");
          if (commentDiv.style.display == "block") {
            commentDiv.style.display = "none";
          } else {
            commentDiv.style.display = "block";
          }
    	  }
    	</script>
    
        <?php printRSSHeaderLink('Gallery','Gallery RSS'); ?>
    	<?php zenJavascript(); ?>
    Kalessin

    (@kalessin)

    A simple check for the existence of the string “zenphoto” (not case sensitive) in the URL:

    if ( stristr($_SERVER['REQUEST_URI'], 'zenphoto') == true )
    {
    	// display zenphoto stuff
    }
    Thread Starter michaelmcguk

    (@michaelmcguk)

    Brilliant, worked a treat. I REALLY should know that one.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘IF Statement problem…’ is closed to new replies.