View Full Version : Post login ../ links
Dybbuk
17-Sep-2004, 07:06 PM
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?
Toby B
20-Sep-2004, 12:20 PM
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?
Dybbuk
21-Sep-2004, 06:49 PM
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?
Toby B
22-Sep-2004, 01:39 PM
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?
Dybbuk
22-Sep-2004, 03:12 PM
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
Toby B
22-Sep-2004, 03:22 PM
absolute link would force logout
Of course it would, better reboot brain :rolleyes:
is there a way of feeding an absolute link through this script so that members remain logged in?
I'll check this with development.
Dybbuk
23-Sep-2004, 08:44 AM
Toby, did development respond yet?
Toby B
23-Sep-2004, 09:21 AM
Not yet I'm afraid.
Toby B
23-Sep-2004, 02:31 PM
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.pl?ACTINIC_REFERRER=http://www.URL.com/cgi-bin/bb000007.pl&PRODUCTPAGE=../index.html shouldn't cause you any problems.
Dybbuk
23-Sep-2004, 03:33 PM
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.pl?ACTINIC_REFERRER=http://www.url.com/cgi-bin/bb000001.pl&PRODUCTPAGE=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.
nm, I see the E= bit is condensed for postings
Dybbuk
23-Sep-2004, 03:41 PM
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
Dybbuk
23-Sep-2004, 06:28 PM
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?
dave_finlayson
23-Sep-2004, 06:53 PM
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
Dybbuk
23-Sep-2004, 07:19 PM
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
dave_finlayson
23-Sep-2004, 07:49 PM
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!)
Dybbuk
23-Sep-2004, 08:21 PM
Dave,
The correct url format was posted by Toby from Support in this thread:
http://www.URL.com/cgi-bin/bb00000x...E=../index.html (where x refers to your unique script # and ...E= is .pl?ACTINIC_REFERRER=http://www.URL.com/cgi-bin...)
However, it's not all that important providing the relative links run through the script. The instructions posted should enable you to do this... maybe run it on a testpage that sits outside of your acatalog folder first, but don't forget to have a relative link to it from an acatalog page.
DB
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.