vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   PHP Help, Stripping HTML tags and updating MySQL. (https://vborg.vbsupport.ru/showthread.php?t=169399)

Dismounted 02-03-2008 10:54 AM

Quote:

Originally Posted by speedway (Post 1435184)
Thanks Hanson

I tried that but it strips everything *but* the font & size tags :) I have tried nutting this one out myself but am still lost.

Cheers
Bruce

In the second function you posted, you said it strips everything but the font/size tags. But my function does it as well? That's not really possible as I've reversed the conditions...
Quote:

Originally Posted by Reecey (Post 1435187)
where do i put this code i would like to get rid of html used on my forum to as when i first opened many post's were made using html and i would prefer it to be bb code where do i put the code ?

This strips BB Code, not HTML.

kansei 02-27-2008 07:13 PM

Quote:

Originally Posted by Reecey (Post 1435187)
where do i put this code i would like to get rid of html used on my forum to as when i first opened many post's were made using html and i would prefer it to be bb code where do i put the code ?

+1

a new member on the forum I admin on copied a post from a different forum which is vbulletin BUT ALLOWS HTML in posts.. bah!

It's seriously hundreds and hundreds of ugly photobucket image tags with target _blank and oh so many things.

I spent 20 minutes manually changing them all to vbcode img tags but.. I'm only 1/3 of the way through?

Poet PHP 02-28-2008 05:17 AM

if U want to replace BBcode to HTML use this

PHP Code:

require_once('./global.php');
require_once(
DIR '/includes/class_bbcode.php');
     
$bbcode_parser =& new vB_BbCodeParser($vbulletinfetch_tag_list());
       
$previewmessage $bbcode_parser->parse($message); 

and to remove them use the

PHP Code:

 $previewmessage  strip_tags(strip_bbcode($messagetruetrue)); 

see the result www.akafi.net/tvv.php


All times are GMT. The time now is 12:49 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.01035 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete