Hide to guest

by twisted-modz 6 Stars 1,139 Downloads

Project originally made by Mariusz Kujawski. Updated to 1.8 by Twisted-Modz aka Kameron Schwab

Project Details

Project originally made by Mariusz Kujawski. Updated to 1.8 by Twisted-Modz aka Kameron Schwab 


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.

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):


.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:



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.
Author
twisted-modz
Collaborators
None
Version
Array
Submitted
2015-08-09, 09:07 AM
Last Updated
2018-05-12, 03:27 PM
Bug Tracking
Disabled
MyBB Versions
1.8.x