PDA

View Full Version : Redirect login


Christylh
03-Oct-2003, 04:45 PM
Hi!

Can anyone give me the simplest way to redirect our login page to go to a different page other than the index/catalogbody?

The answer on the Knowledge Base is a bit undecipherable to me, for example it ends with:

"Just remove the &NOLOGIN=1 from the end of this URL and customers be shown the login page before then going onto the selected section."

Is this a complete sentence?? :confused:

TraceyG
06-Oct-2003, 12:48 PM
Hi Christy,

If you do what the knowledgebase article says, then copy the link it produces once you have uploaded and remove the '&NOLOGIN=1' part, you can use that as your new login link.

For example, I have just tried this out on one of our default stores and want people to go straight to the 'Products Built from Add-ons' section once they login. So, I created the test fragment and made the link to the above section and then uploaded my store. When I viewed the source I saw:

<A HREF = http://localhost/cgi-bin/ss000001.pl?SECTIONID=Products%5fBuilt%5ffrom%5fAdd%5fOns%2ehtml&NOLOGIN=1 TARGET="_self">Login</A>

Now I can use this link to hard-code my own 'Login' button on my homepage that will take my logged in customers to the 'Products Built from Add-ons' section. Removing the '&NOLOGIN=1' part means that the login page will be displayed when the customer clicks on the link.

I hope this makes it clearer.

Christylh
06-Oct-2003, 02:57 PM
Tracey,

I just gave it a shot and I find that my ability to make a fragment is greyed out in the menu. What do I do now?

Thanks!

Christy

Sly9er
09-Oct-2003, 06:07 AM
If your site is on UNIX, I know that you can put a
redirect line in the .htaccess file of any directory.
I have done it this way for one of my clients.
I have it set up to where the tell their customers
to go to:
http://life-line.org/catalog
and the .htaccess file redirects the "catalog"
request to "acatalog".

It looks like this inside the .htaccess file:
Redirect /catalog http://life-line.org/acatalog
----------------------------------------------------------------
I also have another one like this:
For: http://life-line.org/catalog/contribute
The .htaccess redirect goes like:
Redirect /acatalog/contribute http://life-line.org/acatalog/If_You_Love_LIFE.html
----------------------------------------------------------------
As you can see, the first redirect example always
handles the "catalog to acatalog", and the second
example always handles the "contribute" redirect.

Notice how the second example has "acatalog" in it.

You must be very care with this though.
Try to think of what is going to transpire tens steps
ahead, or in other areas of the site as a result of
your "redirect".

Copy these examples into note pad with word wrap
off for a clearer example.

Hope these examples help you :)

TraceyG
09-Oct-2003, 08:27 AM
Hi Christy,

The fragment option will be greyed out if you are not using our brochure pages. Create a new brochure page first and then you will be able to add a fragment.

Christylh
09-Oct-2003, 05:37 PM
Tracey,

My option to choose New Brochure Page is also greyed out. I cannot activate in Design | Options either. What now?

Christylh
09-Oct-2003, 05:39 PM
John,

I will have to contact our ISPs web developer to get some assistance with the .htaccess file [it has been a very long time since I've used Telnet!].

I will try the option though, thanks for your attention to my problem! :)

Christy

TraceyG
10-Oct-2003, 10:39 AM
Hi Christy,

Can you tell me which version of the software you are using (Help | About) and also whether it is 'Catalog', 'Business' 'Order Manager' or 'Developer. Also, do you have any options unchecked in 'View | Business Settings | Options | Allow on this PC' ? I haven't been able to get my 'New Brochure Page' option to grey out.

Christylh
10-Oct-2003, 02:32 PM
Tracey,

Sorry about that, I should have told you earlier. We're using
Developer 6.1.3.1.0.0.DHBA. No options are unchecked in my business settings.

Thanks again!

Christy

cdicken
13-Oct-2003, 08:27 AM
Christy

Highlight the green Online Catalogue icon in the Actinic tree, then do a right click. 'New Brochure Page' should be one of the options in the right-click menu.

sametch
23-Oct-2003, 01:08 PM
I have read all the threads in this posting twice and searched the knowledge base, but I am still confused.

I have a Actinic Business site that forces users to login before they attempt to login.

I know the page I want them to be directed to after logging in its called "specials.html".

I can do the test thingy as defined in knowledge base article http://knowledge.actinic.com/users/kadmin/acatalog/Knowledge_Base_General_Design_Options_94.html#a391
But I don't know what to do with the URL I obtain.

I was hoping for a box somewhere in Actinic that said words to the effect "after login goto URL". But I cant find one. I am happy to hand code the login file if thats necessary, but a bit concerned that if the page changes name, the login will redirect to a dead page.

