Quote:
Originally Posted by Tulsa
Maybe this was just some kind of fluke?? Someone on my sight just quoted a pic and it worked fine.
Update:
I'm not sure this is going to make any sense at all but it appears to only be happening when you are quoting a pic hosted from imageshack or photobucket??
Other sources of pics from other servers work fine?
|
Okay, I know what the issue is now. When people are using ImageShack or PhotoBucket to host pics, those services provide the links complete with the image tags to paste into a post, they are providing all caps [IMG] tags and this hack is replacing only [img] tags.
I went in and edited both locations in the plug-in manager as a test and copied the code and duplicated it, replacing only the [img] with [IMG] (all caps) and it's now working perfectly.
I'm no coder and I'm sure theres a cleaner way to do this but as a quick test to determine the issue this worked rather nicely.
PHP Code:
$pagetext = str_replace( "[IMG]", "[url]", $pagetext );
$pagetext = str_replace( "[/IMG]", "[/url]", $pagetext );
$pagetext = str_replace( "[img]", "[url]", $pagetext );
$pagetext = str_replace( "[/img]", "[/url]", $pagetext );