Forums | having the comic on a separate page

You must be logged in to post Login Register

Search Forums:


 






having the comic on a separate page

New Issue
UserPost

1:31 pm
December 1, 2009


troubleticket

Member

posts 24

dunno what happened, but last night I switched themes for two seconds from stripstudio to an old comicpress install, just to test something, and when I went to switch back to your theme I got this…


Fatal error: Call to undefined function noncomic_category() in /hermes/bosweb/web242/b2420/ipw.ttadmin/public_html/wp-content/themes/stripstudio/functions.php on line 29


not quite sure how to fix it.

1:36 pm
December 1, 2009


Brad

Admin

posts 191

If you switched to the ComicPress theme, are you sure the stripShow plugin is still enabled? It doesn't generally work with that theme, so you may have disabled it.

1:42 pm
December 1, 2009


troubleticket

Member

posts 24

I'm an idiot… That was the problem.


That makes sense, because when I switched to comicpress I must have gotten rid of some of the comicpress manager stuff, during the switchover everything went wonky.


Thanks!


Also, I had a few questions about the comic page.


1) what calls the title of the post? right now it just says comic page at the top, but I'd like it to have the title of that comic. I can insert a call, I'm just not sure what to call.


2) what is the easiest way to change the first next previous last to actual icons or arrows? I've got the images already


3) in the comments section, it will show that I have a comment, but when I click on it, nothing happens.


Thanks again for all of the help.

7:52 am
December 8, 2009


troubleticket

Member

posts 24

Do you by chance know the code to generate archives? I created an archive page that's basically a blank that shows my header, footer, and sidebar, with an open middle. I just modified the code from your comic page template. The problem is that I am running into is calling the archives. I don't really care which kind of archives I have, I just need some for some of the comic listing sites, like webcomicz I believe.


Also, is there a way to generate smaller images of the comic for my feed?


Thanks!

1:31 pm
December 8, 2009


Brad

Admin

posts 191

troubleticket said:

Do you by chance know the code to generate archives? I created an archive page that's basically a blank that shows my header, footer, and sidebar, with an open middle. I just modified the code from your comic page template. The problem is that I am running into is calling the archives. I don't really care which kind of archives I have, I just need some for some of the comic listing sites, like webcomicz I believe.


Also, is there a way to generate smaller images of the comic for my feed?


Thanks!


You can use one of two template tags to add a comic archive to a page: comic_archive_list() and comic_archive_table(). Which one you use depends on which kind of HTML element you prefer styling.


As for smaller images in feeds, you know, that's a good idea. Right now there isn't a built-in way to do it, but here's a workaround if you want to edit your code. In stripshow.php, find this:

function add_comic_to_feed($content) {
    global $post;
    if (is_feed() && is_comic()) {
        return '<div>'.show_comic_for_id($post->ID,$thumbnail=false,$echo=false)."</div>n</div>".$content.'</div>';
    } else {
        return $content;
        }
    }

Change that $thumbnail=false to $thumbnail=true, and you got it.

8:10 am
December 9, 2009


troubleticket

Member

posts 24

Okay, so I found the archive page that you included with stripStudio. It wasn't showing up in my templates because it wasn't named. I went to the comic page template and took the php template name from there, copied it into the archive page, and then it would show up. So I made an archive page, set the template to archive, and clicked publish. when I went to the archive page, nothing shows up. This is what I get.


http://troubleticketcomic.com/archive


here is the code from the archive.php file


<?php
/*
Template Name: Archive Page
*/
?>

<?php get_header(); ?>

<div id="contentwrapper"><div id="content">

<div class="adsense_top"><?php include (TEMPLATEPATH . '/adsense_top.php'); ?></div>

<?php if (have_posts()) : ?>

<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>

