Member
Member
os07   2012-05-02, 15:52
#1

In my custom pages within the Zenpage theme, I have successfully added content and edited out the things I don't need.

However, when I try to link to any kind of image file, the image doesn't appear, although the alt text does. I have tried this with both JPG and PNG files - neither appear. The custom pages show this path:

http://www.mysite.com/zenphoto/page/mynewpage

And the broken image shows this path:

http://www.mysite.com/zenphoto/page/images/someimage.jpg

The image files are definitely there, in that folder. I have tried to change the location of the images to the same folder as the custom pages - same result.

Why do they not display? Is the problem in how the path to the images is specified?

Administrator
Administrator
acrylian   2012-05-02, 16:18
#2

So these are custom theme pages or Zenpage plugin pages?

What kind of images are those? Theme based? Zenphoto managed ones?

Member
Member
os07   2012-05-02, 17:52
#3

I just took the archive.php page and made some changes, saved it as mypage.php, same folder: /zenpage

The images are not part of ZP, nor are they part of the theme. They're just one or two images per custom page that do not occur anywhere else, and are not in any ZP gallery or album.

Administrator
Administrator
acrylian   2012-05-02, 18:21
#4

So and where are these images from, where are they located???

Member
Member
os07   2012-05-02, 18:23
#5

I can place them wherever I need to. They are generally small graphic files, PNG, and one or two small JPGs. The illustrate some of the points made in the text on the custom pages.

Administrator
Administrator
acrylian   2012-05-02, 18:28
#6

Again, if the images don't show up, the urls to them are wrong. So where are they if not part of the theme and not managed by Zenphoto?

Member
Member
os07   2012-05-02, 18:39
#7

I have traced this to a path problem, and have used the PHP code provided by ZP to specify the image path properly; problem solved!

To specify the image folder within any theme without having to use the entire long URL as path, the correct method is:

Administrator
Administrator
acrylian   2012-05-02, 18:41
#8

So they are theme based....You could have had this answer earlier if you had answered my questions above....

Member
Member
os07   2012-05-02, 18:46
#9

Sorry for the confusion, my mistake. I guess I was assuming that theme-based images meant that they would be included in all theme pages.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.