Daily Archives: March 15, 2008

Modifying PageView Plugin for my needs

Recently, I needed to insert an IFRAME into a post. I could just insert the IFRAME code into the post, but the Tiny MCE editor chewed it up and occasionally would blow up. Looking for a WP Plugin that handles IFRAME’s, I came across John Godley’s PageView plugin. I like how it’s written and presented, but I wanted it take all the IFRAME parameters and not always have a header. So I modified the following files:

[pageview src=”//www.msnbc.msn.com/id/22425001/vp/23601329#23601329″ frameborder=”0″ height=”339″ scrolling=”no” width=”100%”]

Done via my modifications:
[ pageview src="//www.msnbc.msn.com/id/22425001/vp/23601329#23601329" frameborder="0" height="339" scrolling="no" width="100%" ]
If “src=” is in the plugin string, my modification will make an assumption that the entire string is the IFRAME parameters. As I don’t do any error checking, this could be potentially dangerous but it suits my needs.

[pageview http://www.msnbc.msn.com/id/22425001/vp/23601329#23601329 “Keith Oberman” Special Comment]

Done via original 3 parameters:
[ pageview http://www.msnbc.msn.com/id/22425001/vp/23601329#23601329 "Keith Oberman" Special Comment ]
This will use any defaults in the CSS file and in the case of the MSNBC IFRAME doesn’t work too good. This isn’t a deficiency of the plugin, it’s a good plugin doing exactly what it’s supposed to do. On top of that, the Code is well written and easy to read which made it easy for me to find the exact spot to modify for my needs.

Music I’m listening to right Now:
Big Bang Baby” by Stone Temple Pilots from the “Tiny Music…Songs From The Vatican Gift Shop” Album.

Keith Olbermann Special Comment

[pageview src=”//www.msnbc.msn.com/id/22425001/vp/23601329#23601329″ frameborder=”0″ height=”339″ scrolling=”no” width=”100%”]

Many people assume that since GW Bush is a frequent target of Keith Olbermann’s Special Comment that he’ll ignore anything other people say. Quite frankly, this is not the case as he demonstrated on his March 12th show. I read about it at the Huffington Post (transcript) and have to say: He nails the issues perfectly.

I know Sen. Clinton wants to be the next president, but the actions Mr. Olbermann calls her out on make me wonder if she should be the next president. After 8 years of incompetence in the GW Bush adminstration, A democrat getting elected should be a no brainer, but the way this is playing out makes me wonder.

If the Democratic Party blows it, Sen. John McCain seems to be running a campaign where he’ll act as the Third Term of GW Bush. Frankly, that would be a disaster for the United States as we’re in horrible shape now and can’t continue in the direction we’ve been going in. The Right Wing policies of the GOP just aren’t working (Unless your Bear Stearns of course…) and The Democratic Party, while holding a majority in the House and Senate, can’t seem to develop the backbone needed to change the path we’re on.

BTW: The IFRAME above was done via a slightly modified PageView plugin. I liked the plugin so I modified it for my own nefarious purpose.

Music I’m listening to right Now:
The Way I Am” by Ingrid Michaelson from the “Girls and Boys” album. You can see the video here on VH1.com’s site.