PHP by Chris Heath

311wisdom.php | [back to chrisheath.us ⤶]


311wisdom.php [back to top]
311's Lyrical Wisdom (A modified version of the Hello Dolly plugin for Wordpress)

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
<?php
/*
Plugin Name: 311's Lyrical Wisdom
Plugin URI: http://wordpress.org/#
Description: This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation summed up the many lyrical wisdoms of the band 311.
Author: Matt Mullenweg, Chris Heath
Version: 1.5
Author URI: http://photomatt.net/ :: http://blog.chrisheath.us/

// These are the lyrics to Hello Dolly
Hello, Dolly
Well, hello, Dolly
It's so nice to have you back where you belong
You're lookin' swell, Dolly
I can tell, Dolly
You're still glowin', you're still crowin'
You're still goin' strong
We feel the room swayin'
While the band's playin'
One of your old favourite songs from way back when
So, take her wrap, fellas
Find her an empty lap, fellas
Dolly'll never go away again
Hello, Dolly
Well, hello, Dolly
It's so nice to have you back where you belong
You're lookin' swell, Dolly
I can tell, Dolly
You're still glowin', you're still crowin'
You're still goin' strong
We feel the room swayin'
While the band's playin'
One of your old favourite songs from way back when
Golly, gee, fellas
Find her a vacant knee, fellas
Dolly'll never go away
Dolly'll never go away
Dolly'll never go away again

*/


//This is some lyrical wisdom from the band 311
$lyrics = "Love is always free.
Sit back. Just relax. Let your mind unwind. Pull your good thing close.
Let tranquility surround.
The joy of giving pleasure is beyond measure.
Learn from experience.
The soul suckers must be circumnavigated.
At life's end, we'll feel the calm. How strange we should be here at all.
Think not but what your manifest is worth.
Everything you do, it comes back to you, whatever it may be.
If it isn't one thing, rest assured that something will come back and pay you for your deeds.
A shortcut's a self-defeating mean.
If you cannot do it clean, you'll never reach your reward.
And when the day is done, what you receive is the sum of what you took out from what you put in.
What you did as a devil or what you did as an angel, the favor returns itself somehow.
To just know hate, well that's so sad. What a life, strife.
Edification will take place. Pull up the reigns and get out of the race.
Kingdom comin' through ya.
The fish who keeps on swimming is the first to chill upstream.
The Nix Hex is on.
Cruise on by the frowners.
Life's a bowl of punch. Go ahead and spike it.
The world is yours once you have found: the good is to share which is elsewhere.
The devil is coke.
Fuck the bullshit. It's time to throw down.
Earth is where it's at.
FOLLOW YOUR BLISS.
There's much power in anger, but love's a bigger banger.
Of racist institutions, simple minds belong.
It's a waste to be a hater.
In the end, revenge sends end to the defendant.
Death reborn into the world is a gift.
Listen to everyone, then disregard it. The meaningful shit comes back.
The truth is what you shoot for, not one. Nothing brings it all together. The journey's never done.
The roots that grow in the ground are as big as the tree.
We waste so many moments standing on convention.
There comes a time to reap what you've sewn.
Suspend your disbelief.
The jaded ones will wither while the optimistic grow.
We spend our lives learning. If you like learning, life is large.
Jail terms should be picked in the order of the pain that they cause.
DO WHAT THOU WILT shall be the whole of the law until you violate the rights of another.
Respect the space of your sister and your brother.
The war on drugs may be well intentioned, but it falls fucking flat when you stop and mention the overcrowded prisons where a rapist gets paroled to make room for a dude who has sold a pound of weed, to me that's a crime. Here's to good people doin' time.
It's alright to feel good. It's alright for nothing to be wrong.
Nothing in life is above being honest.
You've got to trust your instinct and let go of regret.
Fuck the naysayers 'cause they don't mean a thing.
Fuck the naysayers and keep going.
Guns are for pussies.
The goal is to be poet and a carpenter, to be one that loves, to be one who works.
Don't stay home.
The method that makes sense is patience.
Never give in. Never conform.
You're a transistor, lightning resistor, conducting to the Mother Star.
To survive the dimension is four.
Free energy has been harnessed. We don't use it. Why? 'Cause the technique's been suppressed.
Evolution is fact. We're all from the same Lucy despite differences you see.
Be sure that a dream's alive.
Be positive and love your life.
The Pleadies will smash out of Taurus.
Let's take that love further.
We should say how we feel.
Give thanks and praise for the good things you've found.
Tune in. For those who are wanting vision, feel it within.
Violence is for those who can't handle diction.
Try to freeze time for your mind.
You are immortal.
Get with your rhythm. Get with your nature.
You've got to come original.
Activate and attune yourself with meditation.
Life's not a race.
Take on the Love and the good Karma.
Just sever that leash and release your freedom of speech. You just have to believe your deed will be received somehow, somewhere.
You've got a wishing well within, that's ready to begin.
Evolution has exponential timing. It'll be half as long 'til the next breakthrough that blows our mind.
It's up to people to brave on with experimentation. Move forth the species by using our imagination.
If it's understood it could be used for good and would if you will believe in all we can conceive.
Compressed is your life in the physical, but out of memory comes a vision which is a miracle.
People want to believe in mysteries.
An itinerant dimension mystic is your spirit.
When we come together, new planet is born.
The only thing that never gets old is honesty.
From chaos comes clarity.
You don't have to be a prick just to be heavy.
Now don't scream. Don't fight. Fear never ever made it go away.
The world we're livin' in is complicated.
The streets that we walk on are dark and jaded.
A wandering soul that's filled with hatred - in it is poison.
The youth is tainted.
Social engineering keeps us separated.
Media control is highly overrated.
Ignorance is bliss to those uneducated.
Listen to the message 'cause it's time we faced it.
Wake your mind up. Clear your eyes up.
Move and rise up before your times up.
They want you to think someone's watching you so they can make up a set of rules for you.
Don't stop what you got. Don't stop 'til you find the sweet spot.
First you gotta break with drastic measure, then confusion gives way to flash of light.
Next your gonna find blissful pleasure in a freedom reigning through blissful foresight.
Yeah, do it smoothly. Feel the love. Let it soothe thee, send ya to bliss with all the wisdom of the sweetest kiss.
Sacred temple is what you're given. Receive the medicine.
Don't buy the fear.
Carry on and you won't feel withdrawn, even if you're coming down.
Anytime you will ignore your heart it will come back twice more. Never deny your own instinct. Reconsider everything.
In the world beside this one there are no lies and no suspicion, only dreams without end.
Just hang on in there.
It's one thing to make the same mistake twice, (but) another thing to make it all of your life.
Lovely life I thank you for the reason to see the pain through.
Don't give up the fight to stay alive, and even if you have to find the reason of another's pain if they lose you - if not for yourself then those around who care like I do. One day you'll see the clear blue.
In times of trouble everyone joins a team. No one waves a flag for all human beings. No one's excited unless they are divided. Someone's going to have to give in.
Your denomination should be a private thing. How about a spirit for all human beings?
Noise in our culture is built in our nature. Another era will decode as we head toward rapture.
Suppose we're all gifted. Suppose that the mist is a metaphor for change. Suppose the veil will be lifted.
Solar marigolds light the souls return from that other world.
There's so much here at stake when every moment is just fleeting.
Rip up the evening post. Kill parasitic hosts. We can shoulder all the karma.
To Martian life forms these waters are real warm, but beware, we can change the weather and create a snowstorm.
Make that dream real and be sure it stays done. So let that thought bloom in your mind. A vision that's caught, never left behind.
Patience and years will refashion what hours will undo.
Don't dwell. That will leave you in hell.
Regret is so blinding.
Everything is a choice. Go ahead raise your voice. Might as well forgive yourself. That means more than someone else.
Set you free. Break the shell. To your demons, farewell.
We have a problem. All this TV has made us dumb. Anxious is what we've become. Too much prozac in our systems. It's our mental condition.
One thing (that) lacks is education. Institutions fuck with our emotions.
We could learn, but usually we burn, and then we waste it. Taste it. Time and time again, it's time to take your medicine.
Sometimes jacks will rule the realm. Sometimes jealousy will dwell. You can't begin to dispel when you can not even tell.
The last straw - there's no reason for getting there at all.";

// 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');
// add_action('get_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');
// add_action('get_header', 'dolly_css');

?>


[back to chrisheath.us ⤶]