Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Can't login directly to vanilla with Wordpress account and vice versa
Gogito
New
So, I've implemented vanilla and wordpress sso and login from wordpress site then access vanilla seems to be working.
But if I access the vanilla forum then login there then it won't work unless I've already logged with the account once.
And also, if I logged into vanilla and move back to wordpress site, I'm not logged into Wordpress.
What I'm looking for is perfect log in process.
Like: login and out only once and seamlessly between both. Can anyone guide me ?
0
Comments
The trick is to force all logins through your WP site and then just redirect as appropriate.
For example, on the WP side, make your forum link
http://www.example.com/wp-login.php?redirect_to=http://www.example.com/forum/entry/jsconnect?client_id={JSCONNECT_ID}&Target=%2F
when they are not logged in. If they are logged in, just usehttp://www.example.com/forum/
.Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
A followup from the original author
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
So, from what I can see, the trick you suggested is to force user to log in before they can access the forum ?
What I don't like is I want users to be able to view the forum without needing to sign in.
And also, can you suggest some ways to make log out and register work smoothly too ?
Redirect the signout from Vanilla to your WP logout. Or vice versa.
You can change what URL is used for the sign-in, sign-out, and register links with the following configuration options:
You can put absolute paths in there to your WP install.
BTW, these options need to be placed in
/conf/config.php
.Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Where is that /conf/config.php file ? Is it in my wordpress install or the vanilla folder ? I'm still kinda new to all of this so sr if I asked anything so simple.
conf folder is In the root of the folder where you installed vanilla
config.php is in the conf folder.
http://vanillaforums.org/discussion/28420/faq-what-frequently-asked-questions-would-you-like-to-see-in-a-faq-help
http://vanillaforums.org/docs/folderstructure
Vanilla Folder Structure
http://vanillawiki.homebrewforums.net/index.php/Folder_Structure
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
I just wanted to add that setting
$Configuration['Garden']['Registration']['Method'] = 'Connect';
in your/conf/config.php
file should forward any sign in attempt from Vanilla to your connected software.Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
What is the url from Wordpress did you mean ? I can't seem to find it ? Is it the link to the form ? And can you suggest a way to redirect back to the current forum page from those link ?
Use something like
http://www.example.com/wp-login.php?redirect_to=http://www.example.com/forum/entry/jsconnect?client_id=
append your jsConnect client id to the end of that.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
I've just notice something: I checked out this video from you guys http://www.youtube.com/watch?v=mm7TBtJeP5A
And it seems that both the login and register process for you guys are different from mine. When I click on login, I don't get taken to the wordpress login but a popup appear to let me login and also for the register. I'm using the Bootstrap theme. Maybe this is the problem. Anay suggestion. What I wanted is to be exactly like that video that you guys posted.
And also, if I switched the connect method to SSO only, the register buttton disappear
That is what the Sign In- and Register URL are for. Have you followed the steps in the video and the jsconnect documentation?
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
Yes, i did but it doesn't seems to work. Clicking on them show the vanilla login and register.
Post, what's in your config.php for:
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
That's weird, I can't see those line anywhere.
Then you need to read hgtonights post again, you need to set these to your wordpress install.
Didn't check, but I'm pretty sure you can also set those on the jsconnect setting page (/dashboard/settings/jsconnect)
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
Yes, i did set those in jsconnect but it didn't work apparently. I'll try add them manually now. Just curious, I'm using the Wordpress plugin, are the links in the plugin the ones I need to copy to ?
Well, this is what I have now
But it still doesn't work. Any ideas ?
I tried install the new version in github and adding those line but still it's not working. Any ideas ?
Have you tried this?
Also, your redirect after registration leads to a 404.
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
I don'don't understand what that means? Can you make it clearer? ?