Add a "filter" to the plugin.. (Source Code Provided)
3 views
Skip to first unread message
Bill Rawlinson
unread,
May 19, 2009, 4:46:15 PM5/19/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to flickrRSS
I use this plugin and needed to be able to embed a flickr feed into a
post/page so I needed some filter capabilities; thus I added the
following code to the plugin:
function flickrRSSWebRegExFilter($text){
return preg_replace_callback("'\[!--flickrRSS:(.*)--\]'",
"flickrRSSWebFilter", $text);
}
function flickrRSSWebFilter($args){
$args = explode(".",$args[1]);