vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   remove [img] tag when quoting a post. (https://vborg.vbsupport.ru/showthread.php?t=32328)

jamie 11-11-2001 10:34 AM

title says it all relly;)

Admin 11-11-2001 12:12 PM

In newreply.php, add this:
Code:

    $pagetext = preg_replace("/(\[quote])(.*)(\[\/quote])/siU", "", $pagetext);
right after this:
Code:

    $pagetext = preg_replace("/(\[img])(.*)(\[\/img])/siU", "", $pagetext);
I hope this works, I suck with regexes so I just copied it.

Let me know. :)

jamie 11-11-2001 02:53 PM

works like a treat:D

huge thanks. :)

Gutspiller 01-25-2002 05:21 AM

I don't have this line

Code:


$pagetext = preg_replace("/(\[img])(.*)(\[\/img])/siU", "", $pagetext);

in my newreply.php

My version of VB is 2.0.3 Can you give me another line to look for?

Thanks in advance. :up:

Reeve of shinra 01-25-2002 03:10 PM

Using 2.0.3 as well and I would like to use this as well.

Reeve of shinra 01-26-2002 12:18 AM

I guess Palmer already did this .... cause its already in our board. lol

anway ,... do a search for $pagetext

You should see something like this:
Quote:

$pagetext=htmlspecialchars($postinfo[pagetext]);
Replace whats under that so it looks like this:

[quote]
// strip IMG tags from quotes
$pagetext = preg_replace("/(\[img])(.*)(\[\/img])/siU", "", $pagetext);
$pagetext = preg_replace("/(\
Quote:

)(.*)(\[\/quote])/siU", "", $pagetext);
eval("\$message = \"".gettemplate("quotereply",1,0)."\";");
}
}

now to make this strip out glow!

Gutspiller 01-28-2002 03:56 PM

All I have is this:

PHP Code:

[QUOTE][i]Originally posted by $originalposter [/i]
[
B]$pagetext [/B][/QUOTE



All times are GMT. The time now is 01:36 AM.

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.00959 seconds
  • Memory Usage 1,724KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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