Layout.html issues

Discussion in 'Templates customization' started by nigp, Jan 27, 2011.

  1. nigp

    nigp aMember Pro Customer

    Joined:
    Oct 12, 2010
    Messages:
    32
    Having got code in the layout.html template, there are strange things happening!

    For example, on the signup page I get the following error message:
    WARNING: constant() [function.constant]: Couldn't find constant _TPL_SIGNUP_NEWSLETTERS_SUBSCRIBE_2 in line 108 of file common.inc.php

    Also, the graphic I want as a header on the page doesn't load, although the reference to it correct.

    In fact, what worked originally as a layout now doesn't! I seem to be having these strange problems with aMember, where things work for a while and then don't. If anyone can point me in the right direction..... The signup page is at http://www.sixthsenseconsulting.com/admin/signup

    Thanks
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    You got coding errors- i just found one:
    <link rel="stylesheet" type="text/css" media="all" href="http://www.sixthsenseconsulting.com/admin/templates/css/site.css
    <meta name='robots' content='noindex,nofollow' />


    Wheres the closing ">"

    David
  3. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
  4. nigp

    nigp aMember Pro Customer

    Joined:
    Oct 12, 2010
    Messages:
    32
    Still getting error message

    Thanks for spotting those errors.

    However, I still get the same error message:
    WARNING: constant() [function.constant]: Couldn't find constant _TPL_SIGNUP_NEWSLETTERS_SUBSCRIBE_2 in line 108 of file common.inc.php

    Is it something to do with {php}echo amember_get_header_code();{/php} in the layout.html template??
    As you can see, there is still no styling applied to the header area at all....but at least now I've got a prettier picture :)

    Again, if anyone can spot what I've missed out...I've been staring it this for so long I doubt I would see a brontosaurus stampeding through the code now...

    Thanks

    PS Also, why does the Clickbank info show up as %swww,clickbank.com%s. It looks weird!
  5. nigp

    nigp aMember Pro Customer

    Joined:
    Oct 12, 2010
    Messages:
    32
    I'm sorry to bug people, but ca anyone tell me how to get rid of the error message at the top of the layout.html which reads:

    WARNING: constant() [function.constant]: Couldn't find constant _TPL_SIGNUP_NEWSLETTERS_SUBSCRIBE_2 in line 108 of file common.inc.php

    The fact that no css is being read is a minor annoyance compared to this.

    Is it worth asking whether other people have this problem? I'm not stupid (intentionally, anyway), but things just don't seem to go as I'd expect whenever I make any changes to aMember. Is it because I'm hosting with Godaddy? Is it something else?

    I'm just getting depressed at the amount of time it takes to do any thing at all....and it never works out. Just look at the sign in page (first post) and you'll see.
  6. thehpmc

    thehpmc Member

    Joined:
    Aug 24, 2006
    Messages:
    901
    Where cannot see message? Missed it see it now!!

    What have you deleted from the original page?
  7. nigp

    nigp aMember Pro Customer

    Joined:
    Oct 12, 2010
    Messages:
    32
    Nothing, as far as I know, just added code to make it look the same as the membership site. I was careful!
  8. khasner

    khasner New Member

    Joined:
    Jan 23, 2011
    Messages:
    39
    You should take the default layout.html and open it side by side with your new one and compare line by line. You probably deleted a bracket or something. It's not a big file..it won't take long to do.
  9. thehpmc

    thehpmc Member

    Joined:
    Aug 24, 2006
    Messages:
    901
    Post up file as it is now we might spot something.
  10. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    There is no _TPL_SIGNUP_NEWSLETTERS_SUBSCRIBE_2 default language variable in aMember. So this was something that were customized in signup template.
    So:
    Remove that variable from signup.html template
    or
    add it to language/en.php :
    define('_TPL_SIGNUP_NEWSLETTERS_SUBSCRIBE_2', 'Whatever text');

Share This Page