vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Allow a censored word for a specific user group? (https://vborg.vbsupport.ru/showthread.php?t=319431)

gobears20 07-11-2015 10:40 AM

Allow a censored word for a specific user group?
 
I had to censor a work on VBulletin. Is there a way that I can allow certain user groups to see the censored word and not allow other user groups to see it? It has to do with imgur is the censored word.
Thanks!

kh99 07-11-2015 10:51 AM

If you add it to the list of censored words in the admincp, then in new posts it will be permanently replaced with ***s and you won't be able to show it to any other usergroup. (And that also applies to any posts already written while the word was censored). But what you could do is make a plugin (maybe on hook postbit_display_complete) to do your own censoring by str_replace() or something like that, then you could just check the user's usergroup to decide whether or not to do it.

gobears20 07-11-2015 11:14 AM

Thanks.

Here is what happen and maybe there is a better way to go about this.

I had to block imgur because some people were posting what adsense deemed as proavactive pics. Well my board has over 2 million posts and I could not go through all of those so I was wanting only specific user groups to be able to use the imgur. So basically I censored imgur but nobody can use it now.

kh99 07-11-2015 11:22 AM

So do you want to allow anyone to post an imgur link but it's only seen by specific groups? Or you want to stop anyone but the specific groups from even posting it (and if the allowed group does post it, does everyone see it)? Either way you'd need a mod of course, but there might be one out here that would work or at least be close and could be changed.

gobears20 07-11-2015 02:00 PM

Yeah anybody could post the word but the image not seen by specific user groups.

Skyrider 07-11-2015 02:06 PM

I think what you are looking for is an easier approach, like this:

https://vborg.vbsupport.ru/showthread.php?t=293490

gobears20 07-11-2015 04:22 PM

Thanks so much, I installed that and that worked perfect. That is one of those hacks that you really don't think you will ever need.


All times are GMT. The time now is 03:13 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.01065 seconds
  • Memory Usage 1,719KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete