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.
Arrowchat and vanilla integration
Jone
New
I was trying to add arrowchat into my vanilla forum following this doc http://www.arrowchat.com/documentation/?p=custom-website But since i'm not PHP expert the doc cofused me. What to use Session
or cookie
?
If i use session the function will be like this:
function get_user_id() { $userid = NULL; if (!empty($_SESSION['userid'])) { $userid = $_SESSION['userid']; } return $userid; }
so, what the name of vanilla session?
Thank you!
0
Comments
You can get the current vanilla userID using:
There was an error rendering this rich post.
@lifeisfoo Thank you very much!!!
So, do you think this looks good
Keep in mind that this must be executed in a scope where Garden is present. E.g. in a plugin or in a theme class (via hooks).
There was an error rendering this rich post.
That's not working, I don't know why. I will keep trying anyway.
Thanks,
If you post here all the code you are using for the integration somebody can help you.
There was an error rendering this rich post.
Ok good here the whole
integration.php
fileThanks,
You need to setup db tables, syncronize them with vanilla user data, overwrite functions according to the arrowchat expected format, etc.
Seems a not so little work.
You can do this on your own or ask for a custom paid development here in the forum.
There was an error rendering this rich post.