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.

Drupal integration

2

Comments

  • Okay, well currently I have a timescale of "this month", so hopefully there will be results soon.

    Thought I would extend upon my plans a bit (really, it is to get things clear in my mind, but please fire some questions and suggestions at me). I am thinking, for extensions, a range called Drupillafy (Drupal-Vanillafy) which at the moment consists of three simple extensions:

    Drupillafy-Messages: Grabs messages from a "drupal_get_message" styled function to display messages from Drupal in Vanilla. This is important for me, as I use, and will continue to use, Drupal's Personal Messaging module... which makes use of messages, and I need some way to display them on the forum.

    Drupillafy-Menu: Displays the primary (and secondary?) menu(s) from Drupal, to be rendered in the header.

    Drupillafy-Users: Alters Vanilla so that users cannot alter their account information. Instead all profile links will link to their page on Drupal, will also add to the sidebar a drupal-esque login block, which will offer registration and forgotten password links.

    I can code, but I am on a bit of a rushed timescale... so it will probably be quite hacky. I think it is out of my remit to synthesise things like Drupal's fancy URLs in Vanilla, so I will stick to default URLs (though, I will probably hardcode my fancy URLs into my version).

    Hmm. Thoughts?

    Adam.
  • For the fancy URLs, why not just use Vanilla's Pretty URL extension?
  • Sorry, didn't explain that part very well, I was talking about links back to the Drupal install. It is merely to make sure that what I link to in the extension (with regard to registration and user pages) actually exists. I think I will just check whether they are active, and expect that the user hasn't made any alterations to the URLs manually (it deprecates back to query strings anyways, so ?q=user/1 will always be available... it just isn't as nice).

    Adam.
  • Since I have free time again, I'm looking at finishing the long-delayed update to Janine. If you want to write a Drupal control, I'll be happy to include it.
  • edited August 2007
    I am pleased to announce that I have been successful in writing the Drupal Authenticator class for Vanilla. I need to clean it up a bit, and to make sure that there are no unexpected bugs, I will then add my method to the Wiki before completing the extensions I explained above.

    Squirrel, I am not particularly interested in this functionality for my site, but it could be fun to do. If I find myself with some spare time on my hand, I will code a Drupal control for Janine. If I plan to, I will let you know.

    Adam.
  • A Drupal control for Janine would be pretty cool, so do let us know if you plan doing so Adam - and well done on the Drupal Authenticator (<-- good name for it), look forward to seeing it in action.
  • edited August 2007
    vanilla:integration:drupal

    There is the documentation. It may need some revising, and some cleaning up (also, I have not tested it thoroughly yet... so might be worth keeping to development sites for now).

    The site that I am developing it for is private, otherwise I would link you to a working example (sorry).

    ^__^ enjoy.

    Adam.
  • edited September 2007
    i have this problem with vanilla:integration:drupal

    {
    Notice: Undefined index: PHPSESSID in C:\Program Files\VertrigoServ\www\drupilla\vanilla\library\People\People.Class.DrupalAuthenticator.php on line 52

    Fatal error: Call to undefined method Authenticator::Authenticate() in C:\Program Files\VertrigoServ\www\drupilla\vanilla\library\People\People.Class.UserManager.php on line 1065
    }

    any ideas?
  • What version of Drupal are you running?

    Adam.
  • edited August 2007
    drupal 5.2 vanilla 1.1.2 btw: this "ADD `Picture` varchar(255) DEFAULT NULL," makes an sql querry failure due to 'picture' exists
  • Hi Godfather,

    You should check the integration doc out again, I have updated the authenticator module to provide better support for Drupal 5.2 (I didn't realise there was a change to the way sessions are stored between 5.1 and 5.2, sorry).

    I also made some changes so that when signing in and out, you no longer have the nasty error messages. Note that you cannot (using my authenticator module) use the Vanilla controls to log in and out, you should alter your theme to remove references to your forum's people.php. You can add in to the theme a login box that point to your drupal install and a logout link to ?q=logout on your drupal install.

    Adam.
  • angelic_venus,

    Drupal allows multiple roles per person, Vanilla does not (although I know you are working on that). How does that work with Catagory access then once they are integrated?
  • Vanilla does allow multiple roles per person... I don't know if this is as granular as Drupal, but it's a start right? ;)
  • Yes, but not for viewing categories. angelic_venus is reworking that extension but as it stands now, the multi-roll options is for everything but Categories
  • edited September 2007
    well, seems it's working now.
    thanks. :)


    i've added this to /conf/settings.php
    //Drupal integration $Configuration['AUTHENTICATION_MODULE'] = 'People/People.Class.DrupalAuthenticator.php'; $Configuration['SignOut'] = 'http://www.YOUR-drupal-SITE.***/logout'; $Configuration['SIGNIN_URL'] = 'http://www.YOUR-drupal-SITE.***/?q=user';

    seems it works ok, but still need testing. :)
    i suppose this hint will be usefull for extension for drupal integration...

    one issue on this - i can't define other url params to set them in settings.php. i.e. on this page http://www.community.YOUR-drupal-SITE.***/people.php?PostBackAction=SignOutNow
    any help would be nice.

    ps.
    new problem found, in IE when url to vanilla from drupal no authentification happens due to some js error. :(
    can anybody uninstall IE from everyone's PC and install firefox or opera? ))
  • Are the following lines applicable to Drupal? // Finish the rest of the columns $DatabaseColumns['User']['user_nicename'] = 'user_nicename'; $DatabaseColumns['User']['user_url'] = 'user_url'; $DatabaseColumns['User']['user_activation_key'] = 'user_activation_key'; $DatabaseColumns['User']['user_status'] = 'user_status'; $DatabaseColumns['User']['display_name'] = 'display_name'; Looks like they accidentally got copied from WP adaption.
  • Hey guys, if you format your comments as HTML and put your code inside <code></code> tags it would make it a lot easier for everyone to read
  • edited September 2007
    [-Stash-], thanks, fixed. )) ----- new bug found, when user tries to set a picture (via setting url for it) icon and photo are the same for vanilla, so 32/32 pix center of avator (big one) becomes the icon.
  • In reviewing the Drupal Integration documentation I see the only core modification is adding the Vanilla user table fields to the Drupal user table. Could this "core" modification be accomplished by adding these columns as customized fields within Drupal and then somehow retrieving both the user and profile_fields and profile_values tables to get this information. I am new to both Drupal and Vanilla and was just throwing out an idea to see if feasable and then perhaps look into it in more detail. Thanks!
  • Drupal's pretty extensible - you could create a module that uses hook_user() to modify the relevant Vanilla database fields whenever a user account is changed in Drupal.
This discussion has been closed.