Forums | Comics doesnt show

You must be logged in to post Login Register

Search Forums:


 






Comics doesnt show

New Issue
UserPost

9:51 am
January 28, 2010


Kenny

Member

posts 27

Post edited 5:08 pm – January 28, 2010 by Kenny


Hi, i hope you are still replying here.

im using wordpress 2.9.1, and stripshow 2.1, im also using the news magazine 640 theme.


and i made a category named "comic", and changed the directory to "wp-content/comic/".

all the files when i make a new comic is uploaded to that directory, but the comic doesn show in the blog.

its empty.

i have made sure that the comic category is set to "comic" — single category, and everything else as its default.

—————————————
Update, ok i messed up with the time and scedueling, but i still have a problem, now the new post shows up, and the titel and everything is fine, the problem is that the immage for the strip doesnt show.

when i go into edit mode, it does show at the bottom, but not in the blog.


10:10 am
January 28, 2010


Brad

Admin

posts 233

Hi Kenny!

The problem you're running into is that if you're not using one of the included stripShow themes, then your theme will need to be modified to show the comics, using the show_comic template tag. Please consult the documentation for more information.

10:19 am
January 28, 2010


Kenny

Member

posts 27

this sounds pretty hard, not sure if i can do this though.

but thanks for the quick reply, and i hope future releases of this plugin will support my theme, cos its the only comic strip plugin that doeans mess up my blog completly.

10:39 am
January 28, 2010


Brad

Admin

posts 233

Post edited 5:41 pm – January 28, 2010 by Brad


Well, it's really not a matter of stripShow supporting your theme — your theme has to support stripShow.

stripShow can't put content where the theme doesn't put a place for it.

However, there will be a new option in 2.5 wherein you can make stripShow insert the comic directly into the content of your post. This will be a little awkward — it won't be off in its own section like a regular webcomic theme would have — but it will at least give people who use third-party themes and don't wish to modify them an option.

For an example of a webcomic that uses a more blog-like format, see Savage Chickens. But it's worth noting that to do what this guy does, you don't need stripShow at all.

10:42 am
January 28, 2010


Kenny

Member

posts 27

hmm..

i read through the documentation, but i couldnt figuer out what to do.

Cry

10:52 am
January 28, 2010


Kenny

Member

posts 27

i just read your edit where you said you dont need stripshow at all, so does this mean i just upload a picture into a regular post, and thats it?

the thing i kinda want for the strip is to have the navigation buttons, like previous, next, first, last and random.

11:00 am
January 28, 2010


Brad

Admin

posts 233

Kenny said:

i just read your edit where you said you dont need stripshow at all, so does this mean i just upload a picture into a regular post, and thats it?

the thing i kinda want for the strip is to have the navigation buttons, like previous, next, first, last and random.


Ah, then yeah, stripShow would be useful for you. stripShow 2.5 will have some short codes that can be inserted into a post. That way you won't have to modify your theme.

Theme modification isn't all that difficult, however, and can be done in WordPress itself these days.

11:06 am
January 28, 2010


Kenny

Member

posts 27

forgive me if i ask too much of you but could you help me modify my theme, so that one category can work as the comicstrip, and the rest of the blog looks like it is today?

11:10 am
January 28, 2010


Brad

Admin

posts 233

No, that's fine. We do door-to-door service here. :)

Are you just using the theme out of the box? If so, I can download it, make the changes, and send it to you.

Now, styling will be up to you, of course.

11:14 am
January 28, 2010


Kenny

Member

posts 27

yeah mainly, i use some plugins though, and i hope my other posts wont dissapear if i change it.

btw, what do i do with the files you send me? do i just upload them themes folder?

in that case i can do backup incase something goes wrong.


Im using News Magazine Theme 640 1.6.3 by antisocialmediallc.com.


11:39 am
January 28, 2010


Brad

Admin

posts 233

OK, this is pretty easy. Open the header.php file in your theme, and put the following at the end:

<?php if (is_comic()) : ?>
<div style="width:100%; text-align:center">
    <div class="comic"><?php show_comic(); ?></div>
    <div class="comic-nav">
        <div class="first-comic"><?php first_comic(); ?></div>
        <div class="previous-comic"><?php previous_comic(); ?></div>
        <div class="next-comic"><?php next_comic(); ?></div>
        <div class="last-comic"><?php last_comic(); ?></div>
    </div>
</div>
<?php endif; ?>

There, now you've got a comic with the navigation links on any page it might apply to.

If you want to get really fancy, you can open functions.php and put this at the beginning of the get_image_for_crop function:

    if ( is_comic( $postID ) ) {
        $files = get_comic_filenames_for_id($postID);
        list( $fileurl, $filepath ) = convert_comic_path($files[0]);
        return $fileurl;
    }

This theme has a nifty little feature where it puts a thumbnail from the post next to it in the Recent Posts sidebar widget. That's pretty cool. The code I just posted hooks it into stripShow, so the thumbnail it shows will be of your comic.

11:45 am
January 28, 2010


Kenny

Member

posts 27

cool, ill try it out,, btw, one more question, if i update the theme, do i have to put in that code every time its updated?


11:52 am
January 28, 2010


Kenny

Member

posts 27

ok, the changes didnt put the buttons on the comic, and it put the comic image on the mainpage.. like this:

http://www.slightlyfucked.com/


the comic is supposed to be in the category "Comic"

11:55 am
January 28, 2010


Brad

Admin

posts 233

OK, I didn't know you had those stipulations. I assumed you wanted the comic on the main page. This will take some more work. I'll let you know.

11:57 am
January 28, 2010


Kenny

Member

posts 27

cool, thanks a million times!!

12:52 pm
January 28, 2010


Brad

Admin

posts 233

OK, here's what I've come up with so far: Tell me what you think. It's based on News Magazine Theme 640 version 1.6.8.

Download this file

1:23 pm
January 28, 2010


Kenny

Member

posts 27

hey  this works pretty good, but im having some problems with the pictures i had on the frontpage.. what files did you change, so maybe i can just upload those, instead of everything.

1:28 pm
January 28, 2010


Brad

Admin

posts 233

I changed archive.php, single.php, and functions.php, as well as style.css.

1:30 pm
January 28, 2010


Brad

Admin

posts 233

Oh, and in archive.php, there were a couple places where I used "comics" as the name of the category, where I see now that you use "comic"… that will need to be changed.

1:35 pm
January 28, 2010


Kenny

Member

posts 27

hmm.. seems like all the thumbnails on the mainpage is gone, i thought it was because the folder called cache was empty, but the immages went away when i just uploaded those files too.



  • 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