[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 10: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

If you wish to add visual documentation (screenshots), make a donation and we'll let you know when the post has been updated

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.- Our account had recently a hacking problem on FB and we were forced to create a new one. We lost all our posts & likes. :(
  2. Send us a testimonial.- Testimonials thanking for our good team work can be valuable to us and may encourage others to seek our support.
  3. Post a review.- Posting a good review about this site could also compel others to seek our advice & support.

Thank You!
User avatar
Site Admin
Posts: 450
Joined: Mon Jan 13, 2014 3:18 am
Location: New York City

Return to PhpBB 3.0.XX

Who is online

Users browsing this forum: No registered users and 0 guests