Announcement

Collapse
No announcement yet.

Displaying User's Name after Login

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

    #16
    I'm definitely edging towards a state of perplex-ment (if the is such a word).

    Right, is it possible to do this?

    <Actinic:NOTINB2B>
    document.getElementById("pnLogin").style.display="none";
    </Actinic:NOTINB2B>

    After a user has logged in their name does not appear on our home page even though we have the <Actinic:CURRACCOUNT/> variable on it??
    Last edited by DavidGeran; 22-Jul-2004, 05:17 AM. Reason: Calmed down since last night

    Comment


      #17
      document.getElementById("pnLogin").style.display="none"
      I'm a little lost here. Where did this JavaScript come from? What it is meant to do? Try taking it outside the <Actinic:NOTINB2B> tags and see if it makes a difference.
      After a user has logged in their name does not appear on our home page?
      Is the <Actinic:CURRACCOUNT/> variable just sitting in the HTML or have you done some special formatting to it?

      Comment


        #18
        Chris,

        I've done no formatting with the <Actinic:CURRACCOUNT/> except in changing the text to say 'Welcome...' - as shown when a user first logs in (Use 'DavidGeran' and 'Rhiannon' to log in).

        The <Actinic:NOTINB2B> tag: does this hide whatever is between its open and closing tags if a user is logged in? i.e. If I stuck an alert('hello') between the tags would this pop up for non-logged in users or would nothing happen at all?

        Comment


          #19
          David - please see the attached screenshot of what I saw when I logged in via http://www.youraromatherapy.co.uk/acatalog/login.html.

          I notice three things:

          1) (Welcome David Geran) appears just above the date and looks fine. That will have been generated by either:
          <Actinic:NOWSERVING/> - if 'David Geran' is the buyer name
          <Actinic:CURRACCOUNT/> - if 'David Geran' is the account name
          What is missing from here? Check 'Design | Text | Web Site | Customer Account' IDs 212 and 213 to ensure all the correct code is in place to place these values into the HTML.

          2) The 'login' button only appears when you have logged in. If you have code similar to
          <Actinic:NOTINB2B>
          <img src="login.gif">
          </Actinic:NOTINB2B>
          ... in your design then it will only be shown to non-logged-in customers.

          3) The 'Welcome to our Membership Online Catalogue' message looks wrong. I guess that is the message that comes from Phase:-1, ID: 210 in 'Design | Text | Web Site | Customer Account'.
          Code:
          <table border=0 width=100%><tr><td align=center bgcolor="%s">%s<b>Welcome to Online Catalogue</b>&nbsp;%s%s</td></tr></table>
          The first %s is a colour. The second is a font tag, the third is the buyer name, the fourth is a closing font tag. You can't just remove the %s - you need to keep them in order and comment them out if you want to remove one.
          Attached Files

          Comment


            #20
            Chris,

            this is just not working. After logging in the account and buyer are displayed initially on the index.html catalogue page, but they do not appear anywhere else on the site, even after moving the <Actinic:NOWSERVING/> and <Actinic:CURRACCOUNT/> variables back into Act_Primary.html.

            On resetting the default text for the welcome message, well, you can see the mess that makes.

            What's wrong with my version of Actinic Business?? FYI it is version 6.1.3.0.0.0.DHBA, and Kiran already has a snapshot.

            Comment


              #21
              And the answer is...

              I should really start going to bed earlier. The reason it has not been working is because the links in the navigation are absolute rather than relative - every time a user clicks on a navigation option, they are re-entering the site and starting afresh.

              This is a bit surprising but its the reason for my late night session. Thanks for all your help, much appreciated

              Comment

              Working...
              X