I've been wating for "raw html" feature in nickmeta. It took a little bit long for me, so I tryed to find the implementation in svn. It works in Firefox and it doesn't work in IE6. Therefore I implemented profile link my way. Profile link is shown above "Private message" link while clicking on user name in user list. It is provided with a small icon.
Here is the hack:
Open: data/public/js/pfcclient.js
Find:
&& k != 'flood_nbchar'
Add after:
&& k != 'profile_link' // Profile link hack
Find:
div.appendChild(table);
Add after:
// Profile link hack
// add profile link (do not add it if this button is yourself)
if (pfc.getUserMeta(nickid,'nick') != this.nickname)
{
var p = document.createElement('p');
p.setAttribute(className, 'pfc_nickwhois_pv');
var a = document.createElement('a');
a.setAttribute('href', pfc.getUserMeta(nickid,'profile_link'));
a.setAttribute('target', '_blank');
a.pfc_nickid = nickid;
a.pfc_parent = div;
var img = document.createElement('img');
img.setAttribute('src', this.res.getFileUrl('images/user.gif'));
img.alt = document.createTextNode(this.res.getLabel('Profile'));
a.appendChild(img);
a.appendChild(document.createTextNode(this.res.getLabel('Profile')));
p.appendChild(a);
div.appendChild(p);
}
Open: src/phpfreechat.class.php
Find:
"Private message", // _pfc
Add after:
"Profile", // Profile link hack
Open: i18n/en_Us/main.php (or your preferred language file)
Find:
// line 109 in pfcclient.js.tpl.php
$GLOBALS["i18n"]["Private message"] = "Private message";
Add after:
$GLOBALS["i18n"]["Profile"] = "User profile";
Now you can provide individual link for chat user in index.php. Add this line in your chat configuration in index.php:
....
$params['nickmeta']['profile_link'] = "/userprofile/".$userid;
....
Example: I use the chat with phpbb3 and my link to forum profile is:
$params['nickmeta']['profile_link'] = "/forums/memberlist.php?mode=viewprofile&u='.$user->data['user_id'];
Enjoy!