1)how should JsConnect behave when a user has already signed into my website and then clicks on a link from my website to go to mywebsite.vanillforums.com
2)when the user directly goes to mywebsite.vanillaforums.com and clicks on the Sign in with doughmain button
Comments
2) Your signin page needs to have the ability to redirect back to the forum. Most sign in pages do this with a querystring parameter such as ?redirect=. If you have this then you can specify it in your jsConnect settings with ?redirect={Target}. jsConnect will replace {Target} with the correct url.
<script type="text/javascript" src="http://doughmain.vanillaforums.com/plugins/embedvanilla/remote.js"></script>where should I use http://doughmain.vanillaforums.com/entry/jsconnect?clientid=2055217326 ?
2) I have the param set as redirectTo rite now; is it possible to use ?redirectTo={Target} instead of ?redirect={Target} ?
2) Yes, you can use redirectTo={Target}. We just replace {Target} with the appropriate url.
As far as I understand; when a signed in user clicks on the "http://doughmain.vanillaforums.com/entry/jsconnect?clientid=2055217326" link jsconnect calls the authenticate url from the settings to get the json string and then logs in the user in mysite.vanillaforums but in the case of embedded vanilla forums the forum is loaded in one of my website pages with the script: So how can I tell jsconnect know when to call the authenticate url?
#/entry/jsconnect?clientid=2055217326after the url on your containing page.I'll give this a try on my localhost since it looks like your site is jsConnecting to your own localhost and confirm that it works.