Page 1 of 1

Images not visible in frontend

Posted: Wed 27. Dec 2006, 16:41
by Niedzielan
Hi there,

I'm fairly new to phpwcms (but I like already very much!! 8) ). I do have a problem though. Uploading an imag is no problem. The only thing is I can't see them on the frontend side?! The only thing you see i an 'broken image' icon.

http://www.sbo-piramide.nl/temp/phpwcms/

I thougth it's because the URL to the image isn't correct, but I've tried everything, none works!! I have ImageMagic and GhostScript installed.

Anyone an idea of what I'm doing wrong?? Thanks in advance...

Niedzielan

Posted: Wed 27. Dec 2006, 17:08
by Eggi
http://www.sbo-piramide.nl/temp/phpwcms/ path of you wcms



http://www.sbo-piramide.nl/picture/header.gif path from your picture


where is the piscture on your server?

Posted: Thu 28. Dec 2006, 22:11
by Niedzielan
OK, I've searched a little further, now i can see the problem. When uploading a file on the backend side everything goes OK. At least, it looks like it. But...when searching on the server for the file, it isn't there! :shock: :?

Also when creating a directory. On the backend side everything looks fine, but again, when searching for the dir (through ws_ftp) i can't find anything.
I uploaded an image directly with ws_ftp to the "picture" dir on the server and that goes perfect (view result now in the above link)...

Anyone an idea?

Posted: Thu 28. Dec 2006, 22:45
by Oliver Georgi
phpwcms stores uploaded files under new name.

Oliver

Posted: Fri 29. Dec 2006, 04:29
by DeXXus
Did you checkmark the ACTIVE and PUBLIC checkboxes? Are the thumbnails being shown to you in the File center?

FTP Takeover -and- File Upload from within File Center results in phpWCMS assigning a "random" name to the file and storing a copy in "phpwcms/phpwcms_filestorage/".

The "actual" filename/folder info, etc. is stored and handled by the database (for the functions and Rep Tags to reference). Each file, for example, is in phpwcms_file FIELD of your database.

Because files that are uploaded to the file center have their names changed -and- are assigned new "random" names, you cannot -directly- reference the "original" names with your coding.

You already know that to operate outside the File center, you use "phpwcms/picture/" which allows you to directly reference them with your own coding and they are not available to the built-in functions/rep tags (not stored in the database).

Posted: Sun 14. Jan 2007, 22:38
by Niedzielan
Hi there,

Sorry for the late reaction. Due to the holidays I haven't had much time.

I still have the same problem though. The above tips didn't bring me a solution :( So, here's another try at saying what's the problem:

I am building a website with help of a free template. Now I'm editing the template in the admin section. I have an image uploaded to the filecenter:

Image

Now I want to use the 'header.gif' file to be shown on the frontend side. In my template I have tried several different things but I can't get it right. Now i have it like this:

Code: Select all

<!-- HeaderLogo Piramide-->
<td width="575" bgcolor="#999999"><img src="picture/header.gif"></td>
I've have also tried the replacement tags like this:

Code: Select all

<!-- HeaderLogo Piramide-->
<td width="575" bgcolor="#999999">
{IMAGE:picture/header.gif}</td>
but I only get this result (view the header at the top of the page). The picture can't be found on the server...?? :?

http://www.sbo-piramide.nl/temp/phpwcms/index.php

I searched the conf.inc.php file for a mistake or something but I think it's OK...

Code: Select all

// site values
$phpwcms["site"]              = 'http://'.$_SERVER['SERVER_NAME'].'/'; //http://www.sbo-piramide.nl
$phpwcms["admin_email"]       = "ldekleijn@hotmail.com";

// paths
$phpwcms["DOC_ROOT"]          = $_SERVER['DOCUMENT_ROOT'];
$phpwcms["root"]         		  = "temp/phpwcms";         //default: ""
$phpwcms["file_path"]         = "phpwcms_filestorage";    //default: "phpwcms_filestorage"
$phpwcms["templates"]         = "phpwcms_template";    //default: "phpwcms_template"
$phpwcms["content_path"]      = "content"; //default: "content"
$phpwcms["cimage_path"]       = "images";  //default: "images"
$phpwcms["ftp_path"]          = "phpwcms_ftp";     //default:   "phpwcms_ftp"   
Sorry for the long explanation, but now I hope you guys understand what I'm dealing with here! :wink:

