Welcome to Geeklog, Anonymous Thursday, November 28 2024 @ 08:55 am EST

Geeklog Forums

Cant insert images into stories


Max

Anonymous
Hi,

I going absolutely nuts cos i cant seem to insert images into any of my stories. Also i cant seem to change the image size of the images that i want tio have on the stories.. Pleae HELP!!!!! :banghead:
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
What did you try? What happened?

Note that the IMG tag is filtered out by default. As a (Story) Admin, you can upload images using Geeklog's special [imageX] tags, though - see the instructions right there in the story editor.

bye, Dirk
 Quote

Max

Anonymous
hey dirk,
tx man, i still cant get anywhere..... how can i dwnload and edit the index file without mesing it up??

Max
 Quote

Status: offline

1000ideen

Forum User
Full Member
Registered: 08/04/03
Posts: 1298
index file? Do you mean the config.php?

Check out:
$_CONF['admin_html'] = array (

or:
$_CONF['skip_html_filter_for_root'] = 0;
 Quote

Max

Anonymous
in the index page a picinto the story....
 Quote

Max

Anonymous
hey

guys maybe im not attaching the pic properly, can u show me some sample code on how da img code works here and how its attached...

phew... tx loads

Max
 Quote

Max

Anonymous
hey guys

i get thiserror message



Warning: getimagesize(/home2/mic/public_html/prototype/images/articles/20060211095519362_1.gif): failed to open stream: No such file or directory in /home2/mic/public_html/prototype/admin/story.php on line 824

Warning: getimagesize(/home2/mic/public_html/prototype/images/articles/20060211095519362_1.gif): failed to open stream: No such file or directory in /home2/mic/public_html/prototype/admin/story.php on line 746

Warning: Cannot modify header information - headers already sent by (output started at /home2/mic/public_html/prototype/admin/story.php:824) in /home2/mic/public_html/prototype/lib-common.php(973) : eval()'d code on line 1


Any ideas?

MAx
 Quote

Status: offline

1000ideen

Forum User
Full Member
Registered: 08/04/03
Posts: 1298
Does this file articles/20060211095519362_1.gif exist?
If not FTP any into this place to get rid of the error and then delete it in the editor. Maybe you try first without the advanced editor.
 Quote

Koobi

Anonymous
hi, i'm a friend of Max's and I'm a PHP developer.

i've looked into this, the lines show in his error contain getimagesize()...the errors indicate that the file doesn't exist...which leads me to believe that there's an error while uploading. i checked the form tag...the enctype attribute is in order...maybe someone could point me to the file that actually handles the uploads and i could look into it myself?

the headers already sent errors are obviously the result of the other errors showing up so i guess we can forget about that one.


thanks.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
There's a debug option for the image upload in config.php:
Text Formatted Code
// Uncomment the following line if you experience problems with the image
// upload. Debug messages will be added to the error.log file.                
// $_CONF['debug_image_upload'] = true;
 

See if that provides any additional information.

Also, which PHP version is this running on? There was a bug in recent PHP versions that prevented the image upload (should work again with the current PHP releases).

bye, Dirk
 Quote

Koobi

Anonymous
hi Dirk,
thanks for your reply.

i uncommented that line in the config file and this is the output once i submitted:

Attached Images Not Used
The following errors occured while trying to save your story. Please correct these errors before saving

image #1, 20060222094619838_1.png, was not used. You must include this image in the intro or body before you can save your changes



i grep'd for the image and found it in /images/articles/
the image was uploaded in the first upload field and this was the contents of the body:


this is my logo [image1]



thanks for your time.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
I'm confused - this now looks like the upload succeeded. So did you change anything?

Can't explain that "image was not used" message right away. Geeklog is simply counting the [imageX] tags in the story's text, so you may have an invisibly special character in that tag. Or did you use the preview option while uploading the image at the same time? As that is known not to work properly ...

bye, Dirk
 Quote

Status: offline

zaurav

Forum User
Chatty
Registered: 01/07/06
Posts: 57
angelic
I had the same problem w/ 1.3.11.s1. What did I do? Upgraded to 1.4.0 s1. W/ the fck editor its real easy for images.
I type my story into MS word with pictures and links etc... and then copy paste into fck editor.
 Quote

All times are EST. The time is now 08:55 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content