<?php
/*
Plugin Name: Stewart's Single Page View
Plugin URI: http://www.ugelow.com/2005/09/12/stewart-single-page-view/
Description: Gives the option to see the full text of paged posts on a single page when "?page=all" is called. Just replace "the_content()" with "spv_the_content()" in your template. To insert a link to the single page view, use spv_link(). The link text defaults to "all", but you can use any string you want, i.e. spv_link("Single Page"). Note: the link will only appear when there is more than one page to the post.
Version: 1.0 
Author: Stewart Ugelow
Author URI: http://www.ugelow.com/
*/ 

// Inspired by http://wordpress.org/support/topic/37748
// Properly applies get_the_content tweaks
// and adjusts the page count so that link_pages() and wp_link_pages()
// won't think page number = 1

function spv_the_content() {
global 
$page;
global 
$pages;
if(
is_single() && isset($_GET['page']) && 'all' == $_GET['page']) {
        foreach (
$pages as $singlepage) {
        
$paginate apply_filters('the_content'$singlepage);
        echo 
$paginate;
        } 
//foreach
        
$page=0;
    } else {
        
the_content();
    }
//the_content_paginated

function spv_link($linktext "all") {
    global 
$numpages;
    if (
$numpages 1) {
    print (
'<a href="'.get_permalink().'?page=all">'.$linktext.'</a> ');
    } 
//
}
   
?>