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.
Separate login page

Hi !
I'm trying to setup a website with Vanilla as a forum and I'd like SSO. As I am building the site from scratch, I'd like to use Vanilla's login system.
The problem is I am unable to login if I am in / and Vanilla is in /forum. I think the problem is the TransientKey, but I'm unable to be sure if it's really this.
Does somebody has an idea ?
thanks a lot !
0
Comments
No, the TransientKey only protects you from CRSF attacks:
http://vanillaforums.org/entry/signout
Without the TransientKey I could've tricked you into logging yourself out of this forum.
edit: for some reason, I can actually log myself out with that link... that's weird.
To use a Vanilla Session on a seperate page, you need to either:
If you are building your site from scrath anyway, you could also build it entirely on the garden framework.
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
Thanks a lot for this quick answer ! I'll look at Glue's work !
I've already used the snippet when the user is already logged in, the problem is when it is not ;
Thanks again
If you are building the site from scratch and want to use Vanilla's login system, just build your application on top of Garden.
It is set up for standard MVC development with the user, profile, activity done for you.
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.
Hey ! Thanks hgtonight, that's what I'm thinking to do now, but I can't find proper documentation for creating an app with garden (I understood it should be placed in the applications folder of the vanilla forum but not really much more.
Could you point out a tutorial or something ? Most links are not up to date anymore.
Thanks !
look at http://vanillaforums.org/addon/browse/applications
that's pretty much what everyone does, look at examples.
also you can look at conversations. it is an app
look at skeleton as well, and read the comments in the files
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
@Tellendil I am not sure what type of functionality you are building. If you are just looking to have some static pages, check out the Basic Pages application: http://vanillaforums.org/addon/basicpages-application
Are you familiar with Model-View-Controller (MVC)? If you are, all your controllers are placed in the
/applications/yourapp/controllers
and extendGdn_Controller
. Your models are placed in/applications/yourapp/controllers
and should extendGdn_Model
. Views are placed in/applications/yourapp/views
.I think the official documentation does a pretty good job of explaining how the framework works.
Feel free to ask questions if you get stuck.
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.
@hgtonight Thanks a lot !
I'm not quite familiar with it, but I know the theory. I found hard to understand the frameworks' code and most things were not quite up to date on tutorials about it, but I hadden't read vanilla's doc for it, I was searching garden's doc. This will indeed help !
Maybe you can just help me for one last important thing which disturbs me with vanilla : which view page do I need to modify to change the login, which I don't like at all (redefining the html, I want a nice bootstrap's modal instead of this overlay), I searched but did not find it.
Thanks a lot for your help, this...well... helps a lot
The view is in applications/dashboard/views/entry/signin.php
But modifying that won't help you with the popup.
I'd instead try to copy that over from the bootstrap theme, which has adapted the popup to look like the bootstrap modals:
https://github.com/kasperisager/vanilla-bootstrap/blob/master/less/components/modals.less
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
thanks a lot ! I'll look at it