Wordpress.com is the world’s premier blog, as compared to Blogger. WordPress.org offers you software that helps you develop your website or blog.
The advantages of using WordPress is the large number of themes, widgets and plugins that are offered.
Thus you need not know a single line of code to create, develop and maintain a website.
Decisionstats proudly presents it’s first wordpress plugin extension “Lose Your self”
A extension of Hello Dolly ,this plugin plays random lines from the iconic song “Lose Yourself” by Eminem from the 8 mile soundtrack,into the admin section of your wordpress (http://domainname/wp-admin).
This pluign has been approved by the WordPress community, and I am in process of uploading it using the subversion /subvention system that they use.
I am pasting the code here,copy the code in blue font in a text file, save the file as “yourself.php”
please note DO include the double quotations.
-In case you want to change the lyrics to some other favorite song , replace the words which are martked in bold.
This song was written and performed by Eminem in the 8 mile soundtrack, and the original plugin was created by Matt. When working within wordpress this puts a random line at the right hand corner in the admin section ..helps to pass the large amounts of time as you configure your site.
<?php
/*
Plugin Name: Lose Yourself
Plugin URI: http://wordpress.org/#
Description: This is not just a plugin, it symbolizes the anguish of an entire generation summed up in two words sung most famously by Eminem: Lose, Yourself. When activated you will randomly see a lyric from <cite>Lose, Yourself</cite> in the upper right of your admin screen on every page.Its inspired by Matt’s famous Hello Dolly Plugin but the song is suited to newer times
Author: Matt Mullenweg modified by Ajay Ohri
Version: 1.6
Author URI: http://photomatt.net/
*/
// These are the lyrics to Lose Yourself
$lyrics = “Look, if you had one shot, or one opportunity
To seize everything you ever wanted-One moment
Would you capture it or just let it slip?
His palms are sweaty, knees weak, arms are heavy
There’s vomit on his sweater already, mom’s spaghetti
He’s nervous, but on the surface he looks calm and ready
To drop bombs, but he keeps on forgettin
What he wrote down, the whole crowd goes so loud
He opens his mouth, but the words won’t come out
He’s choking, how everybody’s joking now
The clock’s run out, time’s up over, bloah!
Snap back to reality, Oh there goes gravity
Oh, there goes Rabbit, he choked
He’s so mad, but he won’t give up that
Easy, no
He won’t have it , he knows his whole back’s to these ropes
It don’t matter, he’s dope
He knows that, but he’s broke
He’s so stagnant that he knows
When he goes back to his mobile home, that’s when it’s
Back to the lab again yo
This this whole rhapsody
He better go capture this moment and hope it don’t pass him
You better lose yourself in the music, the moment
You own it, you better never let it go
You only get one shot, do not miss your chance to blow
This opportunity comes once in a lifetime yo
The soul’s escaping, through this hole that it’s gaping
This world is mine for the taking
Make me king, as we move toward a, new world order
A normal life is boring, but superstardom’s close to post mortem
It only grows harder, only grows hotter
He blows us all over these hoes is all on him
Coast to coast shows, he’s know as the globetrotter
Lonely roads, God only knows
He’s grown farther from home, he’s no father
He goes home and barely knows his own daughter
But hold your nose cause here goes the cold water
His hoes don’t want him no mo, he’s cold product
They moved on to the next schmoe who flows
He nose dove and sold nada
So the soap opera is told and unfolds
I suppose it’s old partner’, but the beat goes on
Da da dum da dum da da
No more games, I’ma change what you call rage
Tear this motherfucking roof off like 2 dogs caged
I was playing in the beginning, the mood all changed
I been chewed up and spit out and booed off stage
But I kept rhyming and stepwritin the next cypher
Best believe somebody’s paying the pied piper
All the pain inside amplified by the fact
That I can’t get by with my 9 to 5
And I can’t provide the right type of life for my family
Cause man, these goddam food stamps don’t buy diapers
And it’s no movie, there’s no Mekhi Phifer, this is my life
And these times are so hard and it’s getting even harder
Trying to feed and water my seed, plus
Teeter totter caught up between being a father and a prima donna
Baby mama drama’s screaming on and
Too much for me to wanna
Stay in one spot, another day of monotony
Has gotten me to the point, I’m like a snail
I’ve got to formulate a plot fore I end up in jail or shot
Success is my only motherfucking option, failure’s not
Mom, I love you, but this trailer’s got to go
I cannot grow old in Salem’s lot
So here I go is my shot.
Feet fail me not cause maybe the only opportunity that I got
You can do anything you set your mind to, man
“;
// Here we split it into lines
$lyrics = explode(“\n”, $lyrics);
// And then randomly choose a line
$chosen = wptexturize( $lyrics[ mt_rand(0, count($lyrics) – 1) ] );
// This just echoes the chosen line, we’ll position it later
function lose_yourself() {
global $chosen;
echo “<p id=’yourself’>$chosen</p>”;
}
// Now we set that function up to execute when the admin_footer action is called
add_action(‘admin_footer’, ‘lose_yourself’);
// We need some CSS to position the paragraph
function yourself_css() {
echo ”
<style type=’text/css’>
#yourself {
position: absolute;
top: 2.3em;
margin: 0; padding: 0;
right: 1em;
font-size: 16px;
color: #f1f1f1;
}
</style>
“;
}
add_action(‘admin_head’, ‘yourself_css’);
?>
——————————————————————————————
Like this:
Like Loading...