Topic: BB_Code_ImgSize
http://www.punres.org/files.php?pid=358
Great mod only one thing i want to change and maybe somebody can help me with that. When you click on a small picture you get the full picture in another window.
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 modifications, plugins and integrations → BB_Code_ImgSize
http://www.punres.org/files.php?pid=358
Great mod only one thing i want to change and maybe somebody can help me with that. When you click on a small picture you get the full picture in another window.
not needed anymore, solved it on my ownnnn
Could you explain how you did it? Im looking for that too.
okay... i just change something in the parser
//
// Turns an URL from the [img] tag into an <img> tag or a <a href...> tag
//
function handle_img_tag($url, $is_signature = false)
{
global $lang_common, $pun_config, $pun_user;
//$img_tag = '<a href="'.$url.'"><'.$lang_common['Image link'].'></a>';
if (stristr($url, $_SERVER["SERVER_NAME"]) === false)
{
$img_tag = '<a href="'.$url.'" onclick="window.open(this.href); return false;"><'.$lang_common['Image link'].'></a>';
}
else
{
$img_tag = '<a href="'.$url.'"><'.$lang_common['Image link'].'></a>';
}
if ($is_signature && $pun_user['show_img_sig'] != '0')
$img_tag = '<img class="sigimage" src="'.$url.'" alt="'.htmlspecialchars($url).'" />';
else if (!$is_signature && $pun_user['show_img'] != '0')
$img_tag = '<a href="'.$url.'" target="_blank"><img class="postimg" src="'.$url.'" alt="'.htmlspecialchars($url).'" /></a>';
// ************************ FOR PLUGIN: BB_Code_ImgSize ********************** //
include(dirname(__FILE__).'/../plugins/AMP_BB_Code_ImgSize/BB_Code_ImgSize.funcs.php');
$img_tag = BB_Code_ImgSize($img_tag);
// *************************************************************************** //
return $img_tag;
}
This is my thing, simpel but it works
$img_tag = '<a href="'.$url.'" target="_blank"><img class="postimg" src="'.$url.'" alt="'.htmlspecialchars($url).'" /></a>';
PunBB Forums → PunBB 1.2 modifications, plugins and integrations → BB_Code_ImgSize
Powered by PunBB, supported by Informer Technologies, Inc.