Back to vBulletin 3.0 Add-Ons

Group Similar vB Codes on the vB Code List
Mod Version: 1.00, by Slynderdale

This modification is in the archives.
vB Version: 3.0.3 Rating: (1 vote - 5.00 average) Installs: 3
Released: 11 Jul 2004 Last Update: Never Downloads: 0
Not Supported  

This is a small hack that affects the vB Code list. Currently if you add two vB Codes with the same tag but one uses {option} and one doesn't, they get shown in two different categories instead of grouped as one. An example of this is the quote vB Code, both [.quote] and [.quote="username"] are grouped together. This hack fixes that and groups similar custom vB tags together.

To install this hack, find in misc.php:
PHP Code:
         eval('$template[\'bbcodebits\'] .= "' fetch_template('help_bbcodes_bbcode') . '";');
         eval(
'$template[\'bbcodelinks\'] .= "' fetch_template('help_bbcodes_link') . '";');
      } 
and replace it with:
PHP Code:
      foreach($bbcode as $key => $value)
          {
            
$temp[$key] = $value;
        }
        
$bbcode_array[$bbcode['bbcodetag']][] = $temp;
      }
  
      foreach(
$bbcode_array as $key => $value)
      {
        unset(
$bbcode);
        
$array $bbcode_array[$key];
        foreach(
$array as $key => $value)
        {
          foreach(
$array[$key] as $var => $value)
          {
            
$var '_'.$var;
            $
$var $value;
          }
          
$bbcode['bbcodetag'] = $_bbcodetag;
          if (
$bbcode['title'] != $_title)
          {
            
$bbcode['title'] .= iif($bbcode['title'],'/','').$_title;
          }
          if (
$bbcode['bbcodeexplanation'] != $_bbcodeexplanation)
          {
          
$bbcode['bbcodeexplanation'] .= iif($bbcode['bbcodeexplanation'],'<br />','').$_bbcodeexplanation;
          }
          
$bbcode['tag'] .= iif($bbcode['tag'],'<br />','').$_tag;
         
$bbcode['bbcodeexample'] .= iif($bbcode['bbcodeexample'],'<br />','').$_bbcodeexample;
          
$bbcode['output'] .= iif($bbcode['output'],'<br />','').$_output;
        }
        eval(
'$template[\'bbcodebits\'] .= "' fetch_template('help_bbcodes_bbcode') . '";');
        eval(
'$template[\'bbcodelinks\'] .= "' fetch_template('help_bbcodes_link') . '";');
      } 
Thats all. I'll post some screenshots below.

Download

No files for download.

Screenshots

   

Similar Mods

List similar usernames when moderating user registration vBulletin 2.x Full Releases

vblts.ru supports vBulletin®, 2022-2024