vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   HTML -> BBCode Tags Without Changing The HTML Tags (https://vborg.vbsupport.ru/showthread.php?t=60027)

santino 01-10-2004 09:04 PM

HTML -> BBCode Tags Without Changing The HTML Tags
 
Using a vb3 hack I have a forum that is full of news stories that contain HTML tags, they display on to my front page and are interpreted there correctly (don't have anything right now that parses and shows bbcode correctly on the front page so I need html.)

Recently I have learned first hand how dangerous it is to allow HTML tags in your forum :(

When I disable HTML, anyone going into the vB forum area reading these posts now sees the original news story with inactivate html tags strewn about and it looks ugly and almost impossible to read.

Is there any hack/mod/method that I could use that would allow me to:

1. Disable HTML on my vBulletin forum
2. Have vB3 interpret specific HTML tags as BBcode tags without changing them (i.e. if I use < b >, vb3 would see this as [ b ] and use that in posting to the forum form that users display - but HTML tags would still be in tact in the DB so that my main page interprets them and posts them correctly).
3. Continue to use HTML in news posts now, with step 2 converting those specific tags, like < b >, < i >, < u >, < a >, and < img >, being the only tags recognized going forward by the forum for displaying them in bbcode instead.

Sorry if my post is confusing. Does this exist already? Would it be easy to do?

-Joshua

Xenon 01-10-2004 10:56 PM

No it doesn't exist already.

Yes it is doable and shouldn't be that hard if i see this correctly
(just a little edit to parse_bbcode, some preg_replaces)

But i would suppose, you should use the vb-parsing function on your newspage as well.
Most portals do this, as it's not that hard :)


All times are GMT. The time now is 09:58 PM.

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.01027 seconds
  • Memory Usage 1,706KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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