<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0">
    <title>Comments for Paged content using Movable Type!</title>
    <link rel="alternate" type="text/html" href="http://bradchoate.com/weblog/2001/11/03/php" />
    <link rel="self" type="application/atom+xml" href="http://bradchoate.com/weblog/2001/11/03/php" />
    <id>tag:bradchoate.com,2010://4-</id>
    <updated>2006-03-19T23:16:32Z</updated>
    <subtitle>The man, the legend.</subtitle>
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.2-en</generator>
 

<entry>
    <id>tag:bradchoate.com,2001://4.183-comment:48</id>
    <thr:in-reply-to ref="tag:bradchoate.com,2001://4.183" href="http://bradchoate.com/weblog/2001/11/03/php"/>
 
    <link rel="alternate" type="text/html" href="http://bradchoate.com/weblog/2001/11/03/php#c48" />
    <title>Comment from christina on 2002-03-08</title>
    <author>
        <name>christina</name>
        <uri>http://www.eleganthack..com</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://www.eleganthack..com">
        <![CDATA[<p>HI!</p>

<p>I'm trying to make this work, and I'm gettin this error</p>

<p>Warning: Missing argument 2 for bloggerpagedbody() in /home/.delmanblender/cwodtke/boxesandarrows/beta/archives/002328.php on line 9</p>

<p>Also, you dont' say where to put the first code block. I put it in the head, with comments like javascript. </p>

<p>I'm not a php head, as you may have guessed.</p>]]>
    </content>
    <published>2002-03-08T20:17:47Z</published>
</entry>

<entry>
    <id>tag:bradchoate.com,2001://4.183-comment:79</id>
    <thr:in-reply-to ref="tag:bradchoate.com,2001://4.183" href="http://bradchoate.com/weblog/2001/11/03/php"/>
 
    <link rel="alternate" type="text/html" href="http://bradchoate.com/weblog/2001/11/03/php#c79" />
    <title>Comment from Andrew Mahaney on 2002-05-09</title>
    <author>
        <name>Andrew Mahaney</name>
        <uri>http://andrewmahaney.com</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://andrewmahaney.com">
        <![CDATA[<p>Ben over at MT told me to check out your PHP for pagination.</p>

<p>From the looks of it, I'd have to insert a &lt;pb/&gt; in my blog entry wherever I want to paginate the text, right? Although your code would solve my issue, I'd prefer a solution that automatically paginates.</p>

<p>I'm working on a WAP (WML) version of my blog and would like to find a solution that will paginate based on the number of characters in the entry. Take a look at my post http://www.movabletype.org/support/ib3/ikonboard.cgi?s=3cd97ec3df2effff;act=ST;f=14;t=579;hl=new on MT for details. Could your PHP script be modified to automatically paginate every 1024 characters (including XHTML tags and all)? I know VERY little PHP, but I'm willing to learn it if this will solve my problem.</p>]]>
    </content>
    <published>2002-05-09T16:39:52Z</published>
</entry>

<entry>
    <id>tag:bradchoate.com,2001://4.183-comment:97</id>
    <thr:in-reply-to ref="tag:bradchoate.com,2001://4.183" href="http://bradchoate.com/weblog/2001/11/03/php"/>
 
    <link rel="alternate" type="text/html" href="http://bradchoate.com/weblog/2001/11/03/php#c97" />
    <title>Comment from darren on 2002-06-12</title>
    <author>
        <name>darren</name>
        <uri>http://staticred.net</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://staticred.net">
        <![CDATA[<p>Hey Brad... great mod... you can see it in action in a few days at http://nasty.cx</p>]]>
    </content>
    <published>2002-06-13T06:39:50Z</published>
</entry>

<entry>
    <id>tag:bradchoate.com,2001://4.183-comment:216</id>
    <thr:in-reply-to ref="tag:bradchoate.com,2001://4.183" href="http://bradchoate.com/weblog/2001/11/03/php"/>
 
    <link rel="alternate" type="text/html" href="http://bradchoate.com/weblog/2001/11/03/php#c216" />
    <title>Comment from Stephen on 2002-08-27</title>
    <author>
        <name>Stephen</name>
        <uri>http://www.sfu.ca/~stana</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://www.sfu.ca/~stana">
        <![CDATA[<p>If you want to keep things simple and let the main text body be page 1 and the extended text body be page 2 - the following modification of the script in the template will automatically paginate your post into 2 pages and insert urls to toggle between them</p>

<p>&lt;?php<br />
  // only display the main entry text if we're looking at the first page.<br />
  if (!$HTTP_GET_VARS['page'] || $HTTP_GET_VARS['page'] == 1) { ?&gt;<br />
&lt;MTEntryIfExtended&gt;[ page 1 | &lt;a href="?page=2"&gt;page 2&lt;/a&gt; ]<br />
&lt;/MTEntryIfExtended&gt;&lt;$MTEntryBody$&gt;<br />
&lt;?php<br />
  } else { ?&gt;<br />
&lt;a name="more"&gt;&lt;/a&gt;[ &lt;a href="?page=1"&gt;page 1&lt;/a&gt; | page 2 ]<br />
&lt;?php <br />
echo bloggerPagedBody("&lt;$MTEntryMore encode_php="qq"$&gt;");<br />
  } <br />
?&gt;<br />
</p>]]>
    </content>
    <published>2002-08-27T08:25:16Z</published>
</entry>



</feed>