Announcement

Collapse
No announcement yet.

Post login ../ links

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

    Post login ../ links

    Hi,

    Here's another poser to annoy you all (yes, that means you, Chris Dickens):

    I have index.html set up as my homepage - it lives above and beyond the acatalog folder, in which all my other html files are stored. Now, I've set up a new login page, which works fine for every link relative to the acatalog folder (contact.html, about.html, etc.). Unfortunately, linking back to the homepage (which used a relative ../index.html path) produces a garbled page with no CSS attached.

    Having checked the user guides and this forum, the only possible solution I found (after placing a copy of my CSS in just about every folder on the server) is this:

    "Linking from Other URLs
    Note: If you are using this code from outside the 'acatalog' folder then you will need to include a hidden form field of 'ACTINIC_REFERRER=' where the value is your 'Catalog URL' from 'Advanced | Network Setup'. For example:
    http://your.URL/cgi-bin/ss00000x.pl...r.URL/acatalog/
    and also
    <INPUT TYPE=HIDDEN NAME="ACTINIC_REFERRER" VALUE="http://your.URL/acatalog/">"

    But that doesn't really help me out. Unless I have implemented this fix incorrectly, it is not the solution I require. So...

    Ideas?

    Chris?

    Anyone?

    #2
    Hi there,

    Could you post a URL so we can see the problem?

    Just on the off chance, do you have:

    <Actinic:BASEHREF VALUE="NETQUOTEVAR:BASEHREF"/>

    Within the <head> tags in your primary template?
    Regards,

    Toby Blanchard

    Comment


      #3
      Hi Toby,

      <Actinic:BASEHREF VALUE="NETQUOTEVAR:BASEHREF"/>

      Is in the <head> tags of my primary template(s), which becomes:

      <Actinic:BASEHREF VALUE="http://www.url.com/acatalog/"/>

      In the generated pages.

      Unfortunately, the website owner doesn't want a link posted anywhere while the site is still in development stage. I'm just the designer, I have my orders ;-)

      However I can add further information to this problem. To summarise, I can login without trouble and navigate to any relative link within the acatalog folder, but when following ../index.html none of the images are displayed and no CSS is attached. This is the path for the broken image links:

      http://www.url.com/cgi-bin/acatalog/image.jpg

      Obviously this isn't where the acatalog folder lives, so that's the problem. I just need to know where this might be going wrong. I assumed that the search script was unable to parse the ../index.html link correctly. I've tried a few suggestions from Community & KB - no luck so far.

      I'm almost tempted to duplicate the acatalog folder in the cgi-bin ;-)

      Any ideas?

      Comment


        #4
        My next area of investigation would be network settings making sure all the paths are correct.

        (which used a relative ../index.html path)
        Could you hard code a full URL?
        Regards,

        Toby Blanchard

        Comment


          #5
          Toby,

          Well, yes, but an absolute link would force logout... and the idea is to keep users logged in both within and outside of the acatalog folder.

          Network settings seem fine. Everything works except for this, so it's surely just a case of the search script not being able to correctly parse ../ or ./ - is there a way of feeding an absolute link through this script so that members remain logged in?

          What is the standard Actinic procedure for taking logged-in customers in and out of the acatalog folder?

          Cheers,

          DB

          Comment


            #6
            absolute link would force logout
            Of course it would, better reboot brain


            is there a way of feeding an absolute link through this script so that members remain logged in?
            I'll check this with development.
            Regards,

            Toby Blanchard

            Comment


              #7
              Toby, did development respond yet?

              Comment


                #8
                Not yet I'm afraid.
                Regards,

                Toby Blanchard

                Comment


                  #9
                  Is your home page generated by Actinic or just built from scratch?

                  If it is generated the link http://www.URL.com/cgi-bin/bb00000x....=../index.html shouldn't cause you any problems.
                  Regards,

                  Toby Blanchard

                  Comment


                    #10
                    The home page is built from scratch, but all the Actinic snippets should be there. In saying that, I should double-check.

                    BTW Login works fine for all acatalog pages as I've already mentioned, but can you confirm that this url format is correct:

                    http://www.url.com/cgi-bin/bb000001....=somepage.html

                    Because your:

                    http://www.URL.com/cgi-bin/bb00000x...E=../index.html

                    Looks a lot cleaner. Could this have to something to do with the problem? I thought the referrer bit was fine but on second look it is parsing twice.

                    [EDIT] nm, I see the E= bit is condensed for postings [/EDIT]

                    Comment


                      #11
                      Everything that is in the Actinic generated pages is in the home page, in the sense of making it work anyway.

                      I'll send an email with the html

                      Comment


                        #12
                        Hi,

                        New problem!

                        I can now navigate in and out of the acatalog folder while remaining logged in. However, to enable the stylesheet to run on the homepage (while logged in) I have to create the path ../acatalog/style.css in my index.html page. That works fine online, no problems whatsoever.

                        The problem is now in Developer! I receive a "the stylesheet contains an invalid path"... "error generating HTML" with the ../ path used for the stylesheet. This error pops up all the time making life very difficult.

                        Now when the path to the stylesheet is simply "style.css", I receive no problems in Developer but online the script searches for: "acatalog/style.css" and obviously can't find it.

                        How can I get around this?

                        Comment


                          #13
                          Dybbuk,

                          Any chance you could post the actual url's you are using to navigate in and out of the acatalog, would save me some major headaches!

                          Dave
                          Cheers

                          David
                          Located in Edinburgh UK

                          http://twitter.com/mcfinster

                          Comment


                            #14
                            Aargh, my head! Found the solution eventually...

                            Dave, what you need to do first and foremost is ensure that you have the following line in your primary templates:

                            <Actinic:BASEHREF value="NETQUOTEVAR:BASEHREF"/>

                            and...

                            <Actinic:BASEHREF value="http://www.url.com/"/>

                            in your homepage. Very important!

                            The link from the acatalog pages to the homepage should be along the lines of ../index.html

                            The link from the homepage to the acatalog pages should be ../acatalog/testpage.html

                            The CSS in your index.html file should be relative "style.css".

                            That should work!

                            DB

                            Comment


                              #15
                              Dybbuk,

                              Sorry I am being dense here. Can you just type out the full link that should be coded (along the lines of www.mysite.com/blah_blah_blah). My site is live and I don't want to kill it for any longer than I need to if possible by me being stupid! I have tried so many combinations now and am completely confused!

                              Dave
                              (Who now owes you one pint of virtual beer!)
                              Cheers

                              David
                              Located in Edinburgh UK

                              http://twitter.com/mcfinster

                              Comment

                              Working...
                              X