ivee’s page


Hello Dolly
December 18, 2008, 10:38
Filed under: IS-Ebiz

This is the plugin which i copy pasted from my wordpress and then below it is a screen shot of the hello dolly.

<?php
/*
Plugin Name: Hello Dolly
Plugin URI: http://wordpress.org/#
Description: This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation summed up in two words sung most famously by Louis Armstrong: Hello, Dolly. When activated you will randomly see a lyric from <cite>Hello, Dolly</cite> in the upper right of your admin screen on every page.
Author: Matt Mullenweg
Version: 1.5
Author URI: http://ma.tt/
*/

// These are the lyrics to Hello Dolly
$lyrics = “Well you done done me and you bet I felt it
I tried to be chill but you’re so hot that I melted
I fell right through the cracks, now I’m trying to get back

Before the cool done run out, I’ll be giving it my bestest
And nothing’s going to stop me but divine intervention
I reckon it’s again my turn to win some or learn some

But I won’t hesitate no more, no more
It cannot wait, I’m yours

Well open up your mind and see like me
Open up your plans and damn you’re free
Look into your heart and you’ll find love love love love

Listen to the music of the moment people, dance and sing
We’re just one big family
And it’s our God-forsaken right to be loved loved loved loved loved

So I won’t hesitate no more, no more
It cannot wait, I’m sure
There’s no need to complicate, our time is short
This is our fate, I’m yours

D-d-do do you, but do you, d-d-do
But do you want to come on
Scooch on over closer dear
And I will nibble your ear

I’ve been spending way too long checking my tongue in the mirror
And bending over backwards just to try to see it clearer
But my breath fogged up the glass
And so I drew a new face and I laughed

I guess what I be saying is there ain’t no better reason
To rid yourself of vanities and just go with the seasons
It’s what we aim to do, our name is our virtue

But I won’t hesitate no more, no more
It cannot wait, I’m yours

Come on and open up your mind and see like me
(I won’t hesitate)
Open up your plans and damn you’re free
(No more, no more)
Look into your heart and you’ll find that the sky is yours
(It cannot wait, I’m sure)

So please don’t, there’s no need
(There’s no need to complicate)
There’s no need to complicate
(Our time is short)
‘Cause our time is short
(This is our fate)
This is, this is, this is our fate
I’m yours

Oh, I’m yours
Oh, I’m yours
Oh, whoa, baby you believe I’m yours
You best believe, best believe I’m yours
“;

// 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 hello_dolly() {
global $chosen;
echo “<p id=’dolly’>$chosen</p>”;
}

// Now we set that function up to execute when the admin_footer action is called
add_action(‘admin_footer’, ‘hello_dolly’);

// We need some CSS to position the paragraph
function dolly_css() {
echo “
<style type=’text/css’>
#dolly {
position: absolute;
top: 2.3em;
margin: 0;
padding: 0;
right: 10px;
font-size: 16px;
color: #d54e21;
}
</style>
“;
}

add_action(‘admin_head’, ‘dolly_css’);

?>

hellodolly-1



Final List of links for excercises in E-Biz
December 18, 2008, 10:14
Filed under: IS-Ebiz


My First Book!
December 16, 2008, 11:28
Filed under: Vertsol | Tags:

This is my first book for VERTSOL! COMPILATION of my WORKS!