vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Hide Various BB Code Content From Users (https://vborg.vbsupport.ru/showthread.php?t=105160)

calorie 01-11-2006 10:00 PM

Hide Various BB Code Content From Users
 
This mod makes it so you can hide various BB code content from certain usergroups. It takes into account both primary and secondary usergroups and is controlled completely through the vB ACP. If you use this mod, please click the install button. Thanks.

The various BBcode content you can hide is as follows:

[B], [I], [U], [COLOR], [SIZE], [FONT], [LEFT], [CENTER], [RIGHT],[INDENT],[LIST], [URL], [EMAIL], [THREAD], [POST], [CODE], [PHP], [HTML], [IMG], [QUOTE]

See the add_custom_bbcodes.txt file for how to add other BB codes.

NOTES: Do not apply any code changes posted before the twenty-second post, and when using this mod, Cached Posts Lifespan should be zero, but turning off post caching can result in slower display time, as posts would then be parsed into HTML at display time rather than at post time.

Before installing this add-on, change this in product-hide_bbcodes.xml:
Code:

<setting varname="hide_bbcode_list" displayorder="200">
<datatype>number</datatype>

To this, and then install; otherwise it errors unsupported operand types:
Code:

<setting varname="hide_bbcode_list" displayorder="200">
<datatype>bitfield</datatype>


IrPr 01-12-2006 06:33 PM

1st click
/me installed
thanks

MPDev 01-12-2006 07:02 PM

Thanks! I was asking for this.... :)

apfparadise 01-12-2006 07:42 PM

Awesome, I have been asking for this all over, and it's even better, a plug in.

One comment though, does not seem to difficult for a programmer, but the array that gives you the usergroups to show to, It may be easier to do it for usergroups that it WONT show to.

Most of the time (as in my case) the IMG tags will NOT be shown to Unregistered users to promote registrations. I like the idea of an array to customize it, but I had to put in 8 usergroups :)

Once again, though, THANKS for this. Installed.

here it is at work :
http://aquatic-photography.com/forum...ead.php?t=5730

4number8 01-13-2006 02:47 AM

Thanks, I was wanting to know if their was a way to get this to work on the homepage also? vBadvanced CMPS

Logikos 01-13-2006 03:12 AM

Needs to be fixed in archive
http://www.photoplog.com/forum/archi...x.php/t-1.html

calorie 01-13-2006 04:23 AM

Thanks, fixed. Delete the Hide BBcode Content plugin and then import the new attachment as a product via the ACP. Note that you'll need to either a) edit the XML file to your specs prior to import or b) edit the two plugins after import. Comments are provided, but maybe later I'll set it to use vB options.

LockeAG 01-13-2006 04:57 AM

Quote:

Originally Posted by calorie
Thanks, fixed. Delete the Hide BBcode Content plugin and then import the new attachment as a product via the ACP. Note that you'll need to either a) edit the XML file to your specs prior to import or b) edit the two plugins after import. Comments are provided, but maybe later I'll set it to use vB options.

Great

But , how can I omit the restiction of [IMG] code on the signatures

Logikos 01-13-2006 06:01 AM

Quote:

Originally Posted by calorie
Thanks, fixed. Delete the Hide BBcode Content plugin and then import the new attachment as a product via the ACP. Note that you'll need to either a) edit the XML file to your specs prior to import or b) edit the two plugins after import. Comments are provided, but maybe later I'll set it to use vB options.

Kool thanks man, clicks install!

calorie 01-13-2006 06:21 AM

@LockeAG: try the following:
Code:

Replace the following:

if (!in_array($this->registry->userinfo['usergroupid'], array(2,6,9)))


With the following:

if (!in_array($this->registry->userinfo['usergroupid'], array(2,6,9)) AND is_numeric($forumid))


croportal 01-13-2006 01:03 PM

can i use this just for img, not for quote, php, html

i only need for the images

thanks

EasyTarget 01-13-2006 03:12 PM

wow, nice job again calorie.
I was gonna ask the same thing as croportal, can the bbcode restrictions be set up independently of eachother?

calorie 01-13-2006 08:42 PM

For just images use:
Code:

        $zzz_bbcode_array = array(
                '/(\[img])(.*)(\[\/img])/siU'
        );


croportal 01-13-2006 08:44 PM

yes but i seen something on several places img, i dont understand what i need to move

LockeAG 01-15-2006 03:53 PM

Quote:

Originally Posted by calorie
@LockeAG: try the following:
Code:

Replace the following:
 
if (!in_array($this->registry->userinfo['usergroupid'], array(2,6,9)))
 
 
With the following:
 
if (!in_array($this->registry->userinfo['usergroupid'], array(2,6,9)) AND is_numeric($forumid))



Thanks but I try it and the signatures did not appear..

