Jump to content


- - - - -

Using exit URL won't work


13 replies to this topic

#1 goochat

    Junior Member

  • Members
  • PipPip
  • 12 posts

Posted 26 August 2011 - 06:54 AM

I have following problem: the exit URL won't be called. I tried to set it by Control Panel and by script code. In Control Panel I pasted the URL which definitely works into "Settings" -> "Site Integration" -> "Site Links" -> "Exit Page" and set "Enable Exit URL" to "Yes". Didn't help. Then I added the exit URL as code parameter in the same way it is described in the knowledge base. See example below for the JS code.
    	<script type="text/javascript">/*<![CDATA[*/

		var addonchat =

		{

			server:11,

			id:322660,

			width:"800",

			height:"600",

			language:"de"

		}


		var addonchat_param =

		{

			autologin: true,

			username: "",

			password: "",

			mycolor: "#0000FF",

			subroom: "gooLounge",

			subroom_single: false,

			url_exit_enable: true,

			url_exit: "http://www.goolive.de/chat/leave.php?user_id=204233"

		}

	/* ]]> */

	</script>

	<script type="text/javascript" src="http://client11.addonchat.com/chat.js"></script>


Username and password has been deleted by me while editing for security reasons. The login works and setting colors and rooms work too. But the exit URL won't called when leaving the chat.
I tried it with settings only in Control Panel, exit URL only by code parameters and both at once. Nothing worked and I verified that there was no remote request to the given URL.
Anyone else with the same problem? Or any solutions or ideas?

#2 Greg

    Administrator

  • Administrators
  • 2510 posts

Posted 26 August 2011 - 09:52 AM

Hi,

Are you using the web login script? Everything there looks just fine. I too have been using the web login script with no problem and my exit URL works just fine. I pasted the URL listed in your script and got a blank page with the favicon in the address. Are you not redirected to anything except the logout screen?

#3 goochat

    Junior Member

  • Members
  • PipPip
  • 12 posts

Posted 26 August 2011 - 10:02 AM

Hi Greg :-)

I'm using RAS 2.1 for logins. This works fine. The script which is called when exiting makes no outputs - that's right. It just does some database requests. Do you have an existing site where you use the exit URL. I would like to compare it to my script.

Thanks in advance.

#4 Greg

    Administrator

  • Administrators
  • 2510 posts

Posted 26 August 2011 - 10:13 AM

 <script type="text/javascript">/*<![CDATA[*/

   var addonchat = {

      signed:true, 

      server:"X", 

      id:"XXXXX", 

      width:"650",

      height:"400", 

      language:"" 

}

  var addonchat_param = {

      username: "Greg",

      password: "XXXXXX",

      autologin: true,

      iconsize: 0,

      url_exit_enable: true,

      url_exit: "http://google.com"

 } /* ]]> */</script>

<script type="text/javascript"

   src="http://clientX.addonchat.com/chat.js"></script><noscript>

   To enter this chat room, please enable JavaScript in your web

   browser. This <a href="http://www.addonchat.com/">Chat

   Software</a> requires Java: <a href="http://www.java.com/">Get

   Java Now</a>

</noscript>
The above is the code as it appears (minus a few specific details ;) ) after I login using the web login script. There isn't much basic difference.

It does however utilize the code from v9.0 where I see some difference in yours like signed: true which is essential for copy/paste functions.

:)

EDIT:
Hmmmm. I want to thank you for starting this thread as I see that the language was not listed in the code. Evidently I made a mistake while updating the old web login scrip to the one I am using Web Login 2.0 (not yet available). I've made the correction and now need to make it in my archive before distribution.

Edited by Greg, 26 August 2011 - 10:20 AM.


#5 goochat

    Junior Member

  • Members
  • PipPip
  • 12 posts

Posted 26 August 2011 - 10:23 AM

Thank you, Greg.
The value for signed Java applets has been set in the Control Panel. As far as I know it makes no difference where to set it because values retrieved as JS code parameters just overwrite values set in the Control Panel. So we got no copy and paste issues and all works fine. But I will make a try - maybe it's a bug. Any further suggestions?

#6 Greg

    Administrator

  • Administrators
  • 2510 posts

Posted 26 August 2011 - 10:29 AM

goochat said:

Thank you, Greg.
The value for signed Java applets has been set in the Control Panel. As far as I know it makes no difference where to set it because values retrieved as JS code parameters just overwrite values set in the Control Panel. So we got no copy and paste issues and all works fine. But I will make a try - maybe it's a bug. Any further suggestions?
You really should set the signed parameter in your chat code. As for your exit link as I mentioned in my initial replay the link http://www.goolive.d...?user_id=204233 takes me to a blank page. When you logout of the chat, are you directed anywhere other than the page your chat would have been on?

#7 goochat

    Junior Member

  • Members
  • PipPip
  • 12 posts

Posted 26 August 2011 - 10:37 AM

No, there is no redirection. Now I'm little bit confused. As far as I know the exit URL is called by the AddonChat servers to initiate something like garbage collection. In the same way like the remote authentication script (RAS 2.1) is called. The chatting user won't see anything. Am I right or is there any mistake in my thoughts?

I#M going to test the signed parameter in a view minutes and will post the result immediately.

#8 Greg

    Administrator

  • Administrators
  • 2510 posts

Posted 26 August 2011 - 10:49 AM

If you are using the exit URL in the parameters of your code it isn't necessary to set an exit URL in your control panel. I took a look at the exit URL in your control panel and saw that you used user_id=$srcuid where $srcuid will generate the user id. I assume that is what you have in your chat code as opposed to the number listed. If the user ID 204233 existed I would assume that I'd see some content to the exit page unless I must first be a logged in member to your site.

#9 goochat

    Junior Member

  • Members
  • PipPip
  • 12 posts

Posted 26 August 2011 - 11:18 AM

You are right, Greg. It isn't necessary to activate the exit url in the Control Panel when you are serving the exit URL as code parameter. The activation of the exit URL in the Control Panel is the result of my tests described in my first post (1. exit URL onyl as code parameter 2. exit URL only by Control Panel 3. exit URL as code parameter AND by Control Panel). It made no difference. The script called by the exit URL won't do any outputs regardless of being logged in or not.
Back to my last question: Will the exit URL shown to the chatter when exiting or is it just a URL called by the AddonChat system to initiate any actions on my webserver?

Edit: Using signed parameter and deleting subroom_single parameter didn't help.

#10 Greg

    Administrator

  • Administrators
  • 2510 posts

Posted 26 August 2011 - 11:38 AM

Would you mind submitting a support ticket to support@addoninteractive.com? Please include your SC account number, a link to your website and a username/password to your site.

The exit URL is called up by our server as set by you in either parameter or control panel. I'm a bit baffled why it isn't working. I even thought it might be a language bug so I even changed mine to "de" for testing and as I expected, the exit URL worked so it's not a bug in the language setting.

#11 goochat

    Junior Member

  • Members
  • PipPip
  • 12 posts

Posted 26 August 2011 - 11:52 AM

I already have an open ticket but get no answers anymore. It was a suggestion by Chris to use the exit URL for tracking users who are leaving the chat (there were some more issues). Took me half day to do all the changes in our code because we do a lot of unusual things (e.g. invitations with automatic login when the other user joins the chat) and all is working fine except the exit URL. Driving me crazy now :-(
Thanks for your help, Greg.

#12 Greg

    Administrator

  • Administrators
  • 2510 posts

Posted 26 August 2011 - 12:28 PM

goochat said:

I already have an open ticket but get no answers anymore. It was a suggestion by Chris to use the exit URL for tracking users who are leaving the chat (there were some more issues). Took me half day to do all the changes in our code because we do a lot of unusual things (e.g. invitations with automatic login when the other user joins the chat) and all is working fine except the exit URL. Driving me crazy now :-(
Thanks for your help, Greg.
Chris just made a reply to your current ticket in regard to this issue asking for login credentials. I did find an old ticket in our system where I had been assisting you. I was able to login but while there I did not see the logout image in your tool bar.

:)

#13 goochat

    Junior Member

  • Members
  • PipPip
  • 12 posts

Posted 26 August 2011 - 12:55 PM

Chris logged in our chat and found the same "solution", Greg. The exit url will only be called when users are kicked or use the logout button. In our chat there is no logout button. Users are logging out by closing the popup window. I will make a JS based workaround so that the exit URL will be called when the window is closed. But I am a little bit surprised why the exit URL won't be called when leaving the chat without using a logout button. I think this is worth to change. Consider this as feature request ;)
Many thanks to you for trying to help me, Greg. And many thanks to Chris, too.

I would like to mention, that the articles in the knowledge base should be more clear. There is no hint that the applet parameters are out of date. Or that the exit URL will only called when you use the logout button ;) Some of the links in the articles are broken (two or three in the description of code parameters - see links in the last section). Your documentation isn't that good but your support by email, forums and live is great. Thanks again and I wish you a nice weekend :)

#14 Greg

    Administrator

  • Administrators
  • 2510 posts

Posted 26 August 2011 - 01:12 PM

You're very welcome :)

The exit URL is more of a redirect as it will take a moment to refresh so it's doubtful that will change. Closing the chat page is not exactly exiting the chat page.

As for our knowledge base articles, they are in need of updating. Especially since the release of v9.0. The chat link code not being the least of updating. It's because of the updated chat code that necessitated me to re-write the Web Login script. It's not a popular script (to the best of my knowledge) but one that is used by a number of our clients. As stated, your creation of this thread made me aware of an error I made in updating the script.

Glad things are getting worked out and thank you for your kind words. We're always here for you when you need us.

:)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users

Antm full version episodesCorel paintshop 13 full versionNokia maps full versionAoc buddy full versionFull version 10 days djvirtualFree windows xp full version downloadVirtual villagers full versionJewel quest 2 full version 17.99Full version daggerfall downloadFull version of polar bowler