Page 1 of 1

Styling / editing the Flickr plug-in output

Posted: Fri Oct 06, 2006 4:02 pm
by Random
Have managed to get the Flickr plug-in working without having to ask the question that everyone asks ;)

However, I want to edit it so that the output is slightly different, to facilitate styling it - and I can't make that work.

I have edited the plugins/serendipity_plugin_flickr/serendipity_plugin_flickr.php file so that what used to say this:

Code: Select all

'<a href="%s"><img src="%s" alt="%s" width="%d" height="%d" style="border: none" /></a> ' . "\n",
now says this:

Code: Select all

'<div class="flickrphoto"><a href="%s"><img src="%s" alt="%s" width="%d" height="%d" /></a></div> ' . "\n",
The change has saved successfully - it's still there when I re-open the file. But it is not reflected in the final page code, which is generated exactly as if I'd left the file unaltered.

Obviously I'm doing something basic wrong (editing the wrong file, maybe...) but I'm darned if I can figure out what.

Can anyone advise please?

Re: Styling / editing the Flickr plug-in output

Posted: Fri Oct 06, 2006 4:42 pm
by garvinhicking
Hi!

The flickr plugin caches its output. Remove all files in templates_c to purge the cache. :) Or wait a day until the cache will be rebuild :)

HTH,
Garvin

Posted: Fri Oct 06, 2006 4:53 pm
by Random
A-ha - caching - of course. Brilliant, thanks!