Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter dementis

    (@dementis)

    *bump*

    Thread Starter dementis

    (@dementis)

    1. no – I put it in manually, and that “removed” all the “links” on render.

    2 and 3:
    I’ll “come clean” on this. I made this thread being general as possible, since it tends to get more attention on here, than specifics (which is what I’m trying to accomplish).

    I modified IIG (Iimage Gallery) to inject rel="lightbox[$post->post_date]"
    into line 64:
    $ig_settings['ig_before_each'] = '<a href="%src" rel="lightbox[$post->post_date]" class="gallery_item">';
    So I can use lightbox-js as the gallery front-end on blog entries, but use IIG’s convenient thumb-generation and linking (with standalone disabled).

    In lightbox, when things are in [thesetypeofbrackets] they are classified as “group-id’s”, making any image with the same group-id, linked together. My “hacked-up” IIG “works” but the problem was every single blog entry with pictures would share the same group-id. I wanted the images/slides to be only linked on a per-post/day basis – hence why I figured a $date variable would be able to distinguish all past and future entries, and not share them all in the same group-id – only images on the same day/post would share the same group-id.

    As for my little modification to IIG and its “working condition”, it “works”, but it tends to make wp-admin up-chuck itself with header errors. I can still work inside of the admin and write posts, provided I’m not logged out. Once I try to log back in, the errors prevent me from proceeding – my workaround relies on me renaming the IIG filter, log in, rename it back, and write whatever post (yes, I know this is criminally inefficient but so far it has been the quickest way to generate thumbs/links to the full size image, and be able to inject the much needed lightbox statement).

    Thread Starter dementis

    (@dementis)

    I got a response from the creator of Iimage Gallery. Not sure how to approach this in a template manner.

    “IIG works as a filter. Read a bit about plugins on codex.www.ads-software.com and then you’ll realise that what you need is to pass the “text” into several functions from IIG to make it work. Each function does something else (creates thumbnails, renders gallery, etc.)”

    hrm… ??

    somewhat works for me, but I had to specify some extra stuff. simple <?php require('wp-blog-header.php');?><?php the_content(); ?> wasnt working for me (not exactly sure why, but both 2.x and 1.5x were having the issue for me).
    This is what I’m using – works fine in WP2.x, 1.5x acted a bit weird (wouldnt display the pictures from the blog, unless I specified the category (which is what I do in this example, I specify the category (category id 3))).

    <?php require('wp-blog-header.php');?>
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <?php if ( (in_category('3')) ) { ?>
    <div class="post">
    <div class="entry">
    <?php the_content(); ?>
    </div>
    </div>
    <?php } ?>
    <?php endwhile; else: ?>
    Sorry, no posts matched your criteria.
    <?php endif; ?>

    Thread Starter dementis

    (@dementis)

    not much except archives show all categories, and they only show either titles, or small exercepts from a blog category. I need the entire body every blog entry from Blog Category “A” in a Page for seperate viewing.

    Thread Starter dementis

    (@dementis)

    *sigh*
    Tried The_Loop examples as pages – but all it does is post the Page’s Title/content.


    <?php
    /*
    Template Name: CategoryRipper
    */
    ?>
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <?php if ( !(in_category('2')) ) { ?>
    <div class="post">
    <h2><a>"><?php the_title(); ?></a></h2>
    <small><?php the_time('F jS, Y'); ?></small>
    <div class="entry">
    <?php the_content(); ?>
    </div>
    <p class="postmetadata">Posted in <?php the_category(', '); ?>
    </div>
    <?php } ?>
    <?php endwhile; else: ?>
    Sorry, no posts matched your criteria.
    <?php endif; ?>

    Instead of grabbing ANY of the possible categories at its disposal, it instead just spits out a Page with its Title and Content being what I inputed in Write Page (and selecting this template of course).

    This is what I’m getting:
    TitleTest
    February 22nd, 2006
    TestBody
    Posted in Uncategorized

    err.. right.. that’s not what I wanted. I want to pull data from a blog category and store it on a Page. *sigh*

    *hits head on desk more*

Viewing 6 replies - 1 through 6 (of 6 total)