Forums / Templates, Stylesheets, Page Layout / Can't Insert Image in Define Pages Editor

Can't Insert Image in Define Pages Editor

Views: 11,573

Results 21 to 31 of 31
7 Jun 2007, 8:11 AM
#21
arpeggio avatar

arpeggio

Zen Follower

Join Date:
Dec 2006
Location:
Tokyo, Melbourne, Shanghai
Posts:
102
Plugin Contributions:
0

Can't Insert Image in Define Pages Editor

Yahooooooo!!! Thanks Glenn it worked!!
I put it in "tpl_main_page.php".

Absolutely wonderful.
Arigato.

arpeggio

28 Oct 2009, 11:42 AM
#22
bumpterminator avatar

bumpterminator

New Zenner

Join Date:
Oct 2009
Posts:
1
Plugin Contributions:
0

Re: Can't Insert Image in Define Pages Editor

This is how I did it. I uploaded the image to:
includes/languages/english/images/your_image_filename.gif

I went Tools>Define Pages Editor>define_main_page.php with Text Editor in HTMLarea mode.

Positioned cursor where I want the image. Click insert image icon.

In the URL window type in:http://www.your domain /includes/languages/english/images/your_image_filename.gif and "preview" the image.

Now you can insert the image by clicking OK. I hope it works for you. God bless.

1 Feb 2011, 11:21 AM
#23
sigp220 avatar

sigp220

New Zenner

Join Date:
Dec 2010
Posts:
25
Plugin Contributions:
0

Re: Can't Insert Image in Define Pages Editor

Hi, I have followed this thread. I added the PHP code to the tpl_mainpage.php file. I opened Define pages editor. I don't see any Icon to insert an image, only save,reset & cancel. I am using Xampp locally. Zen Cart is v1.39h

I get no image on my main page, only a square box with a red x.

Am I missing something?

2 Feb 2011, 2:22 AM
#24
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Can't Insert Image in Define Pages Editor

If you add the code to tpl_main_page.php (or define_main_page.php), you have done the "inserting", and there is no more to do in the files. Next, you need to copy the image into the folder specified in the code. Do this just as you would for any other image you wanted to move around in your computer.

19 Mar 2011, 10:42 AM
#25
serious avatar

serious

Totally Zenned

Join Date:
Feb 2011
Posts:
686
Plugin Contributions:
0

Re: Can't Insert Image in Define Pages Editor

v1.39h

Seems that I'm "Image Impaired" too.:wacko:

Try as I might, no pics for me either.

I've moved four pictures into /public_html/images/Customerpics/
Permissions are 755 for the folder and 644 for the .jpg's(if it even matters).

I've tried the following (without the spaces of course):
www. my website name .com/public_html/images/Customerpics/picturename.jpg

http:// www. web site name.com/public_html/images/Customerpics/picturename.jpg

http:\ www. web site name.com\public_html\images\Customerpics\picturename.jpg

../public_html/images/Customerpics/picturname.jpg
/public_html/images/Customerpics/picturname.jpg
../images/Customerpics/picturname.jpg
/images/Customerpics/picturname.jpg

All I get is the Forbidden message and 404 messages.

FWIW, I'm editing /public_html/includes/languages/english/html_includes/darkness/define_page_4.php

I've read this thread a dozen times but oviously I'm missing something.

19 Mar 2011, 11:25 AM
#26
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: Can't Insert Image in Define Pages Editor

Serious:

v1.39h

Seems that I'm "Image Impaired" too.:wacko:

http:// www. web site name.com/public_html/images/Customerpics/picturename.jpg

Try
http:// www. web site name.com/images/Customerpics/picturename.jpg

Your websitename dot com is under public_html.

19 Mar 2011, 11:31 AM
#27
serious avatar

serious

Totally Zenned

Join Date:
Feb 2011
Posts:
686
Plugin Contributions:
0

Re: Can't Insert Image in Define Pages Editor

Tried http://www. web site name.com/images/customerpics/picturename.jpg

Got this for my trouble:

Forbidden
You don't have permission to access /images/customerpics/picturename.jpg on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

19 Mar 2011, 12:05 PM
#29
serious avatar

serious

Totally Zenned

Join Date:
Feb 2011
Posts:
686
Plugin Contributions:
0

Re: Can't Insert Image in Define Pages Editor

The folder has a C, but I've tried it both ways with the same result.

19 Mar 2011, 12:08 PM
#30
serious avatar

serious

Totally Zenned

Join Date:
Feb 2011
Posts:
686
Plugin Contributions:
0

Re: Can't Insert Image in Define Pages Editor

Renamed folder from Customerpics to customerpics...same result.

20 Mar 2011, 12:26 AM
#31
serious avatar

serious

Totally Zenned

Join Date:
Feb 2011
Posts:
686
Plugin Contributions:
0

Re: Can't Insert Image in Define Pages Editor

Anyone?

Bueller?
Bueller?