vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Show Thread Enhancements - Hide BBCodes/Signatures From Guests/Users (https://vborg.vbsupport.ru/showthread.php?t=318467)

MarkFL 04-28-2015 09:00 PM

Hide BBCodes/Signatures From Guests/Users
 
1 Attachment(s)
Overview:

This product will allow you to decide what BBCode content you wish to hide from guests/users on your site. You can also choose to hide user signatures from guests/users too. Hidden content is replaced with a link to your registration page for guests, and a simple message for restricted usergroups. In posts, this link or message is placed inside a block element so that it stands out.

Guests will see the following:

https://vborg.vbsupport.ru/attachmen...1&d=1437375134

Members of restricted usergroups/users that have not replied will see the following:

https://vborg.vbsupport.ru/attachmen...1&d=1437374424

You are given the option to merge the defined list of BBCodes in the product "MarkFL: Enhanced View Forum Posts". This way, you may choose to define the list in one place and have both products hide the same BBCodes.

Updates:

Version 1.1:
  • Now allows usergroups to be restricted from seeing the defined list of BBCodes and signatures.

Version 1.2:
  • Posts containing the symbols "<" and/or ">" will now display correctly to those from whom BBCodes are being hidden.

Version 1.3:
  • Fixed bug where the $vbulletin array need to be global for some users.
  • Messages to guests/users now phrased to allow for translations.

Version 1.4:
  • Added setting to allow hiding of BBCodes/Signatures from users until they reply to a thread.

Version 1.5:
  • Added setting for "Active Forums" in which the product is active.
  • Added separate usergroup selection for usergroups whose members must reply to a thread before the hidden BBCodes/signatures are revealed.

Version 1.6:
  • Added setting to allow for internal links to be hidden.

Version 1.7:
  • Added settings to allow individual threads/posts to be ignored by product.

Version 1.8:
  • Fixed reported issue with inline attached images.

Version 1.8.1:
  • Moved function to external script to avoid redeclaration error.

To Install:

1.) Download and extract the attached .zip file.

Upload the contents of the "upload" folder to your forum's root directory.

Note: If you have already installed "MarkFL: Enhanced View Forum Posts" v1.1 or higher, then you may skip this step, since both products use the same external PHP script.

2.) In AdminCP go to Plugins & Products -> Manage Products -> Add/Import Product.

Click on "Choose File" and browse to the product xml file that was packaged in the .zip file.

Click "Import"

You MUST set your settings to enable the mod. Each setting has an explanation of its use.

https://vborg.vbsupport.ru/attachmen...1&d=1483103076

Support for this product can be found here:

v123shine 05-13-2015 01:06 PM

Thank you so much. Very useful.

Raptor 07-19-2015 02:00 PM

vb 4.2.3 not working - white screen when viewing a thread

MarkFL 07-19-2015 02:13 PM

Quote:

Originally Posted by Raptor (Post 2550726)
vb 4.2.3 not working - white screen when viewing a thread

Did you upload the external file?

Raptor 07-19-2015 03:04 PM

No because i'm an idiot who hasn't been a vb user for 14 years derp!

All good Thanks Mark :)

MarkFL 07-19-2015 03:08 PM

Quote:

Originally Posted by Raptor (Post 2550734)
No because i'm an idiot who hasn't been a vb user for 14 years derp!

All good Thanks Mark :)

LOL! I could write a book chronicling the bonehead things I have done. :D

Glad to hear the issue was that simple to resolve. :up:

Raptor 07-19-2015 03:53 PM

Just to add as this might help someone else

if you also want to hide from other usergroups simply edit line 65 of the XML and re-import

Code:

if ($show['guest'] || is_member_of($vbulletin->userinfo, 1, 2, 3))
tested on vb 4.2.3 works a treat. Now to play with the css :)

Thanks again!

MarkFL 07-19-2015 04:01 PM

Quote:

Originally Posted by Raptor (Post 2550737)
Just to add as this might help someone else

if you also want to hide from other usergroups simply edit line 65 of the XML and re-import

Code:

if ($show['guest'] || is_member_of($vbulletin->userinfo, 1, 2, 3))
tested on vb 4.2.3 works a treat. Now to play with the css :)

Thanks again!

I will soon update this add-on to allow the BBCodes to be hidden from other usergroups. I will also look into allowing the customization of the CSS as well. :D

Raptor 07-19-2015 04:28 PM

Sweet :)

MarkFL 07-20-2015 04:57 AM

Update: version 1.1
  • Now allows usergroups to be restricted from seeing the defined list of BBCodes and signatures.

I decided it would be easiest to just let users edit the .css template manually if so desired. :D


All times are GMT. The time now is 11:21 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01213 seconds
  • Memory Usage 1,745KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete