Page 1 of 1

Parse error: syntax error and white shades in box

Posted: Thu Dec 11, 2014 10:17 pm
by weyodaHK
Hello Guys,
I am a newbie here, not a coder. :)

Kindly please help me guide with the above issues I encountered:

I am using Opencart 2x default theme. no extensions being installed.

Issues:
I changed the image gradient background using with this css which I found from the css3wizardry/tag/safari.

below is the css

body {

font-family: 'Open Sans', sans-serif;
background-image:
linear-gradient(-45deg,
transparent 1%,
rgba(0,0,0,0.1) 15%,
rgba(0,0,0,0.1) 50%,
transparent 60%,
transparent 45%,
rgba(0,0,0,0.1) 65%);
background-size: 6px 6px;
}

And its gives me a very nice background image but the problem is, all the (featured) or product images has a white shades inside the box.

When I tried to click some certain products, Its gives me the error says: Parse error: syntax error, unexpected ')' in /home/mystore/public_html/system/library/image.php on line 91

below is the line 91 css:

$background = imagecolorallocatealpha($this->image, 255, 255, 255,);


Please advise as this is my first submission.

Thank you in advance.

Warm Regards,

weyodaHK

Re: Parse error: syntax error and white shades in box

Posted: Fri Dec 12, 2014 1:22 am
by RonLens
Change

Code: Select all

$background = imagecolorallocatealpha($this->image, 255, 255, 255,);
to

Code: Select all

$background = imagecolorallocatealpha($this->image, 255, 255, 255, 127);

Re: Parse error: syntax error and white shades in box

Posted: Fri Dec 12, 2014 3:36 am
by weyodaHK
Hi Ronles,

Thank you so much for the response.

I managed to solve the above issue except for the white border. I need more time to play along with this awesome OC ;)

Regards,

WeyodaHK