<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Manga+Press &#187; 2.5</title>
	<atom:link href="http://manga-press.jes.gs/tags/2-5/feed/" rel="self" type="application/rss+xml" />
	<link>http://manga-press.jes.gs</link>
	<description>The webcomic CMS for Wordpress!</description>
	<lastBuildDate>Mon, 06 Feb 2012 04:05:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>MUST READ: Manga+Press 2.5 Bugs and Issues</title>
		<link>http://manga-press.jes.gs/2009/08/must-read-mangapress-2-5-bugs-and-issues/</link>
		<comments>http://manga-press.jes.gs/2009/08/must-read-mangapress-2-5-bugs-and-issues/#comments</comments>
		<pubDate>Sun, 02 Aug 2009 18:28:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Updates]]></category>
		<category><![CDATA[2.5]]></category>
		<category><![CDATA[Bug-Fixes]]></category>
		<category><![CDATA[Help]]></category>

		<guid isPermaLink="false">http://manga-press.silent-shadow.net/?p=163</guid>
		<description><![CDATA[Well, this just made my day. I&#8217;ve discovered a few bugs/issues with Manga+Press 2.5 that I think people should be aware of. Please note that I am not absolutely sure of the severity of these bugs because I have one installation where they&#8217;re not appearing and another installation where they are appearing. Since the two [...]]]></description>
			<content:encoded><![CDATA[<p>Well, this just made my day. I&#8217;ve discovered a few bugs/issues with Manga+Press 2.5 that I think people should be aware of. Please note that I am not absolutely sure of the severity of these bugs because I have one installation where they&#8217;re not appearing and another installation where they <em>are</em> appearing. Since the two installations in question are my webcomic site and the demo (this site), it could be a problem with having two WordPress installations under the same domain name, since the demo is a sub-domain of my webcomic site. Anyway, the bugs and the steps taken to fix them are listed below:<span id="more-163"></span></p>
<p>The first bug I discovered had to do with the new &#8220;filter comic posts from front page&#8221; option. Apparently, when this option is enabled, it would cause the Edit Pages (edit-pages.php) to throw a 404 when the page was accessed.</p>
<p>Another bug related to this same option was sometimes causing a WordPress install to throw a 500 Internal Server Error. I tracked it down to which hook I was using to call the function that filters the categories. So I&#8217;ve changed that, and there doesn&#8217;t seem to be a problem with the WordPress installations in question.</p>
<p>Another very minor bug had to do with the &#8220;insert comic banner on front page&#8221; option. That was more of a formatting issue that had to do with where I had a curly brace placed. That has been corrected as well.</p>
<p>Finally, the (knocks-on-wood) <em>last</em> bug I found has to do with the Latest Comic page option. In Manga+Press 2.5, all you had to do was set the page and it would automatically filter the page&#8217;s content to include the comic navigation and comic post. Well, in a pre-release version of Manga+Press 2.5, there was a minor bug that would prevent WordPress from adding <code>current_page_item</code> to the page navigation css. Well, very minor but annoying bug that I found a fix for but unfortunately, under certain conditions, that &#8220;fix&#8221; produced<em> another</em> bug that would cause the Latest Comic Page to throw a 500 Internal Server Error. *sigh* So that feature has been disabled as well.</p>
<p><strong>Updated 10.14.09</strong><br />
One workaround is in your current theme, create a new document called <code>page-latest-comic.php</code> and then copy-and-paste the code below into the new document:</p>
<pre lang="php" line="1">
<?php
// Template Name: Latest Comic
?>
<?php get_header(); ?>

        <!-- START #content role="content" -->
<div id="content">
        <?php if( is_comic_page() ) { wp_comic_navigation( wp_comic_last() ); }?>

        <?php // START WordPress Post-check ?>
        <?php if (have_posts()) : ?>

           	<?php // Custom code for Manga+Press to work. Don't edit this! ?>
        	<?php query_posts( 'cat='.wp_comic_category_id()."&#038;showposts=1" ); ?>

            <?php // START WordPress Loop ?>
			<?php while (have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a>
                	<span class="post-meta">by <?php the_author() ?> @ <?php the_time() ?> | <?php _e("Filed:"); ?> <?php the_category(',') ?></span></h2>

				<?php the_content(__('(more...)')); ?>
				<?php wp_link_pages(); ?>
                <span class="post-meta"><?php edit_post_link(__('Edit This'),"", " |"); ?> <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?></span>
            </div>

            <br style="clear:both" />
			<?php comments_template();  //Get wp-comments.php template ?>

	        <?php // END WordPress Loop ?>
			<?php endwhile; ?>

		<?php // END WordPress Post-check ?>
        <?php endif; ?>

	    <?php // This sets the WordPress query back to normal ?>
        <?php wp_reset_query(); ?>
        </div>

        <!-- END #content -->

<?php // Eliminate "if ( !is_comic_page() )" is your layout can support both side-bar and comic ?>
<?php if ( !is_comic_page() ) get_sidebar(); ?>

<?php get_footer(); ?>
</pre>
<p>Now, you might have to adjust the formatting to match your current theme; possibly even moving the <code>get_sidebar()</code> and <code>get_footer()</code> tags to match your own theme.</p>
<p>The second workaround is to take your current theme, and take either the <code>page.php</code> or the <code>single.php</code> (if the theme doesn&#8217;t have a page.php file) and copy it to something like <code>page-latest-comic.php</code>. Open the page-latest-comic.php file and:</p>
<ol>
<li>Look at the top of the file. If you don&#8217;t see something like the code below, then copy &amp; page it into the file:
<pre>&lt;?php
/*
 Template Name: Latest Comic Page
*/
?&gt;</pre>
</li>
<li>Next, look for the start of the WordPress Loop. It&#8217;s usually indicated by <code>&lt;?php if ( have_posts() ): ?&gt;</code></li>
<li>Right below that line, copy and paste the following lines of code:<br />
<code>&lt;?php if( is_comic_page() ) { wp_comic_navigation( wp_comic_last() ); }?&gt;<br />
&lt;?php query_posts("cat=".$mp_options[latestcomic_cat]."&amp;showposts=1"); ?&gt;</code></li>
<li>Finally, look for the end of the WordPress Loop, usually indicated by &lt;?php endif; ?&gt; and add this: &lt;?php wp_reset_query(); ?&gt; directly below that line.</li>
<li>Close, save and upload the file to your WordPress theme&#8217;s directory. Then log into your WordPress install and go to Edit Pages. Find the page you designated as your latest comic page, and using Quick Edit, find the Page Template dropdown and select  <strong>Latest Comic Page</strong>.</li>
<li>Finally, click <strong>Update Page</strong>. That should be all.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://manga-press.jes.gs/2009/08/must-read-mangapress-2-5-bugs-and-issues/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

