Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support Image problems
Andyb
Posted on 21 Jan 2010, 09:22:11

Access: Member
Total Posts: 18
Joined: 2008-05-16

Just downloaded 3.4 and done a new install,

I have used the image uploader to upload an image, but when I include it in the news it doesn't show up, only as a 1px x 1px dot.

I have checked the image is in the uploads directory and it is but on checking the source code of the page the script is not specifying a width or height ?

Code:
<?php 
<div class="image_container" style="width: px"><img src="http://www.xxxxxxxxxxx.xxx/content/uploads/Marcus.png\" class="fullnewsimage" width="" alt="image" height="" /><br /><span class="image_caption"></span></div>
?>


Any ideas Chris ?
#1657
Chris
Posted on 21 Jan 2010, 18:54:28

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

If the image code has no height/width, it means that the script wasn't able to get the height/width from the image. The image you've uploaded via the admin area, are you able to view that image directly in your browser? like http://domain.com/news/uploads/image.jpg ?

If not then it may be a permissions problem. If you can view the image it may mean that your server doesn't allow you to get the height/width of an image over http, so you would need to instead then use local paths when inserting the image into your news articles like so

Code:
[img]/home/username/public_html/news/uploads.image.png[/img]
#1662
Andyb
Posted on 22 Jan 2010, 20:33:24

Access: Member
Total Posts: 18
Joined: 2008-05-16

Hi Chris,

I thought it might be something to do with absolute link references, instead of relative (don't know why ! this came to me) so I checked with my host and they said that absolute referencing was already allowed on the server !

In the end I went into 'System' of News-13 and changed 'Image uploads path:' from http://www.xxxxxxxxxxx.xxx/content/uploads to ./content/uploads and this worked !

I don't know why though,

Whenever I insert an image now it uses the relative path, which seems to be ok, weird ?

Thanks for the quick reply.

Andy B
#1689
Last edited by Andyb at 2010-01-22 20:34:00 Reason:
Network-13.com © 2013