List of references to media files - how?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
JWalker
Regular
Posts: 177
Joined: Mon Sep 12, 2005 4:14 pm
Location: Botevgrad, Bulgaria
Contact:

List of references to media files - how?

Post by JWalker »

Hi,

Is there in S9Y a way to generate lists of references to the media files? Par example I want to delete a media file but without making the links to it in the static pages and entries broken. I would like to edit these and delete the references.
Ivan Cenov
OKTO-7 Co., Botevgrad
Bulgaria
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: List of references to media files - how?

Post by garvinhicking »

Hi!

To do that, some advanced work is required. You need to rewrite all of your links to miages to be replaced from /uploads/x.jpg to serendipity_admin_imageselctor.php?serendipity[image]=ID and enable the option to use "Allow dynamic image resizing" so that s9y's media DB can be used to wrap output images.

Once you emit images through the wrapper, s9y will track referrers automatically and reveal them to you in the property screen of a media object in the MDB.

You have to place links manually then or an event plugin would need to be created replacing image path links with image IDs. Such a plugin is on the todo-list for about 3 years now, so don't hold your breath. ;)

The bottom line is: Tough to do, you might better want to do a database fulltext search for the image with phpMyAdmin or a similar tool.

Best 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/
JWalker
Regular
Posts: 177
Joined: Mon Sep 12, 2005 4:14 pm
Location: Botevgrad, Bulgaria
Contact:

Post by JWalker »

serendipity_admin_imageselctor.php?serendipity[image]=ID
In this above, what has to be put at the places of [image] if has to, and of ID. Where can I find image IDs?

Also,
serendipity_admin_imageselctor.php or
plugins/serendipity_event_imageselctorplus/serendipity_event_imageselctorplus.php ?
Ivan Cenov
OKTO-7 Co., Botevgrad
Bulgaria
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

"ID" would be replaced with the ID of the image as found in the serendipity_images database.

And I mean the serendipity_admin_image_Secltor.php, nothing with imageselectorplus.

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/
JWalker
Regular
Posts: 177
Joined: Mon Sep 12, 2005 4:14 pm
Location: Botevgrad, Bulgaria
Contact:

Post by JWalker »

Hi,

I understood. You mentioned the additions in svn rev 2205. And these have nothing to deal with the serendipity_event_imageselectorplus plugin. And if I understood it correctly, this plugin is not needed (at least after rev 2205).
Ivan Cenov
OKTO-7 Co., Botevgrad
Bulgaria
Post Reply