ImageAlttext 1.1 für RC4
Posted: Thu 21. Apr 2005, 08:54
Wo finde ich denn den Hack ImageAlttext 1.1 ?
Irgendwie geht der Link bei Trip nur zum DownloadCounter....
Irgendwie geht der Link bei Trip nur zum DownloadCounter....
The phpwcms support forum will help to find answers to your questions. The small but strong community is here since more than 10 years.
https://forum.phpwcms.org/
Code: Select all
/********************************************
titel: {IMG} Replacement-Tag
description: {IMG:path:alt-text:style}
show an image from the picture dir and down with alt text
and styledefinitions
example: {IMG:image.jpg:this is image with alt text:vertical-align:text-bottom;}
author: Marcus Obst
last modified: 21-03-2005 created
********************************************/
function alttextimg($pic='',$alt='',$style='') {
$image_with_alt = '';
$pic = preg_replace('/\{IMG:(.*?):(.*?):(.*?)\}/e', '"$1"', $pic);
$alt = preg_replace('/\{IMG:(.*?):(.*?):(.*?)\}/e', '"$2"', $alt);
if ($style != "") $style = preg_replace('/\{IMG:(.*?):(.*?):(.*?)\}/e', '"$3"', $style);
$image_with_alt .= "<img src=\"picture/$pic\" alt=\"$alt\" border=\"0\"";
if ($style != "") $image_with_alt .= "style=\"$style\"";
$image_with_alt .= " />";
return $image_with_alt;
}
if( ! ( strpos($content["all"],'{IMG')===false ) ) {
$content["all"] = preg_replace('/\{IMG:(.*?):(.*?):(.*?)\}/e','alttextimg("$1","$2","$3");',$content["all"]);
}