Version: 1.00, by Dannyloski
Developer Last Online: Mar 2012
Category: BB Code Enhancements -
Version: 3.6.8
Rating:
Released: 08-18-2007
Last Update: Never
Installs: 18
No support by the author.
Hey Guys,
I know I was searching for a feature like this for the longest time and had no luck. Well I decided to do some digging and after a while I was able to find the code that you can use to remove the [IMG] Tag from Quotes in Posts under vB 3.6.0 and up.
This specific Modification will change all [IMG] Tags into [URL] Tags when they are inside a Quote. I guess that's pretty self explanatory.
Special thanks to masalaman for the code, I'm just posting it here for others to use it as they may be searching for it and it took me a while to find it. I guess this will just make you life's easier :up:
Modification Instructions:
1) Open includes/class_bbcode.php 2) Find the following line:
// Start IMG to URL BBCode Converter
if ($this->contains_bbcode_img_tags($html))
{
$html = preg_replace('#\[img\]\s*(https?://([^<>*"]+|[a-z0-9/\\._\- !]+))\[/img\]#iUe', "\$this->handle_bbcode_url(str_replace('\\\"', '\"', '\\1'), '')", $html);
}
// End IMG to URL BBCode Converter
4) Repeat steps 2-3 for every place that the line on Step 2 appears in the class_bbcode.php file (Four Times) 5) Save & Overwrite the File to your Server ... That's it! Enjoy!
- Danny
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
You don't really need a file modification to do this...It can be done via plugins.
Well I do not know how to do plugins, if you wish to create one using the code above, feel free to do so and post it here. I did not write the code, it was written by masalaman, like I said in the first post. I just posted the code here so that other can use it since if you search for it you really have to do some digging until you find it on the forums.
Zai, Im not going to be releasing a Plugin Version, so if you're gonna be waiting for that, you should ask someone else to see if they are willing to make a plug in. I might do it in the future, but I'm too busy right now to learn how to do Plugins, so I wont be dong it anytime soon.
As far as the error on the [img], [Img], [iMg], [IMG], [imG] that is not a problem with this Modification. It converts it anyway.
Well I do not know how to do plugins, if you wish to create one using the code above, feel free to do so and post it here. I did not write the code, it was written by masalaman, like I said in the first post. I just posted the code here so that other can use it since if you search for it you really have to do some digging until you find it on the forums.