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.
Options

Vanilla Avatar -> Wordpress

Vanilla 2.1a

Hi,

So, I finally got SSO / comments working 100% seamlessly with my wordpress site. My next and I think final problem with Vanilla integration is the Avatar... I would like users to be able to go to their profile page (wordpress) and set the avatar for Vanilla.

How would I go about doing this?

I've looked into remapping the database. - this looks like it would be more work than needed due to wordpress not having custom avatar support by default.

I've also looked into using an API call. - this is the way to go I believe. Problem is, I have no clue how to do this ( access the vanilla api or even make an api call)

If anyone has got this to work, please share.

Thanks'

Comments

  • Options

    Well could could post to the form. There is a parameter called Target which will return back to the desired page.

    Depending on your SSO solution, you may need to initiate that first.

    Whatever you do it require a little development.

    grep is your friend.

  • Options

    You can use the basic api to pull views/forms.

    grep is your friend.

  • Options

    Thanks for the quick reply.

    My solution for sso was installing my vanilla / wordpress tables on the same db and mapping the tables. For comments i'm just using the wordpress plugin.

    How do I go about making an api call?
    Is the basic api built in or is it via app? The documentation seems to be all over the place.

  • Options
    x00x00 MVP
    edited September 2013

    if you want to know the avatar url you can do

    http://site.com/forum/profile.json/x00

    e.g.

    http://vanillaforums.org/profile.json/ekim1990

    or just

    http://vanillaforums.org/profile.json

    then you will see the the url to the avatar (this is regardless of if gravitar or vaniallcons is being used)

    Here is an example how to just get the view of the upload form
    http://vanillaforums.org/profile/picture?DeliveryType=VIEW

    You might need to proxy the request, though as it will return to the vanilla profile.

    here is an example how to get the view of the thumbnail editor
    http://vanillaforums.org/profile/thumbnail?DeliveryType=VIEW

    Note you will sill have to load all the associated scripts to work.

    Btw how are you mapping the tables? Depending how you are doing it might not be very resilient. A change it records could mean mismatched accounts.

    grep is your friend.

  • Options

    Thanks, this is exactly what I was looking for :D

    I don't think there should be much conflict with the way I mapped everything.

    First I mapped everything that was clearly cross compatible (eg userID, password.. ) then added the missing fields from the vanilla table to my wordpress table, gave them default values and mapped those out.

    All user registration / login is handled on wordpress' end.

    I based everything I did off of http://lussumo.com/docs/doku.php?id=vanilla:integration:wordpress modiying as I went to make it work with the current vanilla build.

  • Options

    btw, I'm kind of learning as I go when It comes to server side stuff. I'm amazed I got it to work thus far... A lot of trial and error.

  • Options

    First I mapped everything that was clearly cross compatible (eg userID, password.. ) then added the missing fields from the vanilla table to my wordpress table, gave them default values and mapped those out.

    Yes but how did you map? I'm doubtful of the integrity. You only need one change just as a deleted record, or a change in one for the field to cause a mismatch.

    grep is your friend.

Sign In or Register to comment.