vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   custom bb by usergroup? (https://vborg.vbsupport.ru/showthread.php?t=76589)

indie 02-18-2005 07:27 PM

custom bb by usergroup?
 
Is there a way to disallow a custom bb code from working for specific usergroups? I have a few custom ones, like mp3 player, etc, I'd like disallow them for certain groups. I think I can just wrap a conditional around the code in the custom bb code, but I don't know what to put. Can anyone help?

If the selection can not show up in the menu that would be great, otherwise, if it just doesn't work for them, that's good too.
Thanks

ericgtr 02-18-2005 07:52 PM

I have a custom bbcode as well with this mod https://vborg.vbsupport.ru/showthrea...threadid=72162 . I have dug and dug but haven't been able to come up with a way to secure this by groups which is why I haven't moved it out of beta.

indie 02-26-2005 03:00 AM

There must be a way! :)

RiP-Productions 03-23-2005 07:37 AM

Indeed, this would be nice.
Because then I can use my Mod= BBcode only for the crew :)

Marco van Herwaarden 03-23-2005 08:11 AM

The problem is that normal (i think, not 100% sure) bb-codes are not evaluated when the post is made, but when the page is shown. So you should create a new check when the post is made.

And what if the user edits his own post after the moderator has added this code. He could remove it, or the edit would be refused because he don't have permission to use it.

RiP-Productions 03-23-2005 04:23 PM

Quote:

Originally Posted by MarcoH64
And what if the user edits his own post after the moderator has added this code. He could remove it, or the edit would be refused because he don't have permission to use it.

That when a mod edited the post, the post should be locked (other table?) for non crew members (putting a flag ?).

Marco van Herwaarden 03-23-2005 07:15 PM

Well now you're going a few steps further then just a bb-code.
Well maybe someone will have time to make something like this, i haven't seen it around yet.


All times are GMT. The time now is 10:39 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.00977 seconds
  • Memory Usage 1,720KB
  • 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)bbcode_quote_printable
  • (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