calorie 01-15-2006 04:15 PM

Okay try replacing with this instead:
Code:

if (!in_array($this->registry->userinfo['usergroupid'], array(2,6,9)) AND is_numeric($forumid) AND $forumid > 0)

croportal 01-15-2006 04:30 PM

can u make that for url code

calorie 01-15-2006 04:43 PM

Working on a new version that'll be easier to use via vB options, and it'll include [URL] too.

croportal 01-15-2006 04:47 PM

<a href="http://www.croportal.net/forum/showthread.php?p=37500#post37500" target="_blank">http://www.croportal.net/forum/showt...7500#post37500</a>

loook here i have insert just for img code, and when guest wathcing you will see that he can click on the link

croportal 01-15-2006 04:52 PM

and here is normal

http://www.croportal.net/forum/showp...56&postcount=1

nasser71 01-15-2006 09:43 PM

nice work man thanks

calorie 01-15-2006 09:59 PM

Updated to use vB options and block more stuff. See screenshots in release post. If using the old version, uninstall it and then import the new version. Instructions are in the README.txt file.

silurius 01-16-2006 03:21 AM

Another excellent calorie mod. Works perfectly for most of my needs. A nice bonus would be the ability to use different blocking scenarios (e.g. block certain things from unlogged-in/guests, block other things from specific usergroups).

SnickersTK 01-16-2006 07:33 PM

How to add other BB codes you want hidden?

apfparadise 01-17-2006 02:53 AM

Quote:

Originally Posted by calorie
Updated to use vB options and block more stuff. See screenshots in release post. If using the old version, uninstall it and then import the new version. Instructions are in the README.txt file.

Calorie, looks Excellent. one snag, more my problem than yours, wonder if you can help. I have deleted the original instructions and now have no clue how to uninstall, totally forgot. :(

calorie 01-17-2006 02:58 AM

vB ACP -> Plugin System -> Manage Products -> Choose Uninstall from a Drop Down Menu

croportal 01-18-2006 02:28 PM

in here http://www.croportal.net/forum/showthread.php?t=6989

i am webmaster and i cannot see the pciture

but in diferent forums i can

calorie 01-18-2006 07:39 PM

That's an attachment, not a BB code thing. ;)

Dj-BuZ 01-18-2006 09:19 PM

can you make this hack to make the member post in order to see the hidden post ?

croportal 01-18-2006 09:20 PM

nou thats a bbcode

croportal 01-18-2006 09:21 PM

Kod:

Slike su vidljive samo registriranim korisnicima


that mean:

Picures are availble to registered users

this is the code

https://vborg.vbsupport.ru/

HTML Code:

[img]https://vborg.vbsupport.ru/[/img]

vietfancy 01-18-2006 10:45 PM

thankss

KayDEE 01-18-2006 11:22 PM

another nice hack from calorie :)
[high]* KayDEE hits install[/high]

calorie 01-19-2006 05:18 PM

Thanks for the thanks. :)

croportal, at croportal.net/forum/showthread.php?t=6989 I was looking at post one. Searching for 'Slike su vidljive samo registriranim korisnicima' brings me to post five, where I see the attached. Is it post five that you mean? If so, look in the product descriptions (ACP -> Plugin System -> Manage Products). Unintall "Hide BBcode Content" if it's still there, but keep "Hide Various BB Code Content" installed. What do you have for the "Hide Groups" in the Hide BB Code settings? What happens if you edit post five?

cclaerhout 01-19-2006 11:05 PM

In the last days, some of my members never stop asking me for a private BBCode they could use in public forum. Thanks to your hack, it was very easy to do ! A great thanks. If you want i have a french translation.

croportal 01-20-2006 02:33 PM

(ACP -> Plugin System -> Manage Products). Unintall "Hide BBcode Content"

i have deinstalled and i cannot see the pictures now, whats the problem

croportal 01-20-2006 02:42 PM

calorie, i have deinstalled you previosu version of this hack, then unnistaled, and i didnt edit the template because i dont know where to edit, you have release a plugin

then i install your plugin and sett al, and loook whats happend

http://www.croportal.net/forum/showthread.php?t=7070

the same

croportal 01-20-2006 02:56 PM

this is just now working

can u tell me hove to completely remove, i need templte revert but whic template

calorie 01-20-2006 10:25 PM

To remove: vB ACP -> Plugin System -> Manage Products -> choose Uninstall from a drop down menu

croportal 01-21-2006 09:02 AM

yes i did, but it still shown. Picutures its not viewable, only to registered userds

i have before this have installed prrevious version, and in this version i have think you must edit the template, beacuse


All times are GMT. The time now is 06:16 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.01451 seconds
  • Memory Usage 1,814KB
  • 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
  • (6)bbcode_code_printable
  • (1)bbcode_html_printable
  • (4)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