View Full Version : Logout - how to change the page
Paul Williams
29-Apr-2003, 11:20 AM
Is there any way to change the page that the logout link takes the customer to? It currently directs to acatalog/index.html.
cdicken
30-Apr-2003, 09:55 AM
This is a Perl hack but it does seem to work.
In your 'Site1' folder, open AccountsScript.pl and search for:
sub CaccLogout
a little way underneath it search for the code:
#
# Generate redirect page
#
$sHTML = "<HTML><HEAD><META HTTP-EQUIV=\"refresh\" CONTENT=\"0; URL=".$sBaseFile."\"></HEAD><BODY></BODY></HTML>";
change it to:
#
# Generate redirect page
#
$sHTML = "<HTML><HEAD><META HTTP-EQUIV=\"refresh\" CONTENT=\"0; URL=http://www.actinic.co.uk/\"></HEAD><BODY></BODY></HTML>";
Obviously replacing http://www.actinic.co.uk/ with your own custom URL.
Actinic is not able to provide any detailed support for script changes made. If you find that there is a problem, an original copy of the script can be found within the 'Original' folder in your installation. Copy this into your site folder.
Paul Williams
01-May-2003, 08:12 AM
Thank you for your solution - I will give it a try!
bundio
21-Apr-2005, 03:37 PM
I have looked at he perl code in version 7. (Perl newbie). And the code to direct a logout landing page has changed. I see its for the good as the html isn't hard coded. Gu how do I change the hash element g_pSetupBlob{'HOMEPAGEURL'}, or where is it set I can't find a reference to it anywhere else. Back to being a perl newbie and trying to grasp hashes and trying to fix the page.
All I really want to do is add a prompt to the log out page that says "you have successfully logged out"
Thanks
Dan
Nadeem
25-Apr-2005, 10:59 AM
Hi Dan,
I see where you are coming from, its looks like version 7 script had changed to allow a variable rather than printing out the html.
I will ask the development team if they can help and will post here once i have found some information.
Kind Regards
Nadeem
26-Apr-2005, 08:16 AM
Hi Dan, just got some information back from the development team.
Edit AccountsScript.pl
Search for 'sub CaccLogout'
Scroll down to...
#
# Generate redirect page
#
my @Response = ACTINIC::BounceToPagePlain(0, undef, undef,
$::g_sWebSiteUrl, $::g_sContentUrl, $::g_pSetupBlob,
$sBaseFile, \%::g_InputHash);
In the above, the zero (0) indicates no bounce delay in seconds. Change
this to a suitable delay period to allow reading of the message. Setting
it to -1 will prevent the page from bouncing.
Change the first 'undef' to the desired text message, this can include
HTML.
The above will display a page with just the 'message' text. For a better
appearance, change BounceToPagePlain to BounceToPageEnhanced.
e.g.
my @Response = ACTINIC::BounceToPageEnhanced.(5, "You are now logged out",
undef, $::g_sWebSiteUrl, $::g_sContentUrl, $::g_pSetupBlob,
$sBaseFile, \%::g_InputHash);
The above will display a formatted page for 5 seconds with the message
"You are now logged out".
Kind Regards
bundio
27-Apr-2005, 04:28 PM
This has satisified my client but I would still like to be able to send users to a page that telss them that they logged out, not just the interstitial page.
But this works for now.
Thanks
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.