I've been trying to integrate a flash irc chat into my ipb boards and I've got most of it working smoothly. There is just one part i can't figure out. In the flash chat I am trying to get it to link the clicked on users name to the ipb profile.
So say I've click on the users nick Eyecu in the nicklist and click on profile. It calls the following function (note this has got the code I'm working on in it aswell.)
function onContextMenuSelect(type, nick) {
window.open("http://www.chainscriptz.net/index.php?/user/<?php echo $ipbwi->member->displayname2id($member['?> +nick <?php echo ']); ?>-" +nick);
}
the +nick part is what the function uses to pass the clicked on nick in the nicklist. The problem I'm having is actually getting the member id. No matter what i try i get the following:
www.yoursite.com/index.php?/user/-username
where username is the clicked on nick in the nicklist so the +nick does work just not for getting the memberid. Any help would greatly be appreciated.
Thanks
Eyecu












