[BBcode] Hide content from view in posts

Here we discuss all topic related to PHPBB 3.0 and up

[BBcode] Hide content from view in posts

Postby admin » Wed Oct 19, 2016 6:48 pm

Requires BBcode Hider.
Download this MOD first.

Create a BBcode on ACP > Posting > BBcodes.
Click on the add new BBCode button.

BBCode usage:
Code: Select all

HTML Replacement:
Code: Select all
<div style="margin-top: 5px;"> <p style="margin: 0px; font-size: 0.8em;"> <span style="font-weight: bold; text-transform: uppercase; color: #808000;"><!-- {L_BBHIDE} -->This code is hidden:</span>&nbsp;<div class="quotetitle"><input type="button" value="Show code" style="width:100px;font-size:10px;margin:0px;padding:0px;" onclick="if(this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display!=''){this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display='';this.innerText='';this.value='Hide';}else{this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display='none';this.innerText='';this.value='Show code';}" /></div><div class="quotecontent"><div style="display:none;">{TEXT}</div></div></div>

Help line text: Hide Code

Go to ACP > .MODs > BBCode Hidder Settings.

Hide BBCodes (textual): Enter the name textual BBCodes that will be hide. Place each subsequent BBCode separated by a comma:

Example: There is a button below containing a snippet of code which should be hidden from view. If you click on it and can see it, then you have permissions to view this post.

This code is hidden: 

To view this code please make a small donation or login to see it!

To hide quote content (textual bbcode) with a display a message. enter 'quote' in 'Hide BBCodes (textual)' field box.
The AVNW Support Team

We also have great domain names for your next website. Go through the list and make an offer now!

Shopping for a new website? See our design deals.

How much is your website worth? Get a free estimate.

And, if our post has provided you with great information, there are a few ways you can show your appreciation:
  1. Like us on Facebook
  2. Post a review.- Posting a good review about this site could help us provide improved support.

Thank You!
User avatar
Site Admin
Posts: 479
Joined: Sun Jan 12, 2014 11:18 pm
Location: New York City

Return to PhpBB 3.0.XX

Who is online

Users browsing this forum: No registered users and 1 guest