Changing Popfetcher photo output

Creating and modifying plugins.
Post Reply
user1234
Regular
Posts: 75
Joined: Tue Sep 22, 2009 9:49 pm

Changing Popfetcher photo output

Post by user1234 »

Hi,

now that I got Popfetcher working (thanks again to Garvin! :) ), I'd like a somewhat different output. Currently Popfetcher does this:

Code: Select all

<a class="popfetcherimage" href="/serendipity/uploads/folder/photo.jpg" target="_blank"><img src="/serendipity/uploads/folder/photo.spThumb.jpg" alt="Photo" /></a>
I'd like that output instead:

Code: Select all

<div id="popfetcherimage"><img src="/serendipity/uploads/folder/photo.jpg" alt="Photo" /></div>
I'm no coder, so I'd need help implementing this.

Cheers,

Dachs
robert
Regular
Posts: 1063
Joined: Mon May 09, 2005 9:17 pm
Location: Vienna, Austria
Contact:

Re: Changing Popfetcher photo output

Post by robert »

As I installed Popfetcher this weekend again (to use S9y just more then Posterous for photoblogging per e-mail) I´m also very interested in that changes.

Could it be possible, to present more then one photo in a more structured way (like an album) in an article?

I´m ready for betatesting :)
Von 2005 bis 2020 nutzte ich Serendipity/S9y. Auch nach meinem Umstieg bin ich S9y weiterhin in Gedanken verbunden. Ein Dank ergeht an alle Forumsteilnehmer:innen, die mir hier weitergeholfen haben.

Nur ein Blog
user1234
Regular
Posts: 75
Joined: Tue Sep 22, 2009 9:49 pm

Re: Changing Popfetcher photo output

Post by user1234 »

Hi,

I suspect this could be done with CSS and the javascript Garvin suggested to me (jquery fancybox JS and

Code: Select all

$(".popfetcherimage").fancybox();
).

However, as I want the full picture inside the entry, after some discussion with the blog's enduser, this solution doesn't really help me.

Is there no one who can help out with the relevant code changes? As the blog is a live one already I don't want to chance breaking anything.

Cheers

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

Re: Changing Popfetcher photo output

Post by garvinhicking »

Hi!

Changing the HTML structure there would mean changing the PHP code of the plugin, just look for "popfetcherimage". It might require PHP coding skills though.

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/
user1234
Regular
Posts: 75
Joined: Tue Sep 22, 2009 9:49 pm

Re: Changing Popfetcher photo output

Post by user1234 »

Hi Garvin,

I looked at the plugin code, but that's definitely way beyond my personal horizon of PHP-knowledge :roll: This seems to be a function, which appears in several places, I wouldn't know which or how to change it so that the picture only wrapped in divs gets written into the entry, without harm done to any of the other functions or the database.

Cheers,

Dachs
Post Reply