Quote:
Originally Posted by BirdOPrey5
Looking at this example URL from Photobucket:
Code:
http://i170.photobucket.com/albums/u267/bcblondie05/Bunny.jpg
It appears Photobucket does keep the original file name *Bunny" in this case, so yes it should work with Photobucket uploaded images.
Because the hook used by this mod was introduced in version 4.1.10, the only way it would work on older versions is with a manual file edit.
If you want to try in 4.1.8 you will need to edit your file /includes/class_bbcode.php
Find the function:
PHP Code:
function handle_bbcode_img_match($link, $fullsize = false)
{
$link = $this->strip_smilies(str_replace('\\"', '"', $link));
// remove double spaces -- fixes issues with wordwrap
$link = str_replace(array(' ', '"'), '', $link);
$retval = ($fullsize ? '<div class="size_fullsize">' : '') . '<img src="' . $link . '" border="0" alt="" />' . ($fullsize ? '</div>' : '');
return $retval;
}
and add the hook manually so it becomes:
PHP Code:
function handle_bbcode_img_match($link, $fullsize = false)
{
$link = $this->strip_smilies(str_replace('\\"', '"', $link));
// remove double spaces -- fixes issues with wordwrap
$link = str_replace(array(' ', '"'), '', $link);
$retval = ($fullsize ? '<div class="size_fullsize">' : '') . '<img src="' . $link . '" border="0" alt="" />' . ($fullsize ? '</div>' : '');
($hook = vBulletinHook::fetch_hook('bbcode_img_match')) ? eval($hook) : false;
return $retval;
}
You would also need to edit the xml file in the zip and change the min version near the top to 4.1.0 or any number less than or equal to your version.
Be warned though there were over 30 new hooks added to 4.1.10- there will be a lot of new mods coming that will only work with 4.1.10 and above- you should upgrade.
|
in 4.1.9 is different
from this
Code:
function handle_bbcode_img_match($link, $fullsize = false)
{
$link = $this->strip_smilies(str_replace('\\"', '"', $link));
// remove double spaces -- fixes issues with wordwrap
$link = str_replace(array(' ', '"'), '', $link);
return ($fullsize ? '<div class="size_fullsize">' : '') . '<img src="' . $link . '" border="0" alt="" />'
. ($fullsize ? '</div>' : '');
}
to this
Code:
function handle_bbcode_img_match($link, $fullsize = false)
{
$link = $this->strip_smilies(str_replace('\\"', '"', $link));
// remove double spaces -- fixes issues with wordwrap
$link = str_replace(array(' ', '"'), '', $link);
return ($fullsize ? '<div class="size_fullsize">' : '') . '<img src="' . $link . '" border="0" alt="" />'
. ($fullsize ? '</div>' : '');
($hook = vBulletinHook::fetch_hook('bbcode_img_match')) ? eval($hook) : false;
}
and it worked thanks buddy:up: