vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   via usergroup - a way to prevent BBC code - IN POSTS (https://vborg.vbsupport.ru/showthread.php?t=174368)

caliman 03-27-2008 09:31 PM

via usergroup - a way to prevent BBC code - IN POSTS
 
I am shocked to find out that my new usergroup with no BBC code setting ONLY works for sigs.

This is so lame. I have a bunch of wacko users that go crazy with BBC formatting - large fonts, etc..

Is there a way to get this ability to work in posts too?
How would you do it?

Thanks in advance..

GameWizard 03-28-2008 04:51 AM

The only thing aside from finding a hack, would be to modify the Global BB Code settings located in:

Vbulletin Options > Message Posting and Editing Options > Enabled Built-in BB Codes

caliman 03-28-2008 05:38 AM

Actually that is in vboptions > bb code settings

Enabled Built-in BB Codes
Quote:

This setting allows you to enable and disable various built-in bbcodes in vBulletin.

Disabling a bbcode will prevent it from working anywhere on the forum, including signatures, private messages, user notes etc.

This will affect everybody.


Earlier I was looking at the functions_bbcode file...

Perhaps I could put something like:

if ($bbuserinfo['userid'] != 9582) do bbcode?


I couldn't figure out where though.

Have you or anybody else played around in there?

GameWizard 03-28-2008 08:05 AM

Your best bet is to find an existing hack that allows this, I did a quick search and found this:
https://vborg.vbsupport.ru/showthrea...code+usergroup

Not sure if it'll work since it's outdated. Look more carefully, maybe I missed something.

Opserty 03-28-2008 09:46 AM

This is the modification posted above which is for vBulletin 3.6.8 https://vborg.vbsupport.ru/showthread.php?t=122942

caliman 03-28-2008 02:46 PM

I saw that but if you read the thread there have been numerous bugs reports.
I'd like to keep to a simple conditional based on user if possible.

I appreciate your help with this however. I am just trying to get away from more mods.
I am still having issues with usergroups since I had installed 'who viewed my profile'

MoT3rror 03-29-2008 03:21 AM

The function construct_postbit in the file class_postbit.php runs the post through the bbcode system with the line.

PHP Code:

$this->parse_bbcode(); 

I hope that helps you. You will just have to find the way to get the userid you want in there.

Also this is in 3.7 R1 but it probably close to the same on 3.6.8

Opserty 03-29-2008 08:34 AM

There is also a strip_bbcode() function in functions.php, which you could probably utilise.

$this->registry->userinfo['userid'] should hold a value, though I don't have the file handy so I'm no 100% sure.

caliman 08-27-2008 10:34 PM

Thanks for the tips! More are welcome...


All times are GMT. The time now is 09: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.01100 seconds
  • Memory Usage 1,727KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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