The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Admin/Mod BBcodes Details »» | |||||||||||||||||||||||||
this is an easy hack for admins and mods who edit their users' posts and always wanna leave a msg at the bottom of it!
check the screenshots! download the zip file for installation instructions! For those who are looking to restrict the use of these bbcodes for normal users, please use this hack: Advanced BBcode Permissions http://www.oneforum.org Show Your Support
|
Comments |
#2
|
||||
|
||||
Awesome! Thanks for this
|
#3
|
||||
|
||||
Say a regular user knows, or finds out about this certain tag, what will stop he/she from using it?
Because if it's somehow restricted to admins/mods, I'd like to use it! |
#4
|
||||
|
||||
Quote:
I want to know that too, so ill wait. |
#5
|
|||
|
|||
Quote:
Very nice hack, but imho a bit unusable without restriction. |
#6
|
|||
|
|||
you could use the "permission bbcode" hack release somewhere in here!
you're right about what you said, my suggestion is to use the hack I mentioned along with this one, you will restrict normal users from using certain bbcodes along with this one! |
#7
|
|||
|
|||
Great mod. Very handy for mods and admins, and makes it harder for members to pretend they never saw an admin/mod edit.
I'd say it would be pretty ballsy for a user to use these tags in their own posts. Obviously imitating a mod or admin would be grounds for punishment. |
#8
|
||||
|
||||
Nice addition!
|
#9
|
|||
|
|||
have been looking for this! is it possible to make the text be alligned to the center of the [!] sign? right now it's on top and it looks rather odd.
|
#10
|
|||
|
|||
Looks very nice, i will be giving this a try
|
#11
|
|||
|
|||
Quote:
HTML Code:
<valign="center">{param}
|
#12
|
|||
|
|||
Quote:
|
#13
|
|||
|
|||
|
#14
|
|||
|
|||
Quote:
Quote:
So I'm afraid you can't restrict these two custom bbcodes |
#15
|
|||
|
|||
its a pain in the ass to restrict them you have to hard code them. damn.
heres the code go to class_bbcode add theses some where Code:
/** * Handles a [admin] tag. Displays a preformatted string. * * @param string The code to display * * @return string HTML representation of the tag. */ function handle_bbcode_admin($code) { global $vbulletin, $vbphrase, $stylevar, $show; // remove unnecessary line breaks and escaped quotes $code = str_replace(array('<br>', '<br />', '\\"'), array('', '', '"'), $code); $code = $this->strip_front_back_whitespace($code, 1); if ($this->printthread) { $code = $this->emulate_pre_tag($code); $template = 'bbcode_admin_printthread'; } else { $blockheight = $this->fetch_block_height($code); $template = 'bbcode_admin'; } eval('$html = "' . fetch_template($template) . '";'); return $html; } /** * Handles a [mod] tag. Displays a preformatted string. * * @param string The code to display * * @return string HTML representation of the tag. */ function handle_bbcode_mod($code) { global $vbulletin, $vbphrase, $stylevar, $show; // remove unnecessary line breaks and escaped quotes $code = str_replace(array('<br>', '<br />', '\\"'), array('', '', '"'), $code); $code = $this->strip_front_back_whitespace($code, 1); if ($this->printthread) { $code = $this->emulate_pre_tag($code); $template = 'bbcode_mod_printthread'; } else { $blockheight = $this->fetch_block_height($code); $template = 'bbcode_mod'; } eval('$html = "' . fetch_template($template) . '";'); return $html; } { // Code:
$tag_list['no_option']['code'] = array( 'callback' => 'handle_bbcode_code', 'strip_empty' => true, 'disable_smilies' => true, 'disable_wordwrap' => true, 'strip_space_after' => 1 ); } [CODE]if ($vbulletin->options['allowedbbcodes'] & ALLOW_BBCODE_ADMINWARN) { //[CODE] $tag_list['no_option']['admin'] = array( 'callback' => 'handle_bbcode_admin', 'strip_empty' => true, 'disable_smilies' => true, 'disable_wordwrap' => true, 'strip_space_after' => 1 ); } if ($vbulletin->options['allowedbbcodes'] & ALLOW_BBCODE_MODWARN) { // Code:
$tag_list['no_option']['mod'] = array( 'callback' => 'handle_bbcode_mod', 'strip_empty' => true, 'disable_smilies' => true, 'disable_wordwrap' => true, 'strip_space_after' => 1 ); } Code:
define('ALLOW_BBCODE_HTML', 512); Code:
define('ALLOW_BBCODE_MODWARN', 1024); define('ALLOW_BBCODE_ADMINWARN', 2048); open class_bbcode_alt.php find: Code:
function handle_bbcode_code($code) { $current_tag =& $this->current_tag; $code = str_replace(' ', ' ', $code); $code = preg_replace('#(\r\n|\n|\r|<p>)( )(?!([\r\n]}|<p>))#i', '$1 ', $code); return "[$current_tag[name]]" . $code . "[/$current_tag[name]]"; } Code:
function handle_bbcode_admin($code) { $current_tag =& $this->current_tag; $code = str_replace(' ', ' ', $code); $code = preg_replace('#(\r\n|\n|\r|<p>)( )(?!([\r\n]}|<p>))#i', '$1 ', $code); return "[$current_tag[name]]" . $code . "[/$current_tag[name]]"; } function handle_bbcode_mod($code) { $current_tag =& $this->current_tag; $code = str_replace(' ', ' ', $code); $code = preg_replace('#(\r\n|\n|\r|<p>)( )(?!([\r\n]}|<p>))#i', '$1 ', $code); return "[$current_tag[name]]" . $code . "[/$current_tag[name]]"; } |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|