CAG CheechDogg |
02-27-2014 12:20 AM |
Quote:
Originally Posted by GameOverViper
(Post 2483959)
I'm not sure on how to do that. Any guide on how I can do that without messing anything up in the process?
|
Just copy everything from the (block_html) in your templates and create a new template and rename it to something like (block_html_user).
Then you wrap it in the conditional like this:
Code:
<vb:if condition="is_member_of($bbuserinfo, x,x,x)">
<li>
<div class="block smaller">
<div class="blocksubhead">
<a class="collapse" id="collapse_block_html_{vb:raw blockinfo.blockid}" href="{vb:raw relpath}#top"><img alt="" src="{vb:stylevar imgdir_button}/collapse_40b.png" width="16" height="16" id="collapseimg_html_{vb:raw blockinfo.blockid}"/></a>
<span class="blocktitle">{vb:raw blockinfo.title}</span>
</div>
<div class="widget_content blockbody floatcontainer">
<div id="block_html_{vb:raw blockinfo.blockid}" class="blockrow">
{vb:raw content}
</div>
</div>
</div>
<div class="underblock"></div>
</li>
</vb:if>
Once you do that, create a new forum block and in the "Template To Use" option add the new template you cloned, in this case "block_html_user"
And you are good to go! Make sure you replace the red "x" with the usergroups you which to only show it to.
|