are there if statements?

Discussion in 'Templates customization' started by ianternet, Jun 27, 2009.

  1. ianternet

    ianternet aMember Pro Customer

    Joined:
    Jun 26, 2009
    Messages:
    52
    I notice in the templates there are if and ends with /if

    so I assume there are if statements stating if this is active then do this if not then do this

    what I want to do is...

    if this is sign up page put this image and text if not then put nothing.

    how or what is the if statement for this. or where can I see all the variable if statements.
  2. jackgordon

    jackgordon aMember Pro Customer

    Joined:
    Mar 23, 2009
    Messages:
    269
    Why not just hardcode your image in to the signup page?
  3. ianternet

    ianternet aMember Pro Customer

    Joined:
    Jun 26, 2009
    Messages:
    52
    yea but if they go to login or membership login the image shows up - which I do not want to be shown.
  4. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    You can make a copy of header.html login-header.html with your image, and call that instead from login and signup.

    David
  5. ianternet

    ianternet aMember Pro Customer

    Joined:
    Jun 26, 2009
    Messages:
    52
    sorry if I didnt get it right away. I renamed the new header file without image to login-header.html but going to the login.php still shows the image. but signup.php shows the right image. i just need just signup.php to show the different header image and all the other login pages and other pages without the header image.

    is there a place within amember to call base on the sign up or login? because I have a sign up image within the header.html which I do not need to be seen on login.php

    what is the code to call the new header or how to switch up the header themes?
  6. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Here is what you need to do:
    copy header.html to header1.html
    Edit header1.html and add image to it.
    Edit signup.html template and change this:
    {include file="header.html"}
    to
    {include file="header1.html"}
  7. ianternet

    ianternet aMember Pro Customer

    Joined:
    Jun 26, 2009
    Messages:
    52
    worked perfectly! thanks alexander!

Share This Page