vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Request: High powered HTML to BBCode converter (https://vborg.vbsupport.ru/showthread.php?t=82984)

VBCoder 06-12-2005 10:59 PM

Request: High powered HTML to BBCode converter
 
Hi. I'm looking for a high powered HTML to BBCode converter. Yes, there already is convert_wysiwyg_html_to_bbcode(), but it has two limitations:

1) It seems to mess up carefully spaced things (using <pre> tags). This is no big deal until you put Python code (in html form) through :surprised:

2) It seems to be limited in the html it can handle - more for wysywig stuff - I'm looking to take an actual html page, and load it up into a post, as bbcode

Any help would be appreciated.

Forgot to add - also, convert_wysiwyg_etc chokes on &quote;'s - they come in literally (ampersand-q-u-o-t-e-;), not as quotation marks

eXtremeTim 06-13-2005 06:14 AM

This would be very difficult todo. Reason being is that html can be laid out in 100's of different ways at times to achive the same effect.

Also there as so many tags that can be used in web pages which you wouldnt want to create a bbcode for such being javascript which a good deal of pages now rely on.

Finaly you would need a bbcode for every thing in an html page could possible have. Meaning 1000's off bbcodes.

VBCoder 06-15-2005 01:56 AM

Tim, that's a good point. Let me rephrase my request then:

1) A patch to handle spacing properly (<pre>'s and whatnot), specificly for Python code.

2) A patch to handle &quote's properly (and any other similar entities).

eXtremeTim 06-15-2005 06:24 AM

spacing whats happening is your taking a file that was done with type spacing of the space bar and on the web it will only show one of them. Your best bet is for " " to be replaced with &nbsp;


All times are GMT. The time now is 07:39 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.00983 seconds
  • Memory Usage 1,710KB
  • 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
  • (4)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