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(); ?> Annoyed at spencerb.net



Annoyed

I should have known better. As many of you know, I have been working on my server project for some time now. I took an extended break for finals from work. I’ve been having two road blocks as of late. The first, as the last post mentions, is Synergy. The second, has been getting phpmyadmin to work, which is a web-based interface to manage mysql databases. Databases are essential for many modern web applications, like Wordpress.

In Linux, the web address for phpmyadmin kept displaying code in Firefox. It has been frustrating me for the past few days. Then, I sat down today on my laptop and the login came up! I’m surprised and a bit troubled, but at least I can move on!

One thing that worries me in Linux is that many commands can be easily issued to solve a problem. Sometimes those commands don’t solve the problem. In 99% of those cases, I’m less certain how to undo the command. Oh well.

[?]
Share This

No related posts.


Leave a reply



Get Adobe Flash playerPlugin by wpburn.com wordpress themes

Close
E-mail It