Announcement

Collapse
No announcement yet.

Customising the "logout" link?

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

    Customising the "logout" link?

    I'm in the process of a redesign, but I'm having to learn v8 at the same time (so please bear with me)!

    I'm currently looking at the registered customers information that appears at the top of every page when customers have logged in, which lists the name of the buyer, the name of the account, and a logout link.

    I have customised the look of this section using CSS, and I have created a class in CSS that defines the look of this (and other) links, but can't track down the rogue <a> tag (which creates the 'logout' link) in order to define it! The code reference appears on the main page, just above the INNERLAYOUT code:

    <actinic:variable name="NowServing" /><actinic:variable name="CurrentAccount" /><actinic:variable name="LogoutSimple" />

    I've looked in the 'text' section, and found the code that defines this section: (Phase -1 ID: 212; 213; 217) and the code that defines the style used: (Phase -1 ID: 1968; 1970); but nothing that adds a <a></a> tag!

    Under the HTML text I have found a logout link (Phase -1 ID: 2283), but according to the description it says it's "used very rarely", and it can't be the code used because it includes code for constructing a table cell.

    I've also tried right-clicking on the variable name and there is no 'edit code' or 'edit variable' option. If I double-click on it, it comes up with the 'edit appearance' box which doesn't help.

    The code must exist somewhere, but please can someone let me know where I can find it?

    #2
    Brute force it .. wrap the 3 variables inserting the info above the INNERLAYOUT into a named <div> and set the CSS for the child <a> accordingly at the very bottom of your stylesheet.

    Not elegant but should get you up and running until you track its location (could be coming from one of the perl scripts) and do it the more conventional way.....


    Bikster
    SellerDeck Designs and Responsive Themes

    Comment


      #3
      Originally posted by jont
      Brute force it .. wrap the 3 variables inserting the info above the INNERLAYOUT into a named <div> and set the CSS for the child <a> accordingly at the very bottom of your stylesheet.

      Not elegant but should get you up and running until you track its location (could be coming from one of the perl scripts) and do it the more conventional way.....
      Thanks Jont.

      Since I started this thread, that's what I've ended up doing. Unfortunately it doesn't have the same behaviour as my other links when you roll over them (set with :hover stylesheets) but at least the link underline is the same colour as the other writing.

      In the meantime, could someone give me a clue as to where that <a> tag is coming from?

      Comment


        #4
        Hi Mark

        Have you had any joy in solving this? if not would it be possible for you to put up the code of the overall layout just to see if we can figure out where it is coming from..

        Kind Regards
        Kiran
        Kiran Chandran
        Technical Support - SellerDeck
        http://www.sellerdeck.co.uk/

        Further help can also be found at http://community.sellerdeck.com/forumdisplay.php?f=27

        Comment


          #5
          Hi Kiran,

          I haven't had any luck with it, other than doing what Jont suggested - and that was brute forcing it.

          Here's the code from the standard section page:
          Code:
          <actinic:block if="%3cactinic%3avariable%20name%3d%22IsNotPreviewMode%22%20%2f%3e" >
                   <!-- When logged in, this gives the company name, username and a login link -->
                   <div id="account"><actinic:variable name="NowServing" /><actinic:variable name="CurrentAccount" /><actinic:variable name="LogoutSimple" /></div>
                </actinic:block>
          <actinic:block if="%3cactinic%3avariable%20name%3d%22SectionLevel%22%20%2f%3e%20%3d%3d%200">
          As you can see, I've wrapped a <div> tag around the whole section with the id of 'account' - which I've set up using CSS. It's not ideal, but it works.

          The actual code for the link is summed up in:
          Code:
          <actinic:variable name="LogoutSimple" />
          But this variable injects the <a> tag from somewhere - but I couldn't find it in any of the obvious places, which leads me to believe that Jont is right: that it comes from one of the scripts. Which one, I don't know.

          There are also more of these tags around, where I can't find where the <a> link tags are coming from. Could they also be coming from the scripts?:
          • In the 'Please wait for your browser to forward you to the next page or click here' message that appears at the bottom of the shopping basket, when you've just added a product to your basket, or you're proceeding to the checkout.
          • The product name when you are in the view basket page.
          • The list of 'customers also bought' list at the bottom of the view basket list and the checkout page.


          Any help with tracking them down would be gratefully received!

          Comment


            #6
            Hi Mark

            Would it possible for you to create a desing snapsot and send it to me. You can create it through Design | Deploy Partial Site Design, if you can please send to kcsupport/at/actinic/dot/co/dot/uk .

            Regards
            Kiran
            Kiran Chandran
            Technical Support - SellerDeck
            http://www.sellerdeck.co.uk/

            Further help can also be found at http://community.sellerdeck.com/forumdisplay.php?f=27

            Comment


              #7
              Hi Kiran,

              I've found them!

              Some were in .pm files; which involved searching for "href" within the file, which yielded the html links, which I changed from:
              Code:
              <A HREF=
              to:
              Code:
              <a class='requiredclassname' href=
              Obviously before I changed any file I backed up the original just in case.

              In summary, here's the location of all the links I was after:
              • The login link is in the ACTINIC.pm file, which I found by trial and error.
              • The link to the product in the shopping cart is in the ActinicOrder.pm file, which I found in the AUG section 'Removing product hyperlinks from the shopping cart'.
              • The 'Please wait until your browser forwards you' links are in the text section of the Design menu.
              • The 'Also bought items' and 'Related products' shown in the cart are in the respective layout in the 'Shopping cart grid' layout.
              Last edited by Sadcase; 20-Feb-2008, 09:44 AM. Reason: Updating information and summarising

              Comment

              Working...
              X