<?php /* If this is a category archive */ if (is_category()) { ?>
<h2 class="pageTitle">Entries for the &#8216;<?php single_cat_title(); ?>&#8217; Category</h2>
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
<h2 class="pageTitle">Entries Tagged &#8216;<?php single_tag_title(); ?>&#8217;</h2>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h2 class="pageTitle">Entries for <?php the_time('F jS, Y'); ?></h2>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h2 class="pageTitle">Entries for <?php the_time('F, Y'); ?></h2>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h2 class="pageTitle">Entries for <?php the_time('Y'); ?></h2>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h2 class="pageTitle">Author Archive</h2>
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h2 class="pageTitle">Blog Archives</h2>
<?php } ?>

<?php while (have_posts()) : the_post(); ?>

<div class="post">
<h2 class="postTitle"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
<div class="postMeta">
<span class="date"><?php the_time('M.d, Y') ?></span> in
<span class="filed"><?php the_category(', '); ?></span>
<span class="commentcount"><?php comments_popup_link('Leave a Comment', '1 Comment', '% Comments'); ?></span>
</div>
<div class="postContent"><?php the_excerpt('(Read the rest of this entry…)'); ?></div>
<div class="postMeta"><span class="tags"><?php the_tags('Tags: ', ', ', ''); ?></span></div>
</div> <!– Closes Post –>

<?php endwhile; ?>

<div id="nextprevious">
 <div class="left"><?php posts_nav_link('','','&laquo; previous entries') ?>&nbsp;&nbsp;</div>
 <div class="right"><?php posts_nav_link('','next entries &raquo;','') ?></div>
</div>
<div class="cleared"></div>

<?php else : ?>

<div class="post">
<h2 class="postTitle">Not Found</h2>
<p>Sorry, but you are looking for something that isn't here.</p>
</div> <!– Closes Post –>

<?php endif; ?>

</div></div> <!– Closes Content –>

<?php get_sidebar(); ?>

<div class="cleared"></div>

</div> <!– Closes Main –>
<div class="bottomcurvewhite"></div>

<?php get_footer(); ?>


9:15 am
December 9, 2009


Brad

Admin

posts 191

Actually, that's not the archive page I included. It's the built-in one. I didn't include one. :)

I whipped up a basic page template based on the page.php file included with StudioPress:

<?php
/*
Template Name: Comic Archive
*/
?>
<?php get_header(); ?>

<div id="contentwrapper"><div id="content">

<div class="adsense_top"><?php include (TEMPLATEPATH . '/adsense_top.php'); ?></div>

<?php if (have_posts()) : ?>

<?php while (have_posts()) : the_post(); ?>

<div class="post">
<h2 class="postTitle"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
<div class="postContent"><?php comic_archive_list(); ?></div>
</div> <!– Closes Post –>

<?php endwhile; ?>

<?php else : ?>

<div class="post">
<h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn't here.</p>
<div class="search">
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
</div> <!– Closes Search –>
</div> <!– Closes Post –>

<?php endif; ?>

</div></div> <!– Closes Content –>

<?php get_sidebar(); ?>

<div class="cleared"></div>

</div> <!– Closes Main –>
<div class="bottomcurvewhite"></div>

<?php get_footer(); ?>

Actually, I just changed the_content to comic_archive_list, but don't tell anybody. :)

1:58 pm
December 9, 2009


troubleticket

Member

posts 24

awesome…


that worked perfectly.


Any idea of why the comments won't show on the comic page?

8:31 am
December 10, 2009


Brad

Admin

posts 191

Ah, yes. I fixed that problem too. I'm attaching a new version of stripStudio to this post.

stripstudio-1.1.zip

9:37 am
January 21, 2010


troubleticket

Member

posts 24

Okay, I've finally stopped travelling after the holidays and there's just a few more minor changes I'd like to make to the site.


- The archive page -

I would like the archive page to divide the comics by year, or drop down list, if possible. I just want this so it's not a big list.


I'd also like to archvie the blog entries as well. I'm going to be editing some older ones and recategorizing them as rants, reveiws, etc and I would like for the reader to be able to more easily search older blog posts.


- The comic page -

I would like to have navigation arrows under the comic, right above my PW ad and roughly the same width. I can do the arrows, but I just wasn't sure about the code.

Also, I'd like to be able to display the social bookmarking plugin I use a little higher up, just so that it's above the fold. I don't know if that's possible though.


Finally, do you have any kind of plugin or idea about how I could do a "buy a print" icon under the comic as well? Frumph made a template for comicpress a while back and I've been trying to modify it but it's not working out so well.


Thanks again for all of your help!

11:09 am
January 21, 2010


Brad

Admin

posts 191

troubleticket said:

Okay, I've finally stopped travelling after the holidays and there's just a few more minor changes I'd like to make to the site.


- The archive page -

I would like the archive page to divide the comics by year, or drop down list, if possible. I just want this so it's not a big list.


I'd also like to archvie the blog entries as well. I'm going to be editing some older ones and recategorizing them as rants, reveiws, etc and I would like for the reader to be able to more easily search older blog posts.


- The comic page -

I would like to have navigation arrows under the comic, right above my PW ad and roughly the same width. I can do the arrows, but I just wasn't sure about the code.

Also, I'd like to be able to display the social bookmarking plugin I use a little higher up, just so that it's above the fold. I don't know if that's possible though.


Finally, do you have any kind of plugin or idea about how I could do a "buy a print" icon under the comic as well? Frumph made a template for comicpress a while back and I've been trying to modify it but it's not working out so well.


Thanks again for all of your help!


Welcome back!

OK, so about the archive page — this is actually easy. In the PHP file for the archive, you can adjust the template tag (which is either comic_archive_list or comic_archive_table) as seen in the documentation: http://stripshow.monkeylaw.org…../re18.html.

As for selling a print, this is something I've seen in ComicPress and wondered about implementing in stripShow. The thing, though, is I have no idea how selling prints works. I've never done it. Seems like it would need some kind of service on the backend to process orders, like an eCommerce kind of thing. That's certainly beyond the scope of stripShow, but telling it what to sell would be something stripShow could do. But I'd need to know how the back end works. Any ideas?

1:05 pm
January 21, 2010


troubleticket

Member

posts 24

I PM'ed you regarding a template for selling prints or original artwork.


Thanks for the archvie help, working on it now.

11:18 am
August 16, 2010


troubleticket

Member

posts 24

Long time no updates.

I PM'ed you earlier, but I don't know if you get feeds off the forum hits or not. I am working on a new site over at http://fortunepancakes.com and I was wondering if you could work your mojo again and set me up with a comic display page on the site that isn't on the main page.

Thanks!

3:43 pm
September 1, 2010


troubleticket

Member

posts 24

bump

3:47 pm
September 1, 2010


Brad

Admin

posts 191

Oops, sorry. Forgot about this. Trying to remember what we had to do on your original site.

3:50 pm
September 1, 2010


troubleticket

Member

posts 24

Thank god,

I thought I had inadvertently pissed you off or something, and I was all "how the hell am I going to do this!?"

I think I messaged you on twitter too, if you're the Brad which was talking about working at Apple earlier today, which I'm jealous of btw.

Anyway, I just want to use stripshow, but on my current wordpress theme, on a separate page. Also, my old site got nuked a few months back, but I think I kept a backup if you need to see how that one was done.

Just let me know what you need from me.

Thanks man!

3:55 pm
September 1, 2010


Brad

Admin

posts 191

OK, well, the good news is what you're trying to do is a lot easier now, all you have to do is turn on AutoComic. With AutoComic, you can determine on which pages comics appear. So you don't have to put it on the index page. Go into AutoComic settings, set the element to "ID" and "header" and you should be good.

4:07 pm
September 1, 2010


troubleticket

Member

posts 24

Okay, but is that using the default stripshow setup, or can I do that with my existing wordpress theme?

That was the issue last time.

Thanks.

6:33 am
September 2, 2010


GreenGel

New Member

posts 1

AutoComic is meant to be used with any theme you have, so it shouldn't be an issue. You can check out the documentation in the Wiki, which explains things a bit more:

http://stripshow.wikia.com/wik…../AutoComic



  • Donate

    While I don't maintain stripShow for a living, I wouldn't say no to a little donation, if you think the plugin is worth it...

  • Advertisements