Forum Replies Created

Viewing 15 replies - 1 through 15 (of 32 total)
  • Thread Starter fusiongt

    (@fusiongt)

    One of the problems I was having was getting everything to be in a similar category like /series/genre/series-name-here

    The problem I had (and I’m not a WordPress expert so this could definitely be possible, it’s just I didn’t know how to do it) was to basically have 2 different types of pages.

    Series Pages (ideally /series/genre/series-name.html) would have the list of Volumes and Chapters and the right side would have some good information like about series, and small image of the series, and a vote category.

    Viewing Pages (ideally /series/genre/series-volume-or-chapter-##.html) would be the actual viewing page. I call on this now within the post (I use some script that looks for a certain folder and volume on my server and then displays the images within there).

    The thing I couldn’t figure out was how to have those Volumes/Chapters listed on the series pages and not the viewing pages since I mostly use those <? if in this_category then… ?> statements.

    This is why I broke them up into different categories.

    Gah, I’ve only been working on this thing for a week and it’s really confusing!

    Regarding the current changes you’ve made. I’m a visual person so when I see debugging info and problems like that I can’t really ignore it. Here’s problems I see so far and I’m just listing them down (I’m not complaining because I know this isn’t done yet and I really appreciate your work!)

    • Volumes and Chapters aren’t seperated
    • Some series don’t return anything like +Anima (https://manga.lyght.net/browse/anima.html) – I don’t know how it’s setup (I haven’t viewed the code) so I don’t know if it can be easily fixed if I change a tag or something. I’m sure the + is messing things up.
    • The “last volume” image and navigation is in the series pages at the bottom
    • The series.php is not showing on the right side. I suspect it’s because that “last volume” image and navigation is showing it thinks its in a different category. It has to be in the category browse-series otherwise that right side won’t show up which has the About Series and Vote on Series.

    I’ll have to look into it more. I really like the speed of the query results – from where it was earlier this week (at 5+ seconds per series page) down to less than 1-2 seconds is great! Going to have dinner and I’ll check more after.

    Thread Starter fusiongt

    (@fusiongt)

    Yea I agree there might be some redundancy on how I set things up. But there’s a reason I did it the way I did… there are some things you can’t necessarily see that easily…

    About that Javascript that you said is effecting the code – I added it because this is actually going to be a Facebook app, https://apps.facebook.com/mangalyght/

    One thing that has broke is if you view the source, you’ll see this:

    <link rel="image_src" href="https://manga.lyght.net/images/.jpg." />

    It should have the image there which might be why I made it so complicated. The code originally was this in the header.php

    <?php
    global $post;
    foreach(get_the_tags($post->ID) as $tag) {
    $imgtitle = $tag->slug;
    }
    ?>
    
    <?php $image = get_post_meta($post->ID, 'img', true); ?>
    
    <?php if(empty($image)) { $image = "https://manga.lyght.net/images/$imgtitle.jpg"; } ?>
    
    <fb:share-button class="meta">
    <meta name="title" content="Manga Lyght">
    <link rel="target_url" href="<?php the_permalink() ?>"/>
    <link rel="image_src" href="<?php echo $image; ?>" />
    </fb:share-button>

    So that code says if the post has custom field img to use that as the image, but if not then to use the slug and add .jpg to the end of it.

    The categories and tags were set the way they were because I found it very easy to use something like

    if (in_category('browse-series')) {
    include (TEMPLATEPATH . '/series.php');
    }

    On the other hand, tags were used because I needed an easy way to have a breadcrumb back to my series pages. For example (though it’s broke now): https://manga.lyght.net/series/20th-century-boys-volume-03.html – The bread crumb goes Browsea Manga (spelling error, did you accidentally put that) >> Seinen >> 20th Century Boys. That link to 20th Century Boys used to go to the correct https://manga.lyght.net/browse/20th-century-boys.html but now it’s going to the https://manga.lyght.net/tag/20th-century-boys . That would be confusing to a user because a breadcrumb would allow them to go back where they came from, not to somewhere different.

    So my weird setup of categories with tags is indeed weird but I did it for a reason – there’s probably room for improvement of course but things were working fairly well. I just had problems querying “Series Volumes” and “Series Chapters” correctly.

    Thread Starter fusiongt

    (@fusiongt)

    No problem I’m at work and can’t touch the code but will be interested in seeing what you did once I’m at home =)

    Thread Starter fusiongt

    (@fusiongt)

    The right column is this:

    <?php
    if( in_category(‘browse-series’) ) {
    include( TEMPLATEPATH . ‘/series.php’ );
    }

    It gets series.php – was that / always there before? I forget. Something’s happening where it’s not displaying the series.php side bar which has important information.

    Check your email going to send you something

    Thread Starter fusiongt

    (@fusiongt)

    I also noticed the Volumes and Chapters aren’t going to their respective pages

    Thread Starter fusiongt

    (@fusiongt)

    Oh it’s getting better

    https://manga.lyght.net/browse/berserk.html

    I just sent the email let’s talk through there

    EDIT – Somethings I notice are the right column is gone and part of the post is showing (with the big ol’ image and the Ch/Volume drop down)

    Thread Starter fusiongt

    (@fusiongt)

    Ah, got a parse error

    Parse error: syntax error, unexpected ‘}’ in /home/lyghtne/public_html/manga/wp-content/themes/mangalyght/single.php on line 149

    Hey I’m going to send you an email so we can talk through there instead

    Thread Starter fusiongt

    (@fusiongt)

    t31 yea I’ll give you access and stuff but can’t figure out how to message you directly (not sure if these forums allow it)

    I tried your code and it gave a parse error:

    Parse error: syntax error, unexpected T_ENDWHILE in /home/lyghtne/public_html/manga/wp-content/themes/mangalyght/single.php on line 150

    In the code line 150 is: endwhile;

    Do you have a chat or anything I can contact you in? Google Talk – Skype – Aim? Let me know and I’ll give you access to the wp admin so you can see the categories, etc.

    EDIT – I tried your latest in your edit and it had the same line 150 parse error

    EDIT – My google talk chat is [email protected] if you’d like to contact me

    Thread Starter fusiongt

    (@fusiongt)

    All the posts have custom fields – it’s how I originally planned to call on certain series (since some series have multiple names but the volume/chapter listings are under one name to keep it simple).

    Right now I’m using the 2nd to the newest code here:

    https://wordpress.pastebin.ca/1649425

    On the site it looks pretty good and is fast but I think I know what’s wrong. Here’s some examples:

    – Shows Volumes in Chapter area, https://manga.lyght.net/browse/ykk.html
    – Shows W Juliet and W Juliet II when it should only show W Juliet https://manga.lyght.net/browse/w-juliet.html
    – Shows Vagabond Volumes correctly and this time shows chapters like it should but in there also shows Volumes https://manga.lyght.net/browse/vagabond.html

    I think the “Series Volume” and “Series Chapter” isn’t being queried correctly perhaps? Or it’s searching for “Series” and ” Volume” but not both of them in the same string (which I’d like to have it accurate, this way W Juliet and W Juliet II are considered different and it’ll find W Juliet Volume and W Juliet II Volume in their respective pages).

    Thread Starter fusiongt

    (@fusiongt)

    Oh it’s very different:

    https://manga.lyght.net/browse/anima.html

    Hmm yea when I’m an admin I see a lot more stuff. When I’m not an admin it looks good (though it doesn’t show chapters but I think you mentioned that).

    When I’m an admin it adds all this top the top:

    +Anima Volume

    +Anima Chapter
    Query matched 0 posts.
    Volumes
    +Anima Volume 01
    +Anima Volume 02
    +Anima Volume 03
    +Anima Volume 04
    +Anima Volume 05
    +Anima Volume 06
    +Anima Volume 07
    +Anima Volume 09
    +Anima Volume 10
    +Anima Volume 08
    Problem finding posts in category -> shonen

    It’s also getting it by date probably because the order is different (changing it to ‘orderby’ => ‘title’, does the trick though)

    Edit – I’ve taken down that version just because I have to do more work on the site and I like the previous version. Here is screen shots of what that new version looked like:

    When viewing logged in as admin: https://lyght.net/temp/lyght-screenshot1.jpg

    When just regular user: https://lyght.net/temp/lyght-screenshot2.jpg

    Regular user (missing chapters for this series) https://lyght.net/temp/lyght-screenshot3.jpg

    Thread Starter fusiongt

    (@fusiongt)

    t31 sorry for the late reply. It works well except it’s getting the volumes for the chapters:

    example:

    https://manga.lyght.net/browse/ai-ren.html

    Thread Starter fusiongt

    (@fusiongt)

    Oh I don’t see the problem myself (just blinded by the speed of the load times… from 5+ seconds down to less than 1)… but yea I’ll try updated code when you’re ready

    Thread Starter fusiongt

    (@fusiongt)

    Works good almost, one thing happening now is the “Chapter” is showing when no chapters are queried.

    https://manga.lyght.net/browse/absolute-boyfriend.html

    Edit – holy crap it’s a lot faster! ?? ?? ??

    Edit 2 – Maybe there doesn’t need to have any search arguments because it’s running so much better already. But your call, I’ll keep adding new code to test it

    Thread Starter fusiongt

    (@fusiongt)

    This one works

    https://wordpress.pastebin.ca/1648700

    I didn’t try the other, I assumed the that one was a more refined one since you edited it and added it later.

    Thanks I appreciate it. Let me know if you have more code to test ??

    The code can be seen in action here https://manga.lyght.net/browse/air-gear.html along with the rest of the site.

    Thread Starter fusiongt

    (@fusiongt)

    Oh I just got your latest code and it works now as before =)

Viewing 15 replies - 1 through 15 (of 32 total)