Page 1 of 1

Remove border=0 from image??

Posted: Thu 25. May 2006, 01:25
by baby2boy
Hi,

I can't seem to find where I need to go to delete border="0" from the article image - [IMAGE] - which is used in the full article display template.

I need to get this sorted for a charity website which requires WAI AAA authentication to ensure it get a grant from the govt.

Many thanks in advance.

Jon

Posted: Thu 25. May 2006, 04:19
by DeXXus
Do you mean from "conf.template_default.inc.php":

Code: Select all

$template_default["article"]["image_border"]			= 0;

Posted: Thu 25. May 2006, 10:20
by baby2boy
Hi,

Thanks for getting back. I have already removed the following code but it still doesn't remove the border attribute from the img tag?

Code: Select all

$template_default["article"]["image_border"]         = 0;
Please advise??

Many thanks
Jon

Posted: Thu 25. May 2006, 16:04
by DeXXus
Oh, you must mean the Replacement Tags here? :?:

"include/inc_front/front.func.inc.php"

Code: Select all

// insert non db image standard
	$search[7]		= '/\{IMAGE:(.*?)\}/';
	$replace[7]		= '<img src="picture/$1" border="0" alt="" />';
	
	// insert non db image left
	$search[8]		= '/\{IMAGE_LEFT:(.*?)\}/';
	$replace[8]		= '<img src="picture/$1" border="0" align="left" alt="" />';
	
	// insert non db image right
	$search[9]		= '/\{IMAGE_RIGHT:(.*?)\}/';
	$replace[9]		= '<img src="picture/$1" border="0" align="right" alt="" />';
	
	// insert non db image center
	$search[10]		= '/\{IMAGE_CENTER:(.*?)\}/';
	$replace[10]		= '<div align="center"><img src="picture/$1" border="0" alt="" /></div>';

Posted: Fri 26. May 2006, 12:00
by baby2boy
Excellent thank you very much, although what you posted wasn't what I meant, it pointed me to the right file 'content.article.inc.php' I just removed border=0 from it.

Code: Select all

$thumb_img = '<img src="'.PHPWCMS_IMAGES . $thumb_image[0] .'" '.$thumb_image[3].' alt="'.$caption[1].'" title="'.$caption[1].'">';