Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-27-2008, 09:31 PM
caliman's Avatar
caliman caliman is offline
 
Join Date: Jan 2005
Location: California
Posts: 256
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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..
Reply With Quote
  #2  
Old 03-28-2008, 04:51 AM
GameWizard's Avatar
GameWizard GameWizard is offline
 
Join Date: Apr 2004
Location: Vancouver, BC
Posts: 319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 03-28-2008, 05:38 AM
caliman's Avatar
caliman caliman is offline
 
Join Date: Jan 2005
Location: California
Posts: 256
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #4  
Old 03-28-2008, 08:05 AM
GameWizard's Avatar
GameWizard GameWizard is offline
 
Join Date: Apr 2004
Location: Vancouver, BC
Posts: 319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 03-28-2008, 09:46 AM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is the modification posted above which is for vBulletin 3.6.8 https://vborg.vbsupport.ru/showthread.php?t=122942
Reply With Quote
  #6  
Old 03-28-2008, 02:46 PM
caliman's Avatar
caliman caliman is offline
 
Join Date: Jan 2005
Location: California
Posts: 256
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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'
Reply With Quote
  #7  
Old 03-29-2008, 03:21 AM
MoT3rror MoT3rror is offline
 
Join Date: Mar 2007
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #8  
Old 03-29-2008, 08:34 AM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 08-27-2008, 10:34 PM
caliman's Avatar
caliman caliman is offline
 
Join Date: Jan 2005
Location: California
Posts: 256
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the tips! More are welcome...
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:17 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04501 seconds
  • Memory Usage 2,237KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete