ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

"php in templates" suddenly stopped working

March 06, 2013 5:56pm

Subscribe [1]
  • #1 / Mar 06, 2013 5:56pm

    Magda Muhammad

    1 posts

    Hi, I’m using the core expressionengine,
    and I’m using this code in one of my templates

    {if photo_album !="" }
                      
    <?php $images = "{photo_album}"; $img_array=explode("|", $images); $max = sizeof($img_array); ?>
    <?php for($i = 1 ; $i < $max-1 ; $i++): ?>
    
    <a href="http://{path=images/uploads/albums}/&lt?php">; ?>" rel="lightbox[gallery]"]_{path=images/uploads/albums}/<?php echo _</a>
    
    
    <?php endfor; ?>;
    
    {/if}

    it was working very fine and suddenly and without a reason it’s not working at all !!
    and all the php parts I’m using in my code !!!

    anyone have any idea what the problem might be ?!

  • #2 / Mar 06, 2013 6:06pm

    Magda Muhammad

    1 posts

    Hi, I’m using the core expressionengine,
    and I’m using this code in one of my templates

    {if photo_album !="" }
                      
    <?php $images = "{photo_album}"; $img_array=explode("|", $images); $max = sizeof($img_array); ?>
    <?php for($i = 1 ; $i < $max-1 ; $i++): ?>
    
    <a href="http://{path=images/uploads/albums}/&lt?php">; ?>"]_{path=images/uploads/albums}/<?php echo _</a>
    
    
    <?php endfor; ?>;
    
    {/if}

    it was working very fine and suddenly and without a reason it’s not working at all !!
    and all the php parts I’m using in my code !!!

    anyone have any idea what the problem might be ?!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases