PDA

View Full Version : BBCode parsing in usertitles


Cyricx
08-16-2005, 12:57 PM
Well... found a fix for parsing usertitles for bbcode in private messages.

However, it's a bugger file edit in

/includes/class_postbit_alt.php

It's a matter of changing this


function parse_bbcode()
{
$this->post['message'] = parse_pm_bbcode($this->post['message'], $this->post['allowsmilie']);
}


To this


function parse_bbcode()
{
$this->post['message'] = parse_pm_bbcode($this->post['message'], $this->post['allowsmilie']);

// ##### START HACK - Parse Usertitles for BBCode #####
$this->post['usertitle'] = parse_pm_bbcode($this->post['usertitle']);
// ##### END HACK - Parse Usertitles for BBCode #####
}


Anyone have any ideas how I can do this through a hook? I've tried every fricken hook I can think of and every combo of code but I'm a relative dabbling newbie heh.

Any help is appreciated :)