Customizing SMF > Portals, Bridges, and Integrations
lightirc
-Dave:
hi all i have got this bit of code i want to bring smf usernames into lightirc but it is not working so i was after some help please
--- Code: ---<?php
require_once('../ccn/SSI.php');
global $context;
if ($context['user']['is_guest']) {
$userchatname = 'chatz-Guest_' . rand(1,10000);
} else {
$userchatname = $context['user']['name'];
}
$userchatname = str_replace(" ","_",$userchatname);
$userchatname = str_replace(".","_",$userchatname);
?>
--- End code ---
--- Code: ---params.nick = "<?php echo($userchatname); ?>";
--- End code ---
Kindred:
echo? that doesn't seem right.
-Dave:
Thanx kindred what would you use to pull the usernames?
Kindred:
Not sure... But including the whole file would be a help...
-Dave:
this is whole file Kindred and thanx
Navigation
[0] Message Index
[#] Next page
Go to full version