View Full Version : remove [IMG] tags automatically when quoting
MaDCaT75
09-26-2003, 04:58 AM
Can someone do a hack or is there a way to auto remove [IMG] tags when quoting images? I dont want all that un-necessary space taken up when quoting images. And could the hack include maybe auto removal of all existing [IMG] tags in all quoted posts?
Oh and also could the person who does this hack make it work with QuickQuoteII? Thanks.
Xenon
09-26-2003, 06:28 PM
it's really easy to do it yourself:
open newreply.php
find:
$pagetext = trim(preg_replace("/(\[quote])(.*)(\[\/quote])/siU", "", $pagetext));
and below add:
$pagetext = trim(preg_replace("/(\[img])(.*)(\[\/img])/siU", "", $pagetext));
MaDCaT75
09-26-2003, 08:15 PM
Thanks.
MaDCaT75
09-27-2003, 05:50 AM
That didnt seem to work.... it still has the img tags in the reply :ermm:
Are you sure it works with quick quote too?
Xenon
09-27-2003, 01:34 PM
as i haven't installed quickquote i cannot answer that question.
maybe you have to add this line to another point, too for quickquote
at least it should work for normal quotes, as it's the same replacement as the quote replacement
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.