Not images in Media Library?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
pano
Regular
Posts: 24
Joined: Tue Apr 05, 2005 11:15 am

Not images in Media Library?

Post by pano »

When i import a mp3 file from admin, it takes it as a wbmp file. And when i link to a non-image file, it writes the img label with src to the non-image file.

Is there some way -or plugin- that lets import non image file to the Media Library? And when inserting them... that inserts a href label with the file as target of the link...

If not, the only way i guess is to upload by ftp the files and writing html code to make the links to those files.

Thanks for any help or comment ;)
pano
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Not images in Media Library?

Post by garvinhicking »

Which serendipity and PHP version are you using?

Serendipity relies on the PHP mime detection facilities and falls back to using file extesnsions.

Also your SErendipity installation may have a corrupted "images" table with incomplete columns. Check the sql/db.sql file for that table and see if all columns are present, please.

Because non-image files in 0.8 are possible without any problems...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
pano
Regular
Posts: 24
Joined: Tue Apr 05, 2005 11:15 am

Post by pano »

Looks like the estructure is the same in my images table and the sql file from original installation:

This is what phpmyadmin exports as estructure from my images table:

Code: Select all

CREATE TABLE `vtres_images` (
  `id` int(11) NOT NULL auto_increment,
  `name` varchar(255) NOT NULL default '',
  `extension` varchar(5) NOT NULL default '',
  `mime` varchar(255) NOT NULL default '',
  `size` int(11) NOT NULL default '0',
  `dimensions_width` int(11) NOT NULL default '0',
  `dimensions_height` int(11) NOT NULL default '0',
  `date` int(11) NOT NULL default '0',
  `thumbnail_name` varchar(255) NOT NULL default '',
  `authorid` int(11) default '0',
  `path` text,
  `hotlink` int(1) default NULL,
  PRIMARY KEY  (`id`),
  KEY `imagesauthorid_idx` (`authorid`),
  FULLTEXT KEY `pathkey_idx` (`path`)
) TYPE=MyISAM ;
Really is not a big problem... i thought that i was able to import only images... but it would be good if i could work with any kind of file.

I forgot... i use 0.8beta5... i know i must update... but i edited several files (function_entries, plugin_internal...) and i am lazy to update these files as well :roll:

Thanks!
pano
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Pano, I think fixes have been made for this in later 0.8 versions. You will need to try the final version :)

And share your patches, maybe we can include them in our distribution! :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply