Peggy
07-08-2007, 10:46 PM
Ok here's one for all you coders out there... :)
My members have been after me to install the /me bbcode plugin, so I found it, installed it, works great. Love it. Except for one thing....
I would like for the results to be italicized, perhaps even bold? So, looking at the code in this plugin, could you tell me what to add, and where to add it at?
global $post;
if ('' == $post[username]) {
global $reputation;
if ('' == $reputation[username]) {
global $pm;
if ('' == $pm[fromusername]) {
$meUsername = $vbulletin->userinfo[username];
} else {
$meUsername = $pm[fromusername];
}
} else {
$meUsername = $reputation[username];
}
} else {
$meUsername = $post[username];
}
if (empty($meUsername))
{
$meUsername = 'Error Parsing Username';
}
$text = preg_replace('#^/me (.*)$#im', "* $meUsername \\1 ", $text);
$parsedtext = preg_replace('#^/me (.*)$#im', "* $meUsername \\1 ", $parsedtext);
My members have been after me to install the /me bbcode plugin, so I found it, installed it, works great. Love it. Except for one thing....
I would like for the results to be italicized, perhaps even bold? So, looking at the code in this plugin, could you tell me what to add, and where to add it at?
global $post;
if ('' == $post[username]) {
global $reputation;
if ('' == $reputation[username]) {
global $pm;
if ('' == $pm[fromusername]) {
$meUsername = $vbulletin->userinfo[username];
} else {
$meUsername = $pm[fromusername];
}
} else {
$meUsername = $reputation[username];
}
} else {
$meUsername = $post[username];
}
if (empty($meUsername))
{
$meUsername = 'Error Parsing Username';
}
$text = preg_replace('#^/me (.*)$#im', "* $meUsername \\1 ", $text);
$parsedtext = preg_replace('#^/me (.*)$#im', "* $meUsername \\1 ", $parsedtext);

