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.
jsConnect, no $user['uniqueid'] in own user table
Seroczynski
New
Hey, I'm trying to embed my Vanilla forum into my site and want to use jsConnect to archive this. During the integration of jsConnect I have to edit these four lines of code:
// CHANGE THESE FOUR LINES. $user['uniqueid'] = '123'; $user['name'] = 'John PHP'; $user['email'] = 'john.php@anonymous.com'; $user['photourl'] = '';
Seems pretty straightforward, but what if your own user table does not use integers as id's? If possible I'd like to avoid adding addition data to my user table, especially since there is no need for an integer as id since e-mail addresses have to be unique and can act as an id as well.
Just want to check before I do have to add a new column to my table.
0
Comments
Why not use a hash?
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
If that works, sounds good. I've checked the jsConnect documentation but didn't find what I was looking for. I'll try your solution.
The unique ID can be any guaranteed unique value that will never change. It does not need to be an integer.
I don't recommend email addresses, precisely because they change.