Problem with custom template

Discussion in 'Troubleshooting' started by campitelli, Apr 25, 2009.

  1. campitelli

    campitelli New Member

    Joined:
    Mar 17, 2009
    Messages:
    16
    I created a custom header and footer and they seem to work fine when I am logged in. If I log out and go to /amember/login.php, the page also looks fine.

    However, when I log out and then enter a URL that requires access to the secure area I get rerouted to the login page, as expected. But, the log in page is missing the image in the header and super narrow - see attached picture.

    Any suggestions?

    -Antony
  2. codeispoetry

    codeispoetry aMember Pro Customer

    Joined:
    Jan 12, 2009
    Messages:
    336
    Hi Antony,

    It doesn't sound right, likely to be something ?wrong? with your setup.

    If you need further help with it, email codeispoetry [at] amemberincremental.com

    Lee
  3. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    Antony,

    If you view source of the page does it show that it is trying to display the image from an invalid path or is it not trying to display the image at all?

    Are you using SSL (https://) for your site, if so does it make a difference https:// versus not?
  4. campitelli

    campitelli New Member

    Joined:
    Mar 17, 2009
    Messages:
    16
    No, I'm using plain http. It appears that the image path is valid as it is identical in the file that is broken and one that works.

    form the standard /amember/member/
    <td height="125" align="center" style="border: 0px solid rgb(102, 102, 102);"><img src="../images/header_2.png" width="960" height="125" border="0" /></td>

    and for the page where it is broken: /amember/plugins/protect/new_rewrite/login.php?v=-any&url=/members/
    <td height="125" align="center" style="border: 0px solid rgb(102, 102, 102);"><img src="../images/header_2.png" width="960" height="125" border="0" /></td>

    very odd...
  5. powerkeys

    powerkeys Member

    Joined:
    Aug 29, 2006
    Messages:
    192
    My guess is that the relative path may be at fault here. Try replacing it with a fixed path and see if that helps.
  6. instapro

    instapro New Member

    Joined:
    Apr 24, 2009
    Messages:
    13
    I too have the same problem. Your path will work if the pages are under amember folder... But the pages placed under folders like payment/plugin will show error. Especially if u call a php file :-(
  7. campitelli

    campitelli New Member

    Joined:
    Mar 17, 2009
    Messages:
    16
    I guess it must be a bug because the *only* change I have made it to include a new header and footer file. All my pages are within the amember directory. Yes :-(
  8. codeispoetry

    codeispoetry aMember Pro Customer

    Joined:
    Jan 12, 2009
    Messages:
    336
    Hi campitelli,

    Use the full path to the header image instead of the relative path, "../images/header_2.png"

    Lee
  9. campitelli

    campitelli New Member

    Joined:
    Mar 17, 2009
    Messages:
    16
    Yes, confirming that the full path fixed the problem - thanks Lee.

    Antony
  10. codeispoetry

    codeispoetry aMember Pro Customer

    Joined:
    Jan 12, 2009
    Messages:
    336
    A pleasure, Antony! :)

    Lee

Share This Page