Recent Forum Posts
-
Call for stripShow sites for gallery!
posted in forum Announcements by Esn on June 25, 2010 at 9:02 pm
-
Some things I'd like to do - lightboxes, 784px width, CC license
posted in forum Support Requests by Esn on June 15, 2010 at 2:24 pm
-
Archive Image Problem (resolved)
posted in forum Support Requests by Esn on June 9, 2010 at 1:23 pm
-
Can only view one Comic
posted in forum Support Requests by silvestri99 on May 27, 2010 at 10:34 pm
-
Latest comic shows, but not the rest.
posted in forum Support Requests by AlphaNeonic on May 21, 2010 at 5:13 pm
-
Call for stripShow sites for gallery!
Forums | Storyline numbering weirdness.
Storyline numbering weirdness.
7:21 pm
July 13, 2008
DmL
posts 12
In the first storyline, things look normal:
http://evo.dmlcorp.net/2007/03/14/first/
(1 of 11)
In the second story line, should it say 1 of 12?:
http://evo.dmlcorp.net/2007/03/14/first/
(it says part 12 of 23)
Is that correct?
David
8:24 am
July 14, 2008
Brad
posts 186
Nope, that's messed up all right. First story seems OK, subsequent stories are messed up.
If you can, put the following debugging code somewhere on one of your pages, and send me the resulting output in a private message:
<?php echo '<pre style="text-align:left">',var_dump($stripshow_story),'</pre>'; ?>This will help me get a sense of what your storylines are supposed to look like.
6:29 pm
July 14, 2008
DmL
posts 12
Sent.
8:26 pm
July 14, 2008
Brad
posts 186
Thanks. After looking over your output, I see the problem. The comics that are part of each storyline are stored in an array… I see that when it's creating the objects for storylines, it doesn't reset the numbering for each one. So the first storyline has parts 1-10, the second has 11-33, etc. Now I just need to figure out why that is.
8:32 pm
July 14, 2008
Brad
posts 186
OK, found it. It's fixed for the next version, but if you want to fix it yourself, open stripshow.php, look for:
$stripshow_story[$a]->parts = array_filter($comics,array($current_story,'is_in_story')); // get only the comics that are in this storyand replace it with:
$stripshow_story[$a]->parts = array_values(array_filter($comics,array($current_story,'is_in_story'))); // get only the comics that are in this storyThe code is in the initialize_storylines() function.
Stupid mistake. I should have read the manual about the array_filter() function. It spelled out the issue for me.
2:38 am
July 15, 2008
DmL
posts 12
You're a peach! thanks! Now I just have to figure out how I borked my lower nav images pasting that dump code in before. : )
David