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

Resolved Without Update
UserPost

2:30 pm
November 10, 2009


troubleticket

Member

posts 38

I've noticed this thread already, just so I don't come off as lazy…

http://stripshow.monkeylaw.org…..-question/

but I noticed it was also for an older version, and hasn't been updated in a year.

I have an webcomic that is in the process of becoming an entertainment blog/review site/forum over at http://troubleticketcomic.com and I don't want the comic on the front page anymore. I want the comic to be on a separate page called comic, keeping the same header and sidebars if possible, (at least the header) as the main site.

I cannot figure out how to do this, but I would love the help. I follow directions well enough, but my php knowledge is less than amateur.

Thanks in advance for any help you can give me!

2:43 pm
November 10, 2009


Brad

Admin

posts 233

This is a very good question, and I've seen more and more comics doing just this. stripShow should make it easy, but doesn't yet. I'll whip something up.

7:22 am
November 11, 2009


troubleticket

Member

posts 38

cool… well is there anything I can do now to fix the code to make it work? I was kind of hoping to have the new site layout up and running in the next week or two.

Thanks!

7:29 am
November 11, 2009


Brad

Admin

posts 233

Yeah… I have been working on a child theme that removes the comic from the index page and allows you to make a page with a template that has the comic on it. I think it's just about ready, and I should be able to upload it tonight.

8:39 am
November 11, 2009


troubleticket

Member

posts 38

Thanks a lot man, that would be awesome!

one thing though. I'll still be able to use my current studiopress theme right? Stripshow works like a plugin as well as a theme? That was the impression I got.

8:45 am
November 11, 2009


Brad

Admin

posts 233

That will take some more doing. I was operating under the assumption you'd be creating a child theme for stripShow. I can, though, modify StudioPress to do what you're looking for. Are you using the theme as it's posted, out of the box, or have you modified it?

9:21 am
November 11, 2009


troubleticket

Member

posts 38

I am pretty much using stock studiopress. I've updated some css stuff as far as background images and stuff go, but aside from that it's a vanilla installation. I haven't done anything to the php that's not plugin related.

I just want to say that you're awesome for being this helpful. One of my first reviews on the new site is going to be about stripshow and it's features that comicpress doesn't have.

8:28 am
November 12, 2009


Brad

Admin

posts 233

Post edited 4:34 pm – November 12, 2009 by Brad


OK, I've created a simple modification to StudioPress that adds a page template for comics. You just make a new page using that template (with nothing in it) and that will be your comic page… the single.php file has also been modified to accommodate comics. No styling has been added, that's up to you.


Download this theme

9:03 am
November 12, 2009


troubleticket

Member

posts 38

You are awesome!


Still tweaking everything, but it works, and that's just excellent. Thank you so much.

8:09 am
November 13, 2009


troubleticket

Member

posts 38

okay, question.


The comic page works like a charm, but I've noticed that the comic posts also show up on the main blog page. Is there a way to fix this?

8:36 am
November 13, 2009


Brad

Admin

posts 233

troubleticket said:

okay, question.


The comic page works like a charm, but I've noticed that the comic posts also show up on the main blog page. Is there a way to fix this?


Yes, there is. stripShow Sandbox does this by using the following code in functions.php:

    add_filter('pre_get_posts','remove_comics_from_query');
    function remove_comics_from_query($vars) {
        if (is_home()):
        global $wp_query;
        $cat = noncomic_category();
        $wp_query->query_vars['cat'] = $cat;
        endif;
        }

Add these lines to functions.php and the comic posts should disappear from the blog.

9:56 am
November 13, 2009


troubleticket

Member

posts 38

problem solved…


alright, this will hopefully be my last three questions.

1) is there a way to make a comic archive page with thumbnails or anything like that? I can whip up a generic page that lists comic posts if not, it's not a big deal or anything.


2) this isn't related to stripShow, but I thought you might know. The reason I've changed the format from typical "comic on the front page" webcomic is because I've got some contributers now and we're turning the site into a general media blog/comic/podcast/forum. It's a big undertaking. I want the front page to only show that day's post, which is easy enough, I can just set the post count to one. However, I want other users to be able to contribute to the post, similar to how penny arcade shows both Mike and Jerry's posts, but just the posts for that day. Is there an easy way to do that? Just curious.

3) I was gonna drop a donation to you through paypal for all of the help, but I don't see a button anywhere. Do you have a paypal account? (you can PM me or e-mail it to my troubleticket account if you don't want to post it here)

thanks again man!

10:17 am
November 13, 2009


Brad

Admin

posts 233

1) An archive page with thumbnails is not a bad idea. Right now, it's not a feature that stripShow has, but I'll look into it.

2) I have absolutely no idea, unfortunately. Try asking this on the WordPress Forums. I'll look into it as well… if webcomics creators want to do this, although it's probably not the sort of thing that should be put in a plugin, it would certainly be good to have something to tell people.

3) Another good idea! I've put up a button in the sidebar on this site.

8:08 am
November 19, 2009


troubleticket

Member

posts 38

okay, I just made a new comic, named it to the correct yyyy-mm-dd format that I had selected, and placed it in my /comics folder. I then made a comic post for that day. When I went to the comic page, nothing shows…. I can't seem to figure out why though

8:42 am
November 19, 2009


Brad

Admin

posts 233

troubleticket said:okay, I just made a new comic, named it to the correct yyyy-mm-dd format that I had selected, and placed it in my /comics folder. I then made a comic post for that day. When I went to the comic page, nothing shows…. I can't seem to figure out why though


What is the filename? Also, what date did you set for the post?

8:48 am
November 19, 2009


troubleticket

Member

posts 38

filename is 2009-11-19.jpg and the post was just started and finished this morning, so the dates match.

8:53 am
November 19, 2009


Brad

Admin

posts 233

Right now, on your comic page, I see a comic from 2009-09-07. Is this what you're talking about?

9:02 am
November 19, 2009


troubleticket

Member

posts 38

no, I uploaded a new .jpg, 2009-11-19, to my comics folder with filezilla, and made a comic category post. The post shows the comic in the editor window, but none of it is showing up on the page

9:27 am
November 19, 2009


Brad

Admin

posts 233

I found the problem. In the theme, in the comic-page.php file, there's a typo.


Find where it says:

    $current = $stripShow->current_comic->id;

and replace it with:

    $current = $stripShow->current_comic->ID;

9:35 am
November 19, 2009


troubleticket

Member

posts 38

fixed…. once again… awesome


and hey! I'm updating regularly again. WOO!



  • 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