Forums | Random Comic

You must be logged in to post Login Register

Search Forums:


 






Random Comic

New Issue
UserPost

10:53 pm
October 10, 2010


kristin

Seattle

New Member

posts 2

I want to start off by thanking you for building stripShow! I'm revamping a site that was running on comicpress, but I've found stripShow to be 100x better. The code is so much easier to sift through — I love it!

I'm working on customizing the Sandbox theme, and so far it's great! I've completed the child theme, doing some last tweaks, and I realized that there is no "random comic" button in the comic nav by default (even though the image file has one). In searching through the theme files, I assumed this could be altered in comic-actions.php by adding

  • <?php random_comic('Random Comic','Random Comic'); ?>
  • after the "last comic" list item. I was wrong!! The page loaded the header, main nav and comic nav, but left the rest of the page completely blank. I looked in stripshow-classes.php to try to find something that would help, but to no avail. I even tried replacing random_comic with get_random_comic.

    Just to make sure the function was working, I changed my "Index page goes to" setting from "Normal" mode to "Insane" mode and the page loaded successfully with a random comic.

    Any help would be appreciated! Thank you :)

    2:42 am
    October 11, 2010


    Brad

    Admin

    posts 233

    This one's easy. The function for a random comic isn't random_comic, it's random_comic_link. This was originally so that stripShow would work seamlessly with the version of ComicPress that was out at the time. Now, both products have moved forward so much that this kind of compatibility is impossible, but that naming still remains. Use random_comic_link and you'll be fine.

    4:29 am
    October 11, 2010


    kristin

    Seattle

    New Member

    posts 2

    Thank you so much — that fixed it! I looked through the wiki and COMPLETELY missed the Template Tags page. *doh* :)



    • 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