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

Stratis 07-20-2015 01:38 PM

1 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 07-20-2015 01:45 PM

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 07-20-2015 02:00 PM

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 07-20-2015 04:05 PM

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 07-20-2015 07:48 PM

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:

Stratis 07-26-2015 10:49 AM

Can some one please confirm that this mod works in vb4.2.0 pl4
Thanks

gobears20 07-29-2015 12:04 AM

Hi, I just tried to use this and for some reason it turns into a white screen when going into a specific thread. The screen is just white and never loads the content. I turn it off an it works again. Any idea why this would happen?

MarkFL 07-29-2015 12:08 AM

Quote:

Originally Posted by gobears20 (Post 2551616)
Hi, I just tried to use this and for some reason it turns into a white screen when going into a specific thread. The screen is just white and never loads the content. I turn it off an it works again. Any idea why this would happen?

Okay, first thing...did you upload the contents of the "upload" folder to your root directory?

gobears20 07-29-2015 12:15 AM

Just to make sure, I uploaded into my forums directory(hidebbcodesfromguests.php), yes.

I am running version (vBulletin 4.2.2 Patch Level 4)

It seems to work and function correctly inside the AdminCp screen but when I turn it on it doesn't work and any posts is just a blank white screen.

MarkFL 07-29-2015 12:21 AM

The PHP file needs to have the path:

/hidebbcodesfromguests/hidebbcodesfromguests.php

What you should do is simply upload the "upload" folder included in the zip file straight to your root directory, and the correct folder will be copied along with the PHP file.

gobears20 07-29-2015 12:36 AM

You got me :) That was exactly what it was and it worked. Quick question for you, if someone uploads an attachment to my server and uses it inside a post it doesn't look like this can be blocked with this mod?

Also, do you take donations? If so where because this is a great mod that you have put together!

MarkFL 07-29-2015 12:43 AM

Quote:

Originally Posted by gobears20 (Post 2551620)
You got me :) That was exactly what it was and it worked. Quick question for you, if someone uploads an attachment to my server and uses it inside a post it doesn't look like this can be blocked with this mod?

Also, do you take donations? If so where because this is a great mod that you have put together!

This add-on will block inline attachments (because of the ATTACH tags present in the post content), but not thumbnails...however I think it would be a simple matter to add this feature. I will look into this soon. :up:

I am not seeking donations directly, but if you wish to do so, a small donation to your local animal shelter would be greatly appreciated. :)

gobears20 07-29-2015 12:52 AM

I turned the attachment feature off inside the user group management. It won't allow you to see it but will allow you to click on it and show the attachment. You may think about adding that feature. Great mod and yes, I already make donations to the animal shelter around here. I also make donations to my house animals, two cats and two dogs ;) Thanks again for a great mod!

akz645 08-02-2015 01:44 PM

Quote:

Originally Posted by MarkFL (Post 2551621)
SNIP

Could you add a feature that 'disables' BB codes from being used, rather than just hide for certain usergroups?

Also, could you make this mod forum specific & usergroup specific?
Example: Hide BB code IMG on forum section A for usergroups: 'registered & guests & banned'. Hide BB code IMG on forum section B for usergroups: 'guest & banned'. etc...

https://vborg.vbsupport.ru/external/2015/08/52.png
^ have that appear inside each one of these:
https://vborg.vbsupport.ru/external/2015/08/53.png
+ Another setting/box which disables BB codes (if you implement that feature)

That would be really useful for me :)

MarkFL 08-04-2015 05:15 AM

Quote:

Originally Posted by akz645 (Post 2551949)
Could you add a feature that 'disables' BB codes from being used, rather than just hide for certain usergroups?

The goal of this product is to simply hide BBCodes from guests and other defined usergroups. Preventing their usage would be a whole other issue for another product to address.

Quote:

Originally Posted by akz645 (Post 2551949)
Also, could you make this mod forum specific & usergroup specific?
Example: Hide BB code IMG on forum section A for usergroups: 'registered & guests & banned'. Hide BB code IMG on forum section B for usergroups: 'guest & banned'. etc...

https://vborg.vbsupport.ru/external/2015/08/52.png
^ have that appear inside each one of these:
https://vborg.vbsupport.ru/external/2015/08/53.png
+ Another setting/box which disables BB codes (if you implement that feature)

That would be really useful for me :)

While adding forum and usergroup information for each BBCode in the list could be done, I don't feel at this time there would be enough demand for that to justify the added complexity of the coding and in particular the settings. :)

akz645 08-04-2015 12:02 PM

Quote:

Originally Posted by MarkFL (Post 2552057)
The goal of this product is to simply hide BBCodes from guests and other defined usergroups. Preventing their usage would be a whole other issue for another product to address.

Alright, that's fine. I guess it has to be created as an entirely different mod altogether, with that function only. I thought it would be simple to add on, but guess not.

Quote:

Originally Posted by MarkFL (Post 2552057)
While adding forum and usergroup information for each BBCode in the list could be done, I don't feel at this time there would be enough demand for that to justify the added complexity of the coding and in particular the settings. :)

I have to wait for more demand then...
Speaking of complexity, if you did do it, how long do you think it would take you?

