Log in

View Full Version : Possible to Disable BB Code In Posts?


edytwinky
08-03-2008, 06:56 PM
Is it possible to disable bb code in a particular posts and not the entire forum?

Bellardia
08-04-2008, 01:00 AM
Can you specify what you mean by posts? As in first post in a thread, last post, or I assume you meant in certain threads or subforums.

You'll have to make a template hook that checks a threads location just before it's submitted.

edytwinky
08-04-2008, 11:52 AM
Say I start a new thread with a table completely written in HTML. When I post it, it looks really messed up when I have bb codes allowed.

So I'd like to remove bb code in that particular thread.

Dismounted
08-04-2008, 12:12 PM
Possible - but not without a modification, that probably doesn't exist at the moment.

Lynne
08-04-2008, 02:37 PM
You might be able to make a plugin at the global_start location that sets $vbulletin->options['allowedbbcodes'] to 0 (or whichever number needed) in certain forums. That option though is a strange one to have to set based on all the different options given in the vbtoptions checklist.

edit: whoops, you said just in some posts, not in a whole forum. Yuck! I'm not sure about that.

edytwinky
08-04-2008, 03:58 PM
Well to make things easier.

What is the best way to post a table in a post? I have it made in html but is there something else I could use?

Lynne
08-04-2008, 06:08 PM
Well to make things easier.

What is the best way to post a table in a post? I have it made in html but is there something else I could use?
The only way to post a table in the post is to allow html (not recommended) or make some table bbcode (I've seen that around somewhere but don't have it installed so I don't have a link to it).

edytwinky
08-05-2008, 12:32 PM
Why isn't HTML recommended?

Lynne
08-05-2008, 01:57 PM
It's a security risk. Malicious users could break your board if you allow html.

Dismounted
08-06-2008, 06:44 AM
Why isn't HTML recommended?
Number one reason is XSS (Cross Site Scripting).

edytwinky
08-06-2008, 04:48 PM
Thanks for the tip.

edytwinky
09-05-2008, 01:16 AM
Anybody know of a mod to insert tables into a post?

Lynne
09-05-2008, 02:41 AM
Anybody know of a mod to insert tables into a post?
Search is in the upper right hand corner ^^

First hit for "table" "all mods" "titles only" - BB Code [table] (https://vborg.vbsupport.ru/showthread.php?t=107985&highlight=table)