Posted: Mon 15. Jan 2007, 00:33
by pepe
Put your header.gif into the Directory picture...

And then:

Code: Select all

<!-- HeaderLogo Piramide--> 
<td width="575" bgcolor="#999999">{IMAGE:header.gif}</td>
Using the ReplacementTag {IMAGE:...} ,the directory is not necessary, to put into the tag, if your images are inside "picture"!!!!

Try it....

Posted: Mon 15. Jan 2007, 08:58
by Niedzielan
Hmm, as you can see above the image was already in the picture directory. I've tried to use {IMAGE:header.gif} but it doesn't work :( Nothing changes...

Posted: Mon 15. Jan 2007, 09:38
by flip-flop
Hi,

I think you haven´t understand the systematics.

1. I can´t find an image at sbo-piramide.nl/temp/phpwcms/picture/header.gif

2. The images in your filecenter don´t be the images in /picture/......
Filecenter is an single image administrations fo the two CPs images, text with image and article.
The files and folders you did see there are virtual names, db generated.

3. For I static images using in a template I would prefere the path /pictures/.
Please copy the image header.gif via ftp into the folder sbo-piramide.nl/temp/phpwcms/picture/

4. Now you can use the RT {IMAGE:header.gif}

5. But the betterway is a call with :
<img src="img/leer.gif" width="yourImageWidth" height="yourImageHeight" border="0" vspace="0" hspace="0" alt="Piramide">

6. The final best construction is a call from an css instructions like this (frontend.css):

Code: Select all

/* Head logo */
.header0 {
	background-image: url(../../picture/header.gif);
	background-repeat: no-repeat;
	background-color: #ffffff;
}
- Template:

Code: Select all

<td class="header0" height="yourImageHeight" valign="top">
<img src="img/leer.gif" width="20" height="yourImageHeight" border="0" vspace="0" hspace="0" alt="nop">
</td>
(With a blank gif "leer.gif" at /img/)

Regards Knut

Posted: Mon 15. Jan 2007, 19:59
by Niedzielan
Thanks Knut, this seems to work! excellent. But here's another riddle 8) :wink: (sorry!)

Now I tried to make a new article with some text and an image, but now I'm having trouble uploading a picture within the FCKEditor. When I use the button 'Insert/Edit Image' and I'm trying to search the server for images I get an XML error:

Image

Do you know what's wrong?

Posted: Mon 15. Jan 2007, 20:14
by flip-flop
Have you done this:
Create at this Location the Folders Image, File, Flash and Media
../picture/upload/Image
../picture/upload/File
../picture/upload/Flash
../picture/upload/Media
set the Permissions of this Folders to 777
Knut

Posted: Mon 15. Jan 2007, 22:18
by Niedzielan
Yes, now, but it doesn't help...

Posted: Mon 15. Jan 2007, 23:28
by flip-flop
I can´t reproduce this error using IE7 on 1.2.9pre.

Does it work for you using the FF?

I think it is an pure fck problem. My fck editor build V2.3.2 Build1082.

Knut

Posted: Tue 16. Jan 2007, 08:59
by Niedzielan
Hi,

I still haven't got a solution but I've googled my problem and there is a lot to find about this problem. And indeed, it looks like is has something to do with FCKEditor (probably the path settings). I'm gonna try it tonight. I'll let you know if it all works.

greetz!

Posted: Fri 26. Jan 2007, 12:08
by Niedzielan
:D :D

OK, I've been working on the error (xml request error: Unknown (12152)). And indeed, its a path problem in two FCKeditor files, config.php in these maps:

/editor/filemanager/upload/php
/editor/filemanager/browser/default/connectors/php

change the path to the right settings! (in my case the path needed an extra /temp/... directory!)

Everything seems to work now!!!

Thanks for any help.