Quote:
Originally Posted by accludetuner
Here, for more info....if I alter the admin php and comment out the "\1" check like this:
PHP Code:
$value = trim($value);
//if (strpos($value, '\1') === false)
//{
// $errors[] = $vbphrase['automediaembed_err_missing_param'];
//}
//else
//{
$replacements[] = "[url]$value" . "[/url]";
//}
then it will go on to do the simulated conversion but it doesn't actually replace the link. It shows conversions like this:
I even got tired of manually filling out the tags and replacements each time so I altered these in the admin file and this is EXACTLY what shows up in the conversion page and as you can see there is no trailing spaces or characters:
PHP Code:
if (!isset($settings['codes']))
{
$settings['codes'] = 'youtube, gvideo, myspacevideo';
$settings['conversions'] = 'http://www.youtube.com/watch?v=\1, http://www.google.com/videoplay\?docid=\1, http://www.myspace.com/index.cfm?fuseaction=vids.individual&videoid=\1';
}
|
Well, I couldn't wait any more and since no one seemed to have any input on this issue I just manually created a SQL query to replace the old BBcodes with the new AME one. Took several hours of manual entry but at least it got done.
To whoever is currently maintaining this mod, I do believe it is a flaw somewhere in the code. Perhaps it's a PHP version conflict or something, but I am 100% sure that I had the fields filled correctly. Hell, even the DEFAULT entries produced the same error without any change. It might be a fluke error but I would suggest looking into it as I'm not the only one who has experienced it and perhaps others will in the future too.
Thanks for an awesome mod (even with this issue I had) !!!