vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How can I allow HTML and VB code without allowing pictures? (https://vborg.vbsupport.ru/showthread.php?t=29087)

pahbi 09-28-2001 02:04 PM

I have certain forums I'd like to allow HTML and VB code so users can make lists, colors and such, but I want to disallow them from making inline pictures.

Is this possible?

- Pahbi

Admin 09-28-2001 02:06 PM

Forums and Moderators => Modify => Edit => Allow BB IMG Code in posts: NO.

pahbi 09-28-2001 02:10 PM

What about if they try to use HTML to include images?

- Pahbi

Freddie Bingham 09-28-2001 02:24 PM

Turn off HTML using the same steps.

Admin 09-28-2001 03:46 PM

If you want to keep HTML but remove <img> tags, add this to your functions.php:
Code:

  // remove all <img> tags from post
  $bbcode=str_replace("<img","&lt;img",$bbcode);

right before
Code:

  //smilies
  if($dosmilies) {

That should do the trick.

pahbi 09-28-2001 03:55 PM

Freddie,

I don't want to turn off all HTML, just the HTML that allows inline images to be put in posts.

I still want users to be able to make bold/color or whatever text, just no pictures.

- Pahbi

Admin 09-28-2001 04:05 PM

...then do what I said...

Sinecure 09-28-2001 04:20 PM

Listen to the man!

Palmer ofShinra 09-29-2001 09:10 AM

Ummm... you can get colors, font size, font change, ordered lists... most anything, through VB codes.

If your forum doesn't already have them, do some looking and add them yourself. The "Add VB Code" function exists for just that reason.

We have several different ones availiable on our site: http://130.94.171.148/board/showthre...&threadid=9584

See an example of several of them in action.

We have glow text, marquee text, Flash support... you name it.

pahbi 10-01-2001 04:28 PM

Today, someone used inline html to include java applets in their signature. I'm pretty sure I can use the same code to remove applet code, and any other offending html code.

My question is if I put in 5-6 or of those kinds of statements to substitute those strings with other things, will I hit any kind of performance barrier? Will it slow my forums down significantly?

- Pahbi


All times are GMT. The time now is 10:16 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.01005 seconds
  • Memory Usage 1,733KB
  • 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_code_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
  • (10)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