Page 1 of 1
Changing Popfetcher photo output
Posted: Sat Nov 14, 2009 10:48 am
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
Re: Changing Popfetcher photo output
Posted: Mon Nov 16, 2009 12:31 am
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

Re: Changing Popfetcher photo output
Posted: Mon Nov 16, 2009 9:55 am
by user1234
Hi,
I suspect this could be done with CSS and the javascript Garvin suggested to me (jquery fancybox JS and
).
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
Re: Changing Popfetcher photo output
Posted: Mon Nov 16, 2009 10:11 am
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
Re: Changing Popfetcher photo output
Posted: Mon Nov 16, 2009 12:38 pm
by user1234
Hi Garvin,
I looked at the plugin code, but that's definitely way beyond my personal horizon of PHP-knowledge

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