vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=318467

Hide BBCodes/Signatures From Guests/Users
by MarkFL
29 Apr 2015 03:49

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

http://www.vbulletin.org/forum/attac...1&d=1437375134

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

http://www.vbulletin.org/forum/attac...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.

http://www.vbulletin.org/forum/attac...1&d=1483103076

Support for this product can be found here:

v123shine 13 May 2015 15:06

Thank you so much. Very useful.

Raptor 19 Jul 2015 16:00

vb 4.2.3 not working - white screen when viewing a thread

MarkFL 19 Jul 2015 16:13

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 19 Jul 2015 17:04

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

All good Thanks Mark :)

MarkFL 19 Jul 2015 17:08

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 19 Jul 2015 17:53

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


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

tested on vb 4.2.3 works a treat. Now to play with the css :)

Thanks again!

MarkFL 19 Jul 2015 18:01

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


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

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 19 Jul 2015 18:28

Sweet :)

MarkFL 20 Jul 2015 06:57

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

Stratis 20 Jul 2015 15:38

2 Attachment(s)
Hi Mark, I cannot make this to work for me vb4.2.0, Guest can see code links
And something else, it puts space in all post after each line of text.
hidebbcodesfromguests, is where it supposed to be.

Here two images.

disabled mod
Attachment 152956

enabled mod
Attachment 152957

Lets wait for some other to test to :)
Thanks for all goodies you give us.

MarkFL 20 Jul 2015 15:45

Hello Stratis,

Have you defined the BBCodes you want to hide in the product settings? As for the spacing, I don't know what's causing that, and I don't have access to vB 4.2.0 to test it either.

Stratis 20 Jul 2015 16:00

Yes Mark, all is done, actually I am searching right now.
Even if there is a mistake from me, it should not break my css
Same issue in all skins and vbulletin skin to.

Better is to wait for some one else to install in 4.2.0, we will see.

Stratis 20 Jul 2015 18:05

Mark, I found text issue, at least for me.

in plugin Hide BBCodes/Signatures From Guests I change the two span.
'<span style="color: #FF0000; font-weight: bold">You Do Not Have Sufficient PrivilegesTo View User Signatures...</span>';

Put in front double mark(") instead of one (')

"<span style="color: #FF0000; font-weight: bold">You Do Not Have Sufficient PrivilegesTo View User Signatures...</span>";

Waiting now for some one to test

MarkFL 20 Jul 2015 21:48

Quote:

Originally Posted by Stratis (Post 2550868)
Mark, I found text issue, at least for me.

in plugin Hide BBCodes/Signatures From Guests I change the two span.
'<span style="color: #FF0000; font-weight: bold">You Do Not Have Sufficient PrivilegesTo View User Signatures...</span>';

Put in front double mark(") instead of one (')

"<span style="color: #FF0000; font-weight: bold">You Do Not Have Sufficient PrivilegesTo View User Signatures...</span>";

That will break the PHP string...:confused:


All times are GMT. The time now is 04:47.

Powered by vBulletin® Version 3.8.12
Copyright © 2019, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.