Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Anyone working on WordPress integration?

edited August 2006 in Vanilla 1.0 Help
I read an article posted at devlounge.net however it still doesnt solve the problem of integrating logins. Will this be possible ?

Comments

  • edited August 2006
    The devlounge article was about intergrating vanilla into the design of wordpress, not the actual coding of wordpress. Its definitely possible, but its up to those who contribute to the lussumo community to work it out. I would refer to this conversation, which you could have found by search for wordpress in our forums. http://lussumo.com/community/discussion/1833/integration-with-wordpress/#Item_37
  • pbearpbear New
    edited August 2006
    Along with the above discussion, I think the answer might also be squeezed out of here:
    How would I detect someone was logged in on a non-Vanill page?
    How is "People" supposed to work?

    And at WordPress .com .org find out where their database matches up:
    through their Database Description and here's one on WP Cookies.
  • don't forgot this one: http://lussumo.com/community/discussion/3240/#Item_2
  • I'm working on integration into a non-wordpress site. It's going well so far. I think the method might work just as well for wordpress integration.

    1. Keep the user tables in-sync with usernames/passwords. I added a script that checks the vanilla users table for a matching username when someone logs into my main site. If it's not there I insert the new user into that table.
    To keep the passwords in sync, I remove all the links to the Vanilla change password form(even better, disable it somehow, just in case someone knows the link).

    2. When a user logs into the "main" site, log them in to Vanilla as well, by reproducing the http call that the vanilla sign form would make. The same username and password should be in the vanilla users table. I tried this with a server-side http call but it didn't work (maybe Mark has some built in
    security). So I tried a client-side ajax call. That worked. When a user signs out of the main site, I do the same on vanilla (a server-side http call works in this case). I modify my templates so all the Vanilla signin/signout links actually go to my main site.

    3. Bypass the Vanilla member profile page. I'm still working on this one. I want to redirect people to the main site's profile page so they can never see the vanilla version. I don't know the PHP code for a server-side redirect yet, but I want to put one on the Vanilla profile page.

    I'd be happy to post more details on request, but hopefully this will get some folks started.
  • for #1, I'm just gonna check that when you say 'i insert the new user into the table' are you using the CreateUser function or doing it manually? for #2, I'd suggest you explore the People class which deals with authenticating users. You should be able to provide it with a username and password and it will setup all the cookies/sessions etc. for #3, something like this should probably do the trick: if ($Context->SelfUrl == 'account.php') { header('location:www.whatever.com/profile/page'); }
  • I'm doing this all in ColdFusion, so using the framework isn't an option. I forgot one other step: when someone changes their password for my main site, I update the vanilla user table as well.
  • thanks to everyone for their input. another question i have is, if this was a plugin would it be made for wordpress or vanilla ?
  • I {think} it would be a Wordpress plugin mostly. Not sure if you would need a Vanilla plugin to handle anything on this side?
  • Depends what you want to do. If you want vanilla to work with the wp user table, it would be a vanilla plug-in.
  • another question i have, how do i display for example like latest forum posts on my wordpress page ?
  • you can use the rss feed -feed done you just need to parse the feed on your page - or query the database - you have to do it yourself but that more efficient.
  • have no clue as to how to do this, im a designer and i got myself mixed up in this whole vanilla wordpress thing, lol. Imm trying to create a website for designers developers, to talk about design. But working on the designs and actually making stuff work, and writting stuff for the site is a nightmare. plus not knowing anything about php and database stuff doesnt really help me. been wanting to learn for a while, but i dont even know where to start. maybe someone here wants to help me out ? :( doubt it.
  • This is generally where all wordpress / vanilla integration threads reach a dead end, where we find that the people involved are actually designers trying to do programmer's work and programmers disappear into thin air =)
  • yea, well i thought maybe someone could help out. I have a friend who can do this, but he is always busy with work. i thought i would find some help here. its really hard to do 3 things at a time, designing, programming and writting content.
  • If I soon install wp, I will to make vanilla work the wp user table and change authenfication methode of vanilla like mark describe it here: http://lussumo.com/community/discussion/3240/#Item_2
  • "... and programmers disappear into thin air =)" maybe there's a reason
  • whats that reason
  • as you said "he is always busy with work" :)
  • :) yea... so what do i do?
This discussion has been closed.