MyBB Community Forums

Full Version: [mycode] photobucket and fileshack redirection
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I would like to make it so whenever someone uses the img tags to link a picture hosted on photobucket or imageshack so it redirects them to a custom picture of my choice.

This is what I have so far:

Regexp
(http.*.photobucket.com/*/*/*/.*.jpg)

Replacement
http://www.example.com/example.jpg

When I use this, the address shows up fine and leaves the img tags intact but it don't open the picture.

I basically have no idea how this works and everytime I fix one problem it leads to another. I'm also aware that by having jpg at the end limits it to just jpg so it would be nice if the solution works for all file formats.

I also tried using the word filter but that only breaks the image link without giving an explanation of why it isn't working.
Add img tags to the regex and replacement [img][/img]