Integrating with cbox
Hi guys,
I'm trying to integrate cbox.ws with vanilla, it has the following instructions.
Where the variable $name appears, insert the variable that represents the user's >name as retrieved from your userbase. This will vary depending on your CMS or >forum system.
What is the default $name variable for Vanilla?
and also
&pic=<?=urlencode($avatar_url)?>&lnk=<?=urlencode($profile_url)?>&ekey=<?=md5("gg1a3ha0bgnic2g0"."\t".$avatar_url."\t".$profile_url)?>
Change $avatar_url and $profile_url to the correct variables for the context. Note >that they both appear twice.
Would love some assistance.
Thanks!
0
Best Answer
-
Todd Vanilla Staff
You can grab most of what you need with
Gdn::Session()->User
. Try aprint_r()
on it to see what we give you.1
Answers
You can grab most of what you need with
Gdn::Session()->User
. Try aprint_r()
on it to see what we give you.Thanks for answering my query @Todd but I have no programming background so I have no idea how to go about doing what you just said. Sorry
Do I substitute
$name
withGdn::Session()->User
?The code that $name goes into is
...&sec=form&nme=<?=urlencode($name)?>&nmekey=<?=md5('snip'.$name)?>
I sure can't teach you to code.
Sorry. What function is called when calling for a members username in the database, avatar and profile URL?
Is this code correct?
&nme=<?=urlencode($UniqueID)?>&nmekey=<?=md5('snip'.$UniqueID)?>
Followed vanilla's single sign-on integration guide and wondering if UniqueID is how the script calls the database for a user.