This worked great

Is there any hooklocation where the 'TAG' is visible all over the forum and cms ?
Quote:
Originally Posted by MarkFL
You could also do this with a plugin...create a plugin with the "Hook Location" of "postbit_display_complete" with the following "Plugin PHP Code":
PHP Code:
switch($post['displaygroupid']) { case X: $tag = '[tagX]'; break; case Y: $tag = '[tagY]'; break; }
$post['musername'] = $tag . $post['musername'];
Replace X and Y with the usergroupids of the usergroups you wish to have custom tags and the strings "tagX" and "tagY" with the tag text itself. If you have more than two groups, then simply add cases as needed within the switch block.
I would use an execution order of 0 for the plugin to make sure this gets done before other plugins have a chance to alter the marked up name.
|