Show another site or a web page in a frame within your blog by inserting into your post or page something like this:
<!–- webframe http://www.yahoo.com 400 200 -–>
And you get results like in the screen shot below.
Maybe you love/hate that site, or maybe you need to use an application but do not want to bother integrating it into WordPress properly. This is the easy way.
There is already an excellent sexy, fiery PageView plug-in by Urban Giraffe, but I wanted something very functional, so I trimmed it and changed it till I got this lean (less than 10 lines of actual code) yet friendly beast.
What it does, how it works
Decide where you want the frame to be and insert the WebFrame directive into your post: Show another site or a web page in a frame within your blog by inserting something like this:
<!–- webframe URL WIDTH HEIGHT -–>
URL, WIDTH, and HEIGHT with the respective values.
- Width and height are measured in pixels.
- URL can be absolute like
400 200 -–>
- or relative like
400 200 -–>
WebFrame owes most of this code to the wonderful PageView plug-in. I did not ask its author John Godley for permission or help – his code was an inspiration enough. So, whan WebFrame works – at least 80% of your thanks should be directed to John. When this plug-in horribly disfigures your server and ruins your marriage… I was going to put “the fault is mine” here, but read the disclaimer below!
I wrote WebFrame for my own purposes, not for public distribution. It is provided “As Is” and can probably do horrible harm.
I do not know PHP. I have never written a full PHP program in my life. Not even “Hello, World”. This means the code may be buggy and is guaranteed to be sub-optimal.
Parts of this plug-in came from other people’s code. I think I understand what they do, but not always why or how.
Have you read the Disclaimer above??? – download WebFrame here: WebFrame WordPress Plug-in Version 1.0
- Download the plugin (see “Download” above).
- Rename webframe.txt to webframe.php and put it into your plugins directory (/wp-content/plugins/) or in a sub directory of the plugins directory.
- Activate the Plug-in.
Writing all this up took time and effort. If you happen to be actually using this plug-in – I appreciate your vote of confidence and would love to hear about it!