PostBadge tag to show // FeedBurner FeedFlare. // ------------------------- // FeedBurner account and feed required. // Sign up at http://feedburner.com //================================================ class module_feedflare { function init(){ global $gregarious; $gregarious->add_settings ( array ( 'feedburner_url' => '' ) ); $gregarious->add_page ( 'FeedFlare', 'modules/feed-flare/icn_Flare.png', 'page_feedflare();', 'feedFlare' ); } function postbadge_tags(){ return array ( array ( 'tag' => '%FLARE%', 'replacewith' => 'feed_flare("",false)' ), ); } function update_info(){ return 100; } } //------------------------------------------ // TEMPlATE TAGS //------------------------------------------ function feed_flare($settings = '', $echo = true){ global $wp_query; $post = $wp_query->post; $sets = array('postID' => $post->ID, 'before' => '', 'after' => 'Gregarious FeedFlare', 'force' => 0 ); grab_sets($settings, $sets); if ( !$sets['force'] && hideOnID($sets['postID']) ){ return ''; } if( !$path = _get_feedburner_url() ) return ''; if( substr( $path, -1 ) == '/' ){ $path = substr( $path, 0, strlen( $path ) -1 ); } $path = str_replace ( 'feedburner.com/', 'feedburner.com/~s/', $path ); $path .= '?i='.get_permalink($sets['postID']); $result = $sets['before'] . "" . $sets['after']; if($echo) echo $result; else return $result; } function _get_feedburner_url(){ $feedurl = greg_get_option( 'feedburner_url' ); if ( $feedurl ){ return attribute_escape($feedurl); } else { $feedburner_settings = get_option('feedburner_settings'); if( is_array($feedburner_settings) && ($feedurl = $feedburner_settings['feedburner_url']) ) { return attribute_escape($feedurl); } else { return false; } } } //------------------------------------------ // OPTIONS PAGE //------------------------------------------ function page_feedflare(){ $feedurl = _get_feedburner_url(); ?> A Post on Blogging at spencerb.net



A Post on Blogging

I just wanted to say that I’m really enjoying the dialogue that has been going on between our blogs.

Keep up the great work!

[?]
Share This

Related posts:

  1. Long Time, No Post
  2. Post 100: If Jeans Could Talk…
  3. spencerb.net update
  4. Weekend Blogging Hiatus 2 Ends
  5. Obsessive Compulsive Web Researching
  1. Dan Schoppe posted the following on October 29, 2008 at 11:57 pm.

    Agreed. It’s been a great way to keep in touch.

    It’s also a great way for the engineer in me to remember how to write and communicate.

  2. Tony Schwab posted the following on October 30, 2008 at 7:26 am.

    Hell yeah! Jon, Derek, and I had a pretty lengthy discussion about politics because I started talking about our blogging habits of late. It’s a really good application of writing skills too – on that I completely agree.


Leave a reply



Get Adobe Flash playerPlugin by wpburn.com wordpress themes

Close
E-mail It