PageView Plugin

Apr 14, 2005 | Tags: iframe, plugin, wordpress | Written by John

download

Download: pageview.zip
Version: 1.4.4
Updated: November 7, 2007
Size: 10.89 KB

Support This Plugin!

While this software is being provided free to use, it takes considerable time to develop and support. If you do find it particularly useful or want to request a feature then consider donating money as an incentive for me to carry on developing it.

Thanks!

I have other plugins too!

PageView is a plugin that will display another web page inside the current post. This is achieved with the use of an iframe - an HTML tag that allows a webpage to be displayed inline with the current page. Although an iframe can lead to a complicated website, it can be very effective when used appropriately.

Installation

Download pageview.zip Unzip Copy to your /wp-content/plugins directory Activate plugin

You can find full details of installing a plugin on the plugin installation page.

Usage

[pageview url "some title" description]

An example is shown below:

View code
Description: A blog within a blog!
[ / ]
Share This

Comments (page 10 of 10)

author
Richard :

Jul 23, 2008 9:24 am

Thanks, this is exactly what i was looking for.

author
Brant Peery :

Jul 21, 2008 5:24 pm

I have modified this a bit. I was unhappy with the way it handled the template file and how restrictive it was on the formatting. So I rewrote the replace routine in the class to find all key value pairs and pass them on to the template processing function. So now instead of being stuck with just url, description, and title you can use whatever you want (and as many as you want) Here is the change in usage.

All parameters are optional. However it would be useful to have at least something that passes the url.
[pageview parameter='value'...]

To work with the existing template just pass these parameters
ex.
[pageview url='url' description='this is the description' title='this is the title']

I like to throw on a style parameter so I can control the height of the iframe. That means that I must use that variable in the template file.

<iframe src="" frameborder="0" style="" >Get a better browser!

here is the change in the function in pageview.php

function replace ($matches)
{
//Separate all the parameters
preg_match_all("/\w*='[^']*'/", $matches[0],$allParameters);

//split each parameter into a key=>value pair
foreach ($allParameters[0] as $parameter) {
$pair=split("='", $parameter); //do the split
$pair[1] = trim($pair[1],"'"); //Trim off the trailing single quote

//store the key value pair
$pairs[$pair[0]] = $pair[1];
}

return $this->capture('pageview', $pairs);
}

author
Soumyabg :

Jul 11, 2008 3:12 am

to change height or width you have to change the pageview.css file inside the plugin/pagview folder...

author
David :

Jul 9, 2008 8:42 am

In response to your comment 84, is there a way to set the height with inline code much like you can do with a tag?

author
TJ Powell :

May 6, 2008 8:08 pm

This plugin works great! Thanks for the hard work on it!

author
MightyA :

Apr 17, 2008 7:20 pm

This is weird...I actually cut and pasted the astore code following the above, and when I submitted it, the astore code disappeared...

author
MightyA :

Apr 17, 2008 7:18 pm

Hi John,
I am new to all of this and have been learning by trial and (mostly) error, so I would appreciate any help you can give me. I am using WordPress 2.5, the Autumn Concept 1.1 theme. I am trying to insert an Amazon.com astore into a webpage I have titled "Store" I have successfully downloaded your plug-in and activated it.
In the HTML editor for this page, I've typed: what I believe your instructions said, and immediately followed it with the astore code, as follows:

[pageview http://retireforlessincostarica.com/store/ "Retire for Less in Costa Rica" Store]

However, when I publish and preview the page, all I see is a 404 Error. What am I doing wrong? Do I need to use the tags? Do I need to copy something from the pageview style sheet into my html editor?

Thanks in advance,
MightyA

author
john :

Apr 15, 2008 11:44 am

This works great. However i'd like to keep the actual url to the page in the iframe hidden. If a user clicks on the title, the url is then displayed. Is their a way to keep that from being displayed?

author
Stefan :

Mar 16, 2008 5:08 pm

Nice, Works well for me. I modified it for my uses a bit.

author
John :

Feb 5, 2008 9:23 pm

Well, it work great in IE, but in Firefox the iframe only shows up as a 3rd of the width as it does in IE.
http://www.auburnbrewclub.org/calendar/

Pings & Trackbacks

efl.cc, my.donews.com, pruebas.flumo.com, rishel.org, sidekick.myblog.hk, sunccc.mireene.com, syed.theblognet.net, uboat317.blog.cn.com, westblog.8866.org, bestfx.org, lzp729.cn, wordpressplugin.org, wp-plugins-db.org

Leave a comment


XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Home | Software | Terms & Conditions | Sitemap | John Godley © 2008
Close
Social Web E-mail
E-mail It


You are viewing a mobilized version of this site...
View original page here

Mobilized by Mowser Mowser