User ID Question For Cometchat
Design and Skin Customization
<a href="javascript:void(0)" onclick="javascript:jqcc.cometchat.chatWith('profile_id={$_profile_id}');">Chat with me</a>
I'm not using cometchat, but if this is for in a template try the above code.
You need the smarty brackets around the smarty variable {$_profile_id} in order for it to print.
It will be printed into the javascript in the html page as a number. The javascript then runs once the page is loaded into the browser.