Remove border=0 from image??

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
baby2boy
Posts: 12
Joined: Fri 23. Sep 2005, 00:10

Remove border=0 from image??

Post 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
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

Do you mean from "conf.template_default.inc.php":

Code: Select all

$template_default["article"]["image_border"]			= 0;
baby2boy
Posts: 12
Joined: Fri 23. Sep 2005, 00:10

Post 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
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post 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>';
baby2boy
Posts: 12
Joined: Fri 23. Sep 2005, 00:10

Post 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].'">';
Post Reply