Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Pro

 AfterLogic Forum : AfterLogic WebMail Pro
Subject Topic: Customize log off page for webmail pro v7 Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
zctr
Newbie
Newbie


Joined: 25 August 2013
Online Status: Offline
Posts: 2
Posted: 25 August 2013 at 11:45pm | IP Logged Quote zctr

Hello,
Please help me how to customize the log off page? webmail pro v7.
i found this link and followed:
http://www.afterlogic.com/forum/forum_posts.asp?TID=2355
but, doesn't work.
Back to Top View zctr's Profile Search for other posts by zctr
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6088
Posted: 26 August 2013 at 12:05am | IP Logged Quote Igor

Well, that page is quite old so suggestions posted there aren't going to work for v7 indeed. In current version, however, this is done in a really quick and easy way. In static/js/app.js file, locate line ~4724:

Code:
this.CustomLogoutUrl = '';


Supplying the URL you need to be used there should do the trick. Be sure to purge cache to apply changes.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
zctr
Newbie
Newbie


Joined: 25 August 2013
Online Status: Offline
Posts: 2
Posted: 26 August 2013 at 2:15am | IP Logged Quote zctr

Hello,
it still doesn't work.
Let's talk about " purge cache":
what i did is: empty the cache is browser;
               delete all the files in data/cache directory
Is there anything else i need to do?
Back to Top View zctr's Profile Search for other posts by zctr
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6088
Posted: 26 August 2013 at 2:22am | IP Logged Quote Igor

Sorry, looks like I was looking at the wrong direction. The proper way to do that is to add the following item to array defined in data/settings/config.php file:

Code:
return array(
     'labs.webmail.custom-logout-url' => 'http://your.domain.com/',
     ...
);


--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
aricci
Newbie
Newbie


Joined: 23 April 2014
Location: Canada
Online Status: Offline
Posts: 17
Posted: 23 April 2014 at 12:06pm | IP Logged Quote aricci

Does this still work? I tried it today and received an error. Has the code changed for use with the latest version of WebMail Pro PHP?
Back to Top View aricci's Profile Search for other posts by aricci
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6088
Posted: 23 April 2014 at 11:59pm | IP Logged Quote Igor

Yes, the approach still works, I've just checked that with the current version. Make sure the line is added correctly so that proper PHP syntax is maintained: array items need to be separated with commas, and there should be no comma after the last item. Simplest way is to put that line as first array item, you just copy it there the way it is.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide