Thread: Show Thread Enhancements - Hide BBCodes/Signatures From Guests/Users
View Single Post
  #110  
Old 22 Dec 2017, 14:42
Peter Walker Peter Walker is offline
 
Join Date: Oct 2005
I needed this for a different reason, that a minor change to this mod made possible:

I have a premium membership system on my forum, where those that are in the Premium secondary usergroup are allowed to view videos, etc. that are displayed with custom bb codes.
Everybody else, should see a message explaining that they need to join the Premium usergroup to view the content.

As this mod does the opposite, I needed to change the code to make it work for me. With the change, it disables the named bbcodes everywhere but, for those who are members of the premium additional usergroup in the given forums.

This means that normal members see the error message, which I changed to tell them to buy a subscription, and members of the premium usergroup can now see the bbcode (videos, etc.)

After chatting with Mark about this and looking closely at the code, I was able to make this work with just a minor change to the product file and reinstalling it.

Find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace with:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Or simply use the attached file. Important, this changes the use of the mod, now allowing bbcodes in specific locations, it is the only way I found to do it.

Usage:
BBCode Tag Content To Hide From Guests: Give the mods that are to be activated. In my case they were the custom mods: audiop,videomp4p,videomp4vttp

Active Forums: Mark all the forums that contain premium content that use the above bbcodes.

Usergroup(s) From Which To Hide BBCodes: Set only the usergroups that are ALLOWED to use the BBCodes. e.g. Premium usergroup.

Hide BBCodes From Users Until They Reply? No Users

Usergroups Required To Reply: All

The remaining fields remain empty.

I also changed the phase displayed to:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

This is working perfectly in vb 4.2.5.
I have enclosed some images of how it works. Regular members see the blocked message while members that have Premium status can play the content - great!

Enjoy and thanks to Mark for his excellent work that just needed a little tweak.
Attached Images
File Type: jpg audioblocked.jpg (58.0 KB, 14 views)
File Type: jpg audiodisplay.jpg (42.6 KB, 14 views)
File Type: jpg audioplay.jpg (41.4 KB, 14 views)
Attached Files
File Type: xml product-hidebbcodesandsigsfromque.xml (16.8 KB, 8 views)
__________________
Regards

Peter
www.rifeforum.com

Last edited by Peter Walker; 22 Dec 2017 at 22:13.
Reply With Quote