Styling / editing the Flickr plug-in output

Creating and modifying plugins.
Post Reply
Random
Regular
Posts: 10
Joined: Sun Aug 14, 2005 7:06 pm
Location: London
Contact:

Styling / editing the Flickr plug-in output

Post 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?
Life's a bitch - but then you're reincarnated...
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Styling / editing the Flickr plug-in output

Post 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
# 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/
Random
Regular
Posts: 10
Joined: Sun Aug 14, 2005 7:06 pm
Location: London
Contact:

Post by Random »

A-ha - caching - of course. Brilliant, thanks!
Life's a bitch - but then you're reincarnated...
Post Reply