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)
-   -   Miscellaneous Hacks - Disable BBCodes/Smilies Per Users/Usergroups (https://vborg.vbsupport.ru/showthread.php?t=322301)

draco.mf 09-04-2016 01:38 AM

Will try to detect and let You know

MarkFL 09-04-2016 02:01 AM

Quote:

Originally Posted by draco.mf (Post 2575528)
Will try to detect and let You know

Thank you! I appreciate it and apologize for the inconvenience. I am hoping you don't have a huge number of products installed and it won't be a Herculean effort to find it. :)

Tom_Jones 03-11-2017 03:42 PM

I'm looking for a mod that does sort of the reverse of this one. I have a set of BBCodes that I only want specific users/usergroups to be able to use (and potentially a different set of users/groups per BBCode). In essence, I wish to enable, instead of disable, certain BBCodes per user/usergroup. Does something like this exist?

Alan_SP 03-12-2017 06:22 PM

Yes, I also like this idea. Abe's mod does this, but it is pretty complicated to set up.

Peter Walker 12-17-2017 12:49 PM

First of all, your instructions are confusing. You tell people to upload the file into the server root directory. Many people put vBulletin in a subdirectory like /forum and they would be confused as to where to put it. After experimenting, I found you meant the forum root directory. For example, if vbulletin is installed in www.mywebsite.com/forum, then the directory and contents has to be uploaded to www.mywebsite.com/forum/markfl_disablebbcodes and NOT www.mywebsite.com/markfl_disablebbcodes which would be the server directory.

I am trying to set this up so that members of a premium secondary usergroup (30) can use the bbcodes and everyone else cannot. This is to restrict access to videos, etc. to those that have permission. I am still working out how to get this to work with your mod. It would therefore be much easier if an extra setting could be added to switch to enabling the bbcodes for just selected usergroups instead of disabling for all, but.
I originally installed the first version of this mod, before discovering version 1.4 that I have now installed under vBulletin 4.2.5.

This is how I setup the mod:
Set whether product is active or not.: Yes
BBCode Tag Names: audiop,videomp4p,videomp4vttp
Smilies:
Usergroups: Marked all usergroups except: None,All,Administrators,Premium
Usergroup Membership Type: I tested all three variants - see below.
Usernames:
Individual Restrictions:
Replace BBCodes/Smilies With Message? Yes, For BBCodes Only
Active Areas: All ticked
Suppression Type: Display

As far as I could see, this should work. Everybody who has the Premium group activated as a secondary group should be allowed to see the content, everyone else should see the error message.

I tried setting Usergroups: ALL
This blocked access for everyone.
- Primary Usergroups Only: Blocked
- Secondary Usergroups Only: Blocked
- Primary And Secondary Usergroups: Blocked

I tested this with three users:

User: Administrator
Usergroup Primary : Administrator
Usergroup Secondary: Premium
Expectation: Should by able to use the bbcode as he belongs to the premium group.

User: PremiumUser
Usergroup Primary : Registered Member
Usergroup Secondary: Premium
Expectation: Should by able to use the bbcode as he belongs to the premium group.

User: NormalUser
Usergroup Primary : Registered Member
Usergroup Secondary:
Expectation: Should by blocked from seeing the bbcode and shown an error message, instead.


Test 1:
Usergroups: All marked except: None, All, Administrators, Premium
User: Administrator (should always have access)
- Primary Usergroups Only: BBCode Displayed
- Secondary Usergroups Only: Blocked
- Primary And Secondary Usergroups: Blocked

User: NormalUser (should be denied access)
- Primary Usergroups Only: BBCode Displayed, although should be blocked
- Secondary Usergroups Only: Blocked
- Primary And Secondary Usergroups: Blocked

User: PremiumUser (should have access)
- Primary Usergroups Only: BBCode Displayed, OK
- Secondary Usergroups Only: Blocked, although member of premium usergroup!
- Primary And Secondary Usergroups: Blocked

Test 2:
Usergroups: Premium usergroup selected, ONLY (Administrator and PremiumUser have this as secondary group)
User: Administrator (should always have access)
- Primary Usergroups Only: BBCode Displayed
- Secondary Usergroups Only: Blocked
- Primary And Secondary Usergroups: Blocked

User: NormalUser (should be denied access)
- Primary Usergroups Only: BBCode Displayed, although should be blocked
- Secondary Usergroups Only: Blocked
- Primary And Secondary Usergroups: Blocked

User: PremiumUser (should have access)
- Primary Usergroups Only: BBCode Displayed, OK
- Secondary Usergroups Only: Blocked, although member of premium usergroup!
- Primary And Secondary Usergroups: Blocked


As you can see, there is no combination that works correctly. What am I doing wrong?

Peter Walker 12-22-2017 09:07 PM

I have solved my problem, but not with this Mod. It appears to be flawed and does not work properly, I uninstalled it.

It turns out that another similar Mod, by the same author, does work properly and with a minor change, will do exactly what I needed.

The Mod is Hide BBCodes/Signatures From Guests/Users and I explain what needs to be changed, there in post #110. I even provide my updated product file.

So if you need to enable a BBCode in just some forums of your choice, that is the way to do it.
I have implemented it on my forum and it works well.

I hope this helps.

MarkFL 12-22-2017 10:27 PM

Quote:

Originally Posted by Peter Walker (Post 2591762)
I have solved my problem, but not with this Mod. It appears to be flawed and does not work properly, I uninstalled it.

Your use of the product was the inverse of the intended usage, so that was where the issue was. As far as I know, everyone who uses this for its intended purpose finds it works correctly. ;)

Peter Walker 12-22-2017 11:32 PM

I tested it as it was intended, and even then it was not reliable. Now this could be something that was specific to my forum. Either way for me, the other mod was reliable from the start - this one was not.

MarkFL 12-23-2017 04:41 AM

It could be your use of secondary usergroups gave you results you didn't expect. If a user is a member of an allowed group and also a member of a disallowed usergroup, the net result is they will be disallowed.

two dogs 03-10-2019 04:21 AM

1 Attachment(s)
Hi Mark,

I've recently installed this excellent mod on a couple of vBulletin 4.2.5 forums that I administer.

As it was working well on the first one I installed it on, I installed it on the second one. Soon after, I was informed by a user that he was receiving the following requester on clicking on the Post Quick Reply button, after typing a response into the Quick Reply panel:

Attachment 157371

This had never happened previously, and the normal behaviour returned on disabling the mod. A little more testing determined that with the mod enabled, but no tag names specified, the problem didn't occur!

I didn't notice the problem on the first forum, as I had disabled the Quick Reply option on it. When I temporarily enabled it there, the problem manifested itself.

Wondering if there was a conflict with some other mod, I tried disabling them all on a test version of the production forum, but the problem persisted.

I've just now done an install of a new, clean, V4.2.5 forum, with no changes to the default configuration. Yes, Click Not Required was the default for the Quick Reply option.

After creating a thread, and doing a couple of Quick Replies, without any problem, I installed the mod, and the problem manifested itself (again, only when a tag name was specified). So, it would seem that the problem isn't caused by any conflict with another mod?

Any ideas?

Cheers,
Julian

two dogs 03-10-2019 04:39 AM

Mark,

Please hold off on investigating/answering this, as I may have since found the problem.

Cheers,
Julian

two dogs 03-10-2019 08:38 PM

Hi Mark,

I haven't found the problem, but I was wrong in saying that I could reproduce it on a clean install of V4.2.5. In my haste, I hadn't copied markfl_disablebbcodes/disablebbcodes.php to the server! That resulted in the requester being displayed when I tried a Quick Reply to a post I had in my browser, prior to installing the mod. I later realised my error when I got a 500 error on responding to the requestor!

So, as it works fine on a clean install, I guess I'm going to have to try installing all the other mods I have on the other forums, one by one, on my new test system to see which one is in conflict. Or perhaps it's a vBulletin setting?

Any thoughts you have on what sort of interaction with mods/settings that could cause this would be appreciated.

Cheers,
Julian

autje 08-13-2019 06:08 PM

Quote:

Originally Posted by two dogs (Post 2598741)
Hi Mark,

I haven't found the problem, but I was wrong in saying that I could reproduce it on a clean install of V4.2.5. In my haste, I hadn't copied markfl_disablebbcodes/disablebbcodes.php to the server! That resulted in the requester being displayed when I tried a Quick Reply to a post I had in my browser, prior to installing the mod. I later realised my error when I got a 500 error on responding to the requestor!

So, as it works fine on a clean install, I guess I'm going to have to try installing all the other mods I have on the other forums, one by one, on my new test system to see which one is in conflict. Or perhaps it's a vBulletin setting?

Any thoughts you have on what sort of interaction with mods/settings that could cause this would be appreciated.

Cheers,
Julian

Hi Julian,

ever found a solution for this? Because I'm facing the same problem.

Thanks,
Marc


All times are GMT. The time now is 11:00 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.01296 seconds
  • Memory Usage 1,780KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)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