Facebook Twitter Pinterest Share

vBulletin 3.X Add-ons & Template Modifications All the latest vBulletin 3.X Add-ons & Template Modifications.

New Thread  Post Reply
J.Black's Avatar
J.Black : Guest
Posts: n/a
Unread 11-30-07
vBcode CODE only for Registered Users

This Plugin will allow you to only registered users can view "code" (PHP, HTML and CODE bbCodes).

Create a new plugin

Name: vBcode CODE only for Registered
Hook: bbcode_parse_start
Code Plugin:

global $vbulletin;

// bbcode_code
if ($vbulletin->userinfo['userid'] == 0)
    if (!
$array_bbcodes = array('#\[code\](.*?)\[\/code\]#si','#\[CODE\](.*?)\[\/CODE\]#si');
$array_bbcodes AS $array_bbcode)
$match_count preg_match_all($array_bbcode$string$matches);
$replacement_code "Content Visible For Registered And Active Users";
$i 0$i $match_count$i++ )
$after_replace $matches[1][$i];
$array_after_replace = array('

$after_replace '


$after_replace '

$string str_replace($array_after_replace,$replacement_code,$string);
// end function
$text bbcode_only_reg_code($text);
$parsedtext bbcode_only_reg_code($parsedtext);

Extreme111's Avatar
Extreme111 : Member
Extreme111 is on a distinguished road
offline Joined: Nov 2007 Location: London (Essex) Posts: 36 Thanked: 1
Unread 12-01-07
What Does it Do?
Boss_013's Avatar
Boss_013 : 50+
Boss_013 is on a distinguished road
offline Joined: Sep 2007 Location: ACP Works:Paid&Free VB Mod instalation IM/PM Me. Posts: 149 Thanked: 5
Unread 12-01-07
plug in for php code html etcc code only visible to reg users, default it can see all
for protect guest leech ur link

sorry English bad
New Thread  Post Reply

Thread Tools

  • Submit Thread to Facebook
  • Submit Thread to Twitter
  • Submit Thread to Pinterest
  • Submit Thread to LinkedIn
  • Submit Thread to Reddit
registered, users, code, vbcode
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Powered by GYSN Underground 2021