Announcement

Collapse
No announcement yet.

change forum header

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • change forum header

    Hello folks,

    My members currently login to the website before going to the forums, I want to change the image in the header based on a session variable

    ie
    <?php
    if ($_SESSION['userg'] == 1)
    {
    <img src=logo.jpg>
    }
    else
    {
    <img src=logo2.jpg>
    }
    ?>

    I've tried adding this in the header, style manager in the admincp but get the error.

    The following error occurred when attempting to evaluate this template:

    Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in\forum\includes\adminfunctions_template.php(3605) : eval()'d code on line 32

    This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

    Can anyone point me in the right direction?? thanks
    Last edited by adamparnell; Fri 25th Sep '09, 10:21am.
Loading...
Working...
X