Can anyone please advise what exactly I need to do, to go somewhere other than the default page after logging in.


:confused:

James M
27-Oct-2003, 12:03 PM
sametch

You could try this Perl Script hack if you like, the only thing about applying this, would be it would work for Registered and Unregistered customers...

If you edit AccontScript,pl

Locate sub CAccPrintPage

Scroll down to...

my ($sFirst,$sLast) = split("#",$sProductPage);

Immediately before this line insert...
if ($sProductPage eq $$::g_pSetupBlob{'CATALOG_PAGE'} )
{
$sProductPage = "specials.html";
}

Links from the brochure pages to sections or products will go through the login page and return the requested section/page.

Selecting the Shop link from the brochure page will take the customer through login to specials.html.

If an unregistered buyer enters the shop they will initially get
specials.html, if they subsequently login they will
remain on the same page, i.e will not be taken to
specials.html.

Alternatively, if that is not the affect you want, then try Tracey's suggection at the top of this page.

James
________
VAPORIZER-INFO (http://johan-luis.tumblr.com/)

Christylh
27-Oct-2003, 07:13 PM
James,

Your script tweak worked like a charm! :D

Is there a similar one that can do this for the catalogbody.html page?

Thanks!

Christy

Christylh
27-Oct-2003, 07:16 PM
James,

Errk...umm, well I thought it worked like a charm. I chose one page of the catalog to enter into and I was hoping the discount code would extend throughout the entire catalog.

Any way to make it for the whole thing instead of one .html page?

Thanks again!

Christy

James M
29-Oct-2003, 08:14 AM
Hi Christy

What do you mean by the discount code? Could you let me know the URL of the test site, the www link above goes to a business site but there is no login required.

Im not too clear what you are trying to do here.

James
________
Park Beach Condo Pattaya (http://pattayaluxurycondos.com)

Sly9er
29-Oct-2003, 02:26 PM
Hi Christy,
Did you look into tryig the .htaccess file like I suggested.
It sounds like your having more problems then you had
to begin with.

Christylh
29-Oct-2003, 05:48 PM
James,

I'm very sorry I wasn't clear. This problem concerns our second website, Uniform Corner (http://www.uniformcorner.com)

We have a generic code that will give anyone who logs in 10% off our entire catalog.

Until the new version of Developer comes out which will make mass discounts easier, the customer right now has to sort of bumble through it when filling out info in the cart area, but it does work sufficiently.

Tryout username: store password: promo

I don't want it going to our catalogbody.html, but to this page (http://www.uniformcorner.com/~uniformc/acatalog/printtops.html), however I want the discount to extend to all items on the site.

Thanks again!

Christy

James M
30-Oct-2003, 02:22 PM
Christy

It would probably be a lot easier if you set up the 10% discount as a Price Schedule within Actinic, and the gave all registered customers this Price Schedule, giving everyone that logged onto your site a 10% discount.

James
________
Ecigarette forum (http://www.ecigarettes123.com/)

Christylh
30-Oct-2003, 04:04 PM
James,

The 10% discount is set up as a price schedule within Actinic. It works well except for I am unhappy with the page the customers reach when they login.

Christy

Christylh
30-Oct-2003, 04:10 PM
John,

I have had trouble getting support from my ISP on alterning the .htaccess file, but am still trying! :)

Christy

Sly9er
30-Oct-2003, 07:55 PM
Hi Christy,
Do you have FTP access to your web server?
I seriously recommend pursuing this method
of redirect.

It is so much easier to write one line of code
in the htaccess file, rather then do all the
mods people are recommending.

I'm sure those mods would work but why
go through such a big hassle.
I use redirects all the time for basically all
of my clients in one way or another.

I am assuming that your site is on a UNIX
server... right? If it isn't, never mind what I
am saying here. Otherwise... I wish you a
speedy solution to your problem.

garyhay
30-Oct-2003, 09:35 PM
I have read all the posts in this thread at least twice and it has got me really confused.

Copy the code required to login to an HTML file and call this file whateveryoulike.html

Now create the login button or use the one you have to link to whateveryouwant.html

OR

am I missing something

p.s. The .htacces file is much neater and easier than hacking scripts to death

James M
31-Oct-2003, 10:45 AM
Hi Christy

I created a basic logon from the home page as described in the Knowledge Base.

When clicked, it will take you to the Logon page, which you then enter you Username - Test, and Password - Test.

I have made it so it takes you to the page of my choice when loging on - 'Products with optional extras'.

Please take a look http://barlc09.users.netlink.co.uk/james/index.html

Once logged in, the 10% discount that you have allocated to registered customers will apply throughout the site.

I found that this works fine.

James
________
I PEN VAPORIZER (http://vaporizer.org/reviews/)