Back to vBulletin 4.x Template Modifications

Hide BB Code Content From Unregistered Users
Mod Version: 1.00, by ALBCODERS

vB Version: 4.x.x Rating: (2 votes - 5.00 average) Installs: 23
Released: 12 Jun 2011 Last Update: Never Downloads: 0
Not Supported Template Edits Re-usable Code  

I couldn't find any addon for vb 4 to hide the bbcode content from unregistered users and showing a register message instead as here on vbulletin.org,so i have just fixed manualy on my forum.
add a new phrase first from Admincp » Languages & Phrases » Phrase Manager » Add New Phrase
  • Phrase Type : GLOBAL
  • Product : vBulletin
  • Varname : hide_code
  • Text : Please Login or <a href="register.php">Register</a> to see codes
Go to your Admincp » Styles & Templates » Style Manager » Your Style » BB Code Layout Templates

Open the bbcode_code template and find:
HTML Code:
<div class="bbcode_description">{vb:rawphrase code}:</div>
add this below:
HTML Code:
<vb:if condition="$show['guest']">
<pre class="bbcode_code">{vb:rawphrase hide_code}</pre>
<vb:else />
In the same template add above the last </div> :
HTML Code:
</vb:if>
Open the bbcode_html template and find:
HTML Code:
<div class="bbcode_description">{vb:rawphrase html_code}:</div>
add this below:
HTML Code:
<vb:if condition="$show['guest']">
<pre class="bbcode_code">{vb:rawphrase hide_code}</pre>
<vb:else />
In the same template add above the last </div> :
HTML Code:
</vb:if>
Now Open the bbcode_php template and find:
HTML Code:
<div class="bbcode_description">{vb:rawphrase php_code}:</div>
add this below:
HTML Code:
<vb:if condition="$show['guest']">
<pre class="bbcode_code">{vb:rawphrase hide_code}</pre>
<vb:else />
In the same template add above the last </div> :
HTML Code:
</vb:if>
http://www.albcoders.com/f397/fonctioni-implode-ne-php-510/

Download

No files for download.

Screenshots

Click image for larger version
Name:	hide_codes.jpg
Views:	1358
Size:	73.9 KB
ID:	129967  

Similar Mods

Users Can Hide Posts From Unregistered Browsers vBulletin 3.6 Template Modifications
Hide Posts To Unregistered Users - Posting Option vBulletin 3.5 Add-ons

vblts.ru supports vBulletin®, 2022-2024