Wednesday, December 31, 2008

Parse code for blog entry in one click

http://www.blogcrowds.com/resources/parse_html.php

Just copy & paste your code into this.  It rewrites your brackets and parenthesis so blogs don't get so scared.  Code> tags, never again.

How to display wordpress posts outside the blog

Awesomely Easy:
http://www.corvidworks.com/articles/wordpress-content-on-other-pages

<?php
// Include Wordpress
define('WP_USE_THEMES', false);
require('./blog/wp-blog-header.php');
query_posts('showposts=1');
?>

<?php while (have_posts()): the_post(); ?>
<h2><?php the_title(); ?></h2>
<?php the_excerpt(); ?>
<p><a href="<?php the_permalink(); ?>">Read more...</a></p>
<?php endwhile; ?>

Monday, November 24, 2008

miami dolphins anthem lyrics

Unknown - Miami Dolphins Fight Song LYRICS

Miami has the Dolphins
The Greatest Football Team
We take the ball from goal to goal
Like no one's ever seen
We're in the air, we're on the ground
We're always in control
And when you say Miami
You're talking Super Bowl

'Cause we're the...

Miami Dolphins,
Miami Dolphins,
Miami Dolphins Number One.
Yes we're the...
Miami Dolphins,
Miami Dolphins,
Miami Dolphins Number One

Monday, November 17, 2008

twitter rest api PHP application source

Woork: Twitter: send message from a PHP page using Twitter API

This didn't answer my question but it's cool. Throw a little "what am I doing" box on your website...

As for the parameter called "source", i'm throwing it in the header

twitter rest api PHP

Web APIs by Example, Part I: Twitter • Evan Sims

Use php to post updates to the twitter API. Super easy, super fun.

phpTinyURL for WordPress articles

Creating a “GoTo” URL For Your WordPress-Powered Site

Create a folder w/ a short name and send post ID to it:
http://www.showbizradio.net/goto/2133

For HTACCESS:

RewriteEngine On
RewriteRule ([0-9]+) /index.php?p=$1 [R=301,L]
RewriteRule (.*) / [R=301,L]


I had to do 2 redirects, one htaccess, one php header redirect to use our SEO-friendly slug url.

Friday, November 14, 2008

replace spaces with plus signs php

Use PHP to replace spaces with plus symbol in a string?


$myString = "1234 Example Street";
$newStr = str_replace( " ", "+", $myString );
echo( $newStr );