New User Having Image Problems
-
- Posts: 5
- Joined: Tue 2. Nov 2004, 02:34
- Location: USA
New User Having Image Problems
I am trying to include a random image in the header, but I'm having trouble getting it to appear .... 1.1-RC4
If I use {RANDOM:picture} and have the image in picture, it works. Likewise {IMAGE_LEFT:coreopsisleav.jpg} works and generates
<td colspan="4" style="height:200px;" ><img src="picture/coreopsisleav.jpg" width="800" height="200" border="0" alt="coreopsisleav.jpg" /></td>
However, if I create a subdirectory under picture and put the image there, neither
{RANDOM:picture/banner} nor {IMAGE_LEFT:banner/coreopsisleav.jpg} work. when I look at the generated code, there is nothing in my header.
<td colspan="4" style="height:200px;" ></td>
The examples given on the phpWCMS web site for replacement tags indicate that subdirectories can be used and give examples - why can't I use them? Permissions are 755 for pictures and 755 for the banner subdirectory, so it doesn't look like a permissions problem.
Any clues would be appreciated
If I use {RANDOM:picture} and have the image in picture, it works. Likewise {IMAGE_LEFT:coreopsisleav.jpg} works and generates
<td colspan="4" style="height:200px;" ><img src="picture/coreopsisleav.jpg" width="800" height="200" border="0" alt="coreopsisleav.jpg" /></td>
However, if I create a subdirectory under picture and put the image there, neither
{RANDOM:picture/banner} nor {IMAGE_LEFT:banner/coreopsisleav.jpg} work. when I look at the generated code, there is nothing in my header.
<td colspan="4" style="height:200px;" ></td>
The examples given on the phpWCMS web site for replacement tags indicate that subdirectories can be used and give examples - why can't I use them? Permissions are 755 for pictures and 755 for the banner subdirectory, so it doesn't look like a permissions problem.
Any clues would be appreciated
-
- Posts: 5
- Joined: Tue 2. Nov 2004, 02:34
- Location: USA
Link
http://www.simple-grandeur.com/index.php
I've put the code into the main block so that I could put in both variants. Also added a third variant. It looks like the code gets generated it the image is in a directory/subdirectory that was created by Fanstasico during installation (picture or picture/upload) and that it does nothing if I created the subdirectory (picture/banner).
I created the subdirectory using the ftp program. Do I somehow have to have phpWCMS create it? If so, how? Do I somehow have to tell phpWCMS that the directory exists? Again, how?
I've put the code into the main block so that I could put in both variants. Also added a third variant. It looks like the code gets generated it the image is in a directory/subdirectory that was created by Fanstasico during installation (picture or picture/upload) and that it does nothing if I created the subdirectory (picture/banner).
I created the subdirectory using the ftp program. Do I somehow have to have phpWCMS create it? If so, how? Do I somehow have to tell phpWCMS that the directory exists? Again, how?
-
- Posts: 5
- Joined: Tue 2. Nov 2004, 02:34
- Location: USA
Nope -- doesn't
If you look at the Text printed above each of the images in the main block, it tells you what the code was ---if it worked, you see the image
There are three printed lines
BANNER:picture
BANNER:picture/banner
BANNER:picture/upload
The result of the actual code follows each line.....You don't see an image after
BANNER:picture/banner
You'll see that NO code gets generated for it.
Banner:picture
and
Banner:picture/upload
work
There are three printed lines
BANNER:picture
BANNER:picture/banner
BANNER:picture/upload
The result of the actual code follows each line.....You don't see an image after
BANNER:picture/banner
You'll see that NO code gets generated for it.
Banner:picture
and
Banner:picture/upload
work
Last edited by Shirley Denton on Thu 4. Nov 2004, 03:34, edited 1 time in total.
my Test with many sub-dirs is ok!
must be a permission problem
---part2:---
---------
PS: I can't find to include an image as example - only as url - turn OFF?
Code: Select all
{RANDOM:picture} [picture]<br>
{RANDOM:picture/upload} [picture/upload]<br>
{RANDOM:picture/sub} [picture/sub]<br>
{RANDOM:picture/sub/sub2} [picture/sub/sub2]<br>
---part2:---
I see here 3images to...
---------
PS: I can't find to include an image as example - only as url - turn OFF?
Erfahrung ist das, was man besitzt, kurz nach dem es gebraucht wurde.
Warning: I have no foggiest idea of English/German, but I do
-ha{p}{p}y day/night/dia/noche-
Warning: I have no foggiest idea of English/German, but I do
-ha{p}{p}y day/night/dia/noche-
-
- Posts: 5
- Joined: Tue 2. Nov 2004, 02:34
- Location: USA
Error Message Found -- Still No Clues
I found an error log -- the
{RANDOM:picture/banner}
results in the generation of this message:
[Wed Nov 3 19:51:45 2004] [error] [client 141.153.132.213] File does not exist: /usr/local/apache/htdocs/hcl/lh/image_request.php
This file ... /usr/local/apache/htdocs/hcl/lh/image_request.php ... (and this file path) are not in the space provided by my web host. Is this an Imagick file? A GD file? phpWCMS config is set for GD.
If it's fussing about "picture/banner" well I know the directory is there and that "banner" has permission 755
BTW - I have similar "no code generated" problem for
{IMAGE:banner/filename.jpg}
and get same error message posted. Similar to the RANDOM problem, if I put the image directly in picture, I don't get an error
{IMAGE:filename.jpg} works
I know "picture/banner/filename.jpg" exists and "filename.jpg" has permission 644 and is the same permission as picture/filename.jpg (the one that works)
{RANDOM:picture/banner}
results in the generation of this message:
[Wed Nov 3 19:51:45 2004] [error] [client 141.153.132.213] File does not exist: /usr/local/apache/htdocs/hcl/lh/image_request.php
This file ... /usr/local/apache/htdocs/hcl/lh/image_request.php ... (and this file path) are not in the space provided by my web host. Is this an Imagick file? A GD file? phpWCMS config is set for GD.
If it's fussing about "picture/banner" well I know the directory is there and that "banner" has permission 755
BTW - I have similar "no code generated" problem for
{IMAGE:banner/filename.jpg}
and get same error message posted. Similar to the RANDOM problem, if I put the image directly in picture, I don't get an error
{IMAGE:filename.jpg} works
I know "picture/banner/filename.jpg" exists and "filename.jpg" has permission 644 and is the same permission as picture/filename.jpg (the one that works)
Re: Error Message Found -- Still No Clues
It's looks like not phpwcms - I can't find this file in (my) whole phpwcms [Release 1.1-RC4 27-08-2004]Shirley Denton wrote: ...
File does not exist: ...hcl/lh/image_request.php
...
Erfahrung ist das, was man besitzt, kurz nach dem es gebraucht wurde.
Warning: I have no foggiest idea of English/German, but I do
-ha{p}{p}y day/night/dia/noche-
Warning: I have no foggiest idea of English/German, but I do
-ha{p}{p}y day/night/dia/noche-