1
jensclas
image problems

Hi - me gain...still on L plates

I created a block and pasted the welcome message to it - looked great - but I know the image refences in the html were still refering to my own computer...so I uploaded the images into public html images webgraphics (a file i created) and the images path appears to be
img align=left]jensclassroom.com/home/jensclas/public_html/images/webgraphics/taustralia.jpg[/img
But I know I have doen something wrong cause the code is what appears in the preview, not the image...help!!!

Thanks

2
Bassman
Re:image problems
  • 2004/11/8 8:55

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


Did you select the block type as "HTML"? At the bottom of the custom block section.

3
Eugney
Re:image problems
  • 2004/11/8 8:55

  • Eugney

  • Not too shy to talk

  • Posts: 162

  • Since: 2004/7/25


img align=left]http://www.jensclassroom.com/home/jensclas/public_html/images/webgraphics/taustralia.jpg[/img

that would work but the immage does not exist

The requested URL /home/jensclas/public_html/images/webgraphics/taustralia.jpg was not found on this server.

4
jensclas
Re:image problems

Quote:

Bassman wrote:
Did you select the block type as "HTML"? At the bottom of the custom block section.


Yup...and all the coding was right on my Hard drive...something happened when I FTP'd the images into a folder I created...these and my modules don't appear to exist - but in CPanel file manager they do....they are there...and always trying to find a way I went to image manager and uploaded the file, got the src chain of
img align=left]http://www.jensclassroom.com/uploads/img418f382f00012.jpg[/img

Don't know where "uploads" comes from or why the pic file has had a name change.. becuase it is in an image file called site pics vis this pic manager...I suspect i am just getting really lost! -

5
jensclas
Re:image problems

that would work but the immage does not exist

The requested URL /home/jensclas/public_html/images/webgraphics/taustralia.jpg was not found on this server.[/quote]

But according to CPanel file manager it does...

I think I will go watch TV - it's easier LOL

6
Eugney
Re:image problems
  • 2004/11/8 9:24

  • Eugney

  • Not too shy to talk

  • Posts: 162

  • Since: 2004/7/25


ok do this
reset your sql than re up the stuff

7
jensclas
Re:image problems

Quote:

Eugney wrote:
ok do this
reset your sql than re up the stuff


Thanks Eugeney...but here's a real beginners question...what do you mean 'reset' my sql????
How do i do that? I did do a repair on the DB in my sql DB in Cpanel...is that what you meant?

Cheers

8
JasonMR
Re:image problems
  • 2004/11/8 21:34

  • JasonMR

  • Just can't stay away

  • Posts: 655

  • Since: 2004/6/21


I don't seem to grasp your problem:

Quote:
http://www.jensclassroom.com/uploads/img418f382f00012.jpg


is available...see Resized Image

The image manager give image files their own name, as when uploading, you decide on a name for the image, that is used for referencing.

9
jensclas
Re:image problems

[quote]
JasonMR wrote:
I don't seem to grasp your problem:

is available...see
The image manager give image files their own name, as when uploading, you decide on a name for the image, that is used for referencing[quote]

Thanks Jason - I'm sorry about this - that is the one file I uploaded with image manager. The problem is I FTP'd a dozen images to the public-html-images folder

public_html / images / webgraphics/taustralia.jpg

and the path isn't being recognised by xoops...in debug it shows the code rather than the image.

could it be that all these images are 644 rather than 744?

10
JasonMR
Re:image problems
  • 2004/11/9 23:51

  • JasonMR

  • Just can't stay away

  • Posts: 655

  • Since: 2004/6/21


Your file permission settings (644) are correct. And I am still not sure, I comprehend your problem.

I am not 100% sure, but I believe you actually put:
Quote:

/home/jensclas/public_html/images/webgraphics/taustralia.jpg

as an address. This is a relative path, and not a URL, which is needed.

Let us see if the following will help:

As an example, let's say we have the following XOOPS installation:
http://www.mysite/myxoops/

I create a special folder for images (chmod755), in the actuall image folder:
http://www.mysite/myxoops/images/webimages

In this folder I upload all my images, either via my hosts Control Panel, or an FTP program.

To get the image displayed, I can use the following coding:

(1)
Quote:

<img src="http://www.mysite/myxoops/images/webimages/imageIChoose.jpg" alt="Example Image" />

(2)
Quote:

<img src="<{$xoops_url}>/webimages/images/imageIChoose.jpg" alt="Example Image" />

(3)
Quote:

Resized Image

(4)
Quote:

[img align=left] <{$xoops_url}>/webimages/images/imageIChoose.jpg[/img]


(2) (4) use the smarty tag, instead of hardcoded address (actuall URL==http://www.myurl.com.au). This has the advantage, that should you ever change your URL, you just need to make changes to your XOOPS general settings, instead of looking through all files, and changing the now changed URL.

(3)and(4) are what is labelled as bb-codes, which is a way to markup text, without knowing HTML. Supposedly to make life easier for users without HTML knowledge.

(1) and (2) are regular HTML tags.

Does this help in any way

Login

Who's Online

238 user(s) are online (152 user(s) are browsing Support Forums)


Members: 0


Guests: 238


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits