codeing problem

Started by Philip12, December 03, 2006, 05:30:18 PM

Previous topic - Next topic

Philip12

i am coding a chat room as i dont like the packages one

i am haveing a problem
i want to add the username verible in {$member.id}
but i dont know how i can get my chat room index to conect to the smf forums to pick up on this info

anyone able to help me please


Thanks Philip

codenaught

$context['user']['username'] can be used for the username of the member browsing the forum.
Dev Consultant
Former SMF Doc Coordinator

Philip12

sorry for the slow reply only had chance to try this today

i added that in
but it did not work
useing that how will it know how to conect to the smf forums ?



Thanks Philip

Philip12


<param name="nick" value="Nick">
<param name="alternatenick" value="Nick">
<param name="name" value="Java User">
<param name="host" value="irc.solidirc.com">
<param name="gui" value="pixx">


thats the code (html)

anyone able to help out please

codenaught

Is it used with the SMF files or does it load SSI.php? If it is a standalone app, you need to load SSI.php (Like this: require("/path/to/forum/SSI.php");) at the top of the page for it to work.

Once it can grab the information the html code would look something like:

<param name="name" value="', $context['user']['username'], '">
Dev Consultant
Former SMF Doc Coordinator

Advertisement: