GeekPoint Forum Subscribe to Forum RSS Network Inventory Software
Please register or login on GeekPoint Forum.
It takes only a minute to register, & moreover,
majority of the ads shown will be removed!
Login OR Register
Register a Free Account
Reply
 
LinkBack Thread Tools
Old 01-30-2009   #1
rista rista is offline
Newbie
Join Date: Jan 2009 Posts: 1
Default How to create new [hide][/hide] bbcode?

Can anyone tell me how to create new [hide] bbcode to hide content from unregistered members?

Tnx
  Reply With Quote
Old 10-22-2009   #2
Portable Portable is offline
Newbie
Join Date: Oct 2009 Posts: 2
Default Re: How to create new [hide][/hide] bbcode?

Open the bbcode_code template of the appropriate skin.
Delete everything it it, place code given below and save.

HTML Code:
<div style="margin:20px; margin-top:5px">
   <div class="smallfont" style="margin-bottom:2px">
      $vbphrase[code]:
   </div>
   <pre class="alt2" dir="ltr" style="margin: 0px;
      padding: $stylevar[cellpadding]px; border: 1px inset;
      width: $stylevar[codeblockwidth]; text-align: left;
      height: {$blockheight}px; overflow: auto">
<if condition="$show['member']">$code
<else />Only registered members can see this code.
<a href="$vboptions[bburl]/register.php">Click here to Register.</a>
</if>
</pre>
</div> 
Now do the same for bbcode_code_printable template.
The code is :

HTML Code:
<div style="margin:20px; margin-top:5px">
   <div class="smallfont" style="margin-bottom:2px">
      $vbphrase[code]:
   </div>
   <hr />
   <if condition="$show['member']">
      <code style="margin:0px" dir="ltr" style="text-align:left">
         $code
      </code>
   <else />
      Only registered members can see this code.
      <a href="$vboptions[bburl]/register.php">
         Click here to Register.
      </a>
   </if>
   <hr />
</div> 
  Reply With Quote
Old 12-16-2009   #3
sa da56 sa da56 is offline
Newbie
Join Date: Dec 2009 Posts: 21
Default Re: How to create new [hide][/hide] bbcode?

You say yes, he was to be so
  Reply With Quote
Old 02-09-2010   #4
ripps ripps is offline
Newbie
Join Date: Feb 2010 Posts: 11
Default Re: How to create new [hide][/hide] bbcode?

you can simply use a plugin from vb.org if you are using vb for your forums, its free
  Reply With Quote
Old 4 Weeks Ago   #5
ahtivas ahtivas is offline
Newbie
Join Date: Feb 2010 Posts: 18
Default Re: How to create new [hide][/hide] bbcode?

Thanks for the share..
  Reply With Quote
Reply
Thread Tools