Note: It doesn't neccesarily have to be adjusted from these settings. One of DB Tech's products has another approach, which is by users selecting a forum (double clicking) and then options for how it affects each individual usergroups appears below.
In this case, instead of a tick/untick box for each individual option, this box would appear instead.
^
I don't know which methods is easier to code. I just thought I'd let you see this method, in case you hadn't seen it before.

Vintum 08-05-2015 03:10 AM

I just thought of something I could use a product like this for, but I'm not sure I want there to be any indication to guest/unallowed users that content has been hidden.

Is it possible to just remove the bbcode and the content within them if they don't have permissions? Or just anything else to hide the fact that content was hidden.

Vintum 08-08-2015 04:03 AM

1 Attachment(s)
Hi,

I'm sorry, but I'm not able to get this product to work. I have the file uploaded, mod is enabled, and no errors are happening in console. But nothing is hidden. I can see the content as both admin and guest even though both are selected as not allowed to view. Both signatures and the bbcode remain visible.

I'm on VB 4.2.2. Any idea?

MarkFL 08-08-2015 04:12 AM

Quote:

Originally Posted by Vintum (Post 2552376)
Hi,

I'm sorry, but I'm not able to get this product to work. I have the file uploaded, mod is enabled, and no errors are happening in console. But nothing is hidden. I can see the content as both admin and guest even though both are selected as not allowed to view. Both signatures and the bbcode remain visible.

I'm on VB 4.2.2. Any idea?

Hello! I am sorry to hear you are experiencing difficulty.

Can you provide me with a link to a page where the "MEMBER" BBCode is being displayed so I can look at the HTML of the page?

Vintum 08-08-2015 04:41 AM

Link sent,

thanks

MarkFL 08-11-2015 02:56 PM

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

akz645 08-11-2015 07:50 PM

Quote:

Originally Posted by MarkFL (Post 2552626)
Update: version 1.2
  • Posts containing the symbols "<" and/or ">" will now display correctly to those from whom BBCodes are being hidden.

I downloaded it, but I think you forgot to change the version number.
Plugin & Products: MarkFL: Hide BBCodes/Signatures From Guests/Users 1.1

Admin CP -> settings -> Options -> MarkFL: Hide BBCodes/Signatures From Guests/Users v1.1

MarkFL 08-11-2015 09:07 PM

Quote:

Originally Posted by akz645 (Post 2552657)
I downloaded it, but I think you forgot to change the version number.
Plugin & Products: MarkFL: Hide BBCodes/Signatures From Guests/Users 1.1

Admin CP -> settings -> Options -> MarkFL: Hide BBCodes/Signatures From Guests/Users v1.1

Good catch...I have properly updated the product's version number now. :o

Stratis 08-12-2015 11:56 AM

Mark it does not work for me, if you read post 11, you will see what about.
Problem with spacing to text with this version is ok.
code and attach that I put not to show, in the first version, did not work at all.

Now rather than working i see the code of coded link, see example
HTML Code:

<div class="bbcode_container" >
<div class="bbcode_description" style="padding-bottom:2px">Code <a href="#" onclick="selectCode(this); return false;"><input type="button" value=" Select " /></a></div>
<pre class="bbcode_code"style="height:36px;"><p>https://play.google.com/store/apps/details?id=com.led.notify&hl=el</p></pre>
</div>

This supposed to be this link
Code:

https://play.google.com/store/apps/details?id=com.led.notify&hl=el
Same with attach images, i see all code.

MarkFL 08-15-2015 06:52 PM

Quote:

Originally Posted by Stratis (Post 2552694)
Mark it does not work for me, if you read post 11, you will see what about.
Problem with spacing to text with this version is ok.
code and attach that I put not to show, in the first version, did not work at all.

Now rather than working i see the code of coded link, see example
HTML Code:

<div class="bbcode_container" >
<div class="bbcode_description" style="padding-bottom:2px">Code <a href="#" onclick="selectCode(this); return false;"><input type="button" value=" Select " /></a></div>
<pre class="bbcode_code"style="height:36px;"><p>https://play.google.com/store/apps/details?id=com.led.notify&hl=el</p></pre>
</div>

This supposed to be this link
Code:

https://play.google.com/store/apps/details?id=com.led.notify&hl=el
Same with attach images, i see all code.

Try editing the plugin "Hide BBCodes/Signatures From Guests" by locating the line:

PHP Code:

        require_once(DIR '/hidebbcodesfromguests/hidebbcodesfromguests.php'); 

and directly below this, add:

PHP Code:

        header("Content-Type: text/html; charset=utf-8"); 


Stratis 08-15-2015 08:00 PM

No Mark, when I change the above code, I get this ��� �� ������������ ��.
I use 63 Mods, no problems so far, I don't know if there is a conflict ?. :(

EDIT:
Uninstalled for the issues to me :(

MarkFL 08-15-2015 09:29 PM

Okay, it was worth a shot...I have no clue why it's not working for you.

geosharing 10-21-2015 05:34 AM

not working at vb 4.2.3 how can i fix this ...

MarkFL 10-21-2015 05:38 AM

Quote:

Originally Posted by geosharing (Post 2557371)
not working at vb 4.2.3 how can i fix this ...

How do you have the product settings configured?

friendlymela 10-21-2015 08:25 AM

is this effective on SEO?


All times are GMT. The time now is 05:14 AM.

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.01536 seconds
  • Memory Usage 1,862KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_html_printable
  • (2)bbcode_php_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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