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.
Pulling username into Page Management tab?
I have the Page Management add-on & I want to pull in the username onto the page as a variable so it prefills my Gabbly chat iframe.
I just need it to fill this markup (brackets removed):
iframe src='http://cw.gabbly.com/gabbly/cw.jsp?e=1&t=mysite.com&nick=NICK' scrolling='no' style='width:300px; height:250px' frameborder='0'
Sooo... what code would I need to pull in the username?
I just need it to fill this markup (brackets removed):
iframe src='http://cw.gabbly.com/gabbly/cw.jsp?e=1&t=mysite.com&nick=NICK' scrolling='no' style='width:300px; height:250px' frameborder='0'
Sooo... what code would I need to pull in the username?
0
This discussion has been closed.
Comments
<iframe src='http://cw.gabbly.com/gabbly/cw.jsp?e=1&t=mysite.com&nick=<?php echo(htmlspecialchars($GLOBALS['Context']->Session->User->Name)); ?>' scrolling='no' style='width:300px; height:250px' frameborder='0'>
should work. I'm not 100% sure if the call to htmlspecialchars is needed, because the username might already be formatted by vanilla, but I suppose it's good to be sure.