Site in read-only mode

This site is now read-only following the release of MyBB 1.8 and the new mods site.

If you are looking for MyBB 1.8 mods please click here to visit the new mods site.

You can continue to download submissions for MyBB 1.6 and earlier here, however new submissions will only be accepted via the new mods site.

Hide To Guests

Hides content placed between specified tags from custom usergroups.

Version: 0.3.1
Author: marines
Submitted: 13th August 2010
Last Updated: 31st March 2011
This plugin gives additional MyCode-like tag which hides its content from specified usergroups.
You can set:
  • - usergroups content should be hidden from
  • - replacement text which appears instead of content you want to hide
  • - tag name you want to use (for instance [fancy_hide]...[/fancy_hide])
  • - CSS class name which is assigned to span containing replacement text
  • - whether to remove hidden content from reply form of user who cannot see the content (to avoid unneccessary trash in quotes)


Basically that's all. Works also with 1.4 series.

If you want to achieve such effect like on the screenshots below you have to (providing that you didn't change plugin's defaults) add this CSS code into your global.css style (in Advanced Mode):

Code:
.hide {
   display: block;
   margin: 5px;
   padding: 10px;
   border: 2px solid #A80014;
   border-left: none;
   border-right: none;
   background: #FFC2C9;
}


and set replacement text to something like this:

Code:
This content is hidden from you. If you want to see it you have to <a href="member.php?action=register">register</a> on this board.

Previews:Preview Image 2426 Preview Image 2432