Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter ladyhawk

    (@ladyhawk)

    wow! nice website too! as soon as I can login on mine again im linking you!

    is this what you are looking for: http://www.ontwerpwereld.nl/links/ (click on the left category)?

    this is the script in ‘sidebar.php’:

    <?php
    $taxonomy = 'link_category';
    $args ='';
    $terms = get_terms( $taxonomy, $args );
    if ($terms) {
    foreach($terms as $term) {
    if ($_GET['cat_id'] == $term->term_taxonomy_id) { $current = ' current-cat'; }
    else { $current = ''; }
    if ($term->count > 0)
    {
    echo '<li class="cat-item'.$current.'"><a href="http://www.ontwerpwereld.nl/links/?cat_id='. $term->term_taxonomy_id . '"><span class="subnavig_aantal"> (' . $term->count . ')</span>' . $term->name . '</a></li> ';
    }
    }
    }
    ?>

    and this in the template ‘links.php’:

    <?
    $cat_id = $_GET['cat_id'];
    if ($cat_id)
    {
    $arg_cat = "&category=".$cat_id;
    }
    ?>
    <ul>
    <?php wp_list_bookmarks('between=&show_description=0'.$arg_cat.'&show_images=0&orderby=id&show_rating=1&show_updated=1&category_after=<div class="stippelbg"></div>'); ?>
    </ul>

    Forum: Plugins
    In reply to: nextgen-gallery.. Comments

    Ive got it! Still have to figure out some details like the number under the picture (still takes ALL the comments in the categorie) and maybe my scripting could be a bit WP like (but im a first timer, so give me some time). Also when i post a comment on a picture the post uri has to keep the pic var (thats not so at the moment, but i guess pretty easy to fix)

    What i did is a combination off 2 plugins, on the one hand the next gen galery and on the other the ‘extra comment field’ plugin from http://www.ideashower.com/.

    With the extra comment field plugin I created a hidden input with the picture id (from a get). When you post the comment the id of the picture goes in a new table with the extra information.

    The I adjusted 2 functions a bit: function comments_template and function get_comments

    Ofcourse some other minor adjustments but when im all done ill try and email it to ppl who are interested, so just send me a message! renske@ontwerpwereld.nl

    Just in case: im a newb when it come to WP so if anyone want to take a look with me at the code to improve it, that is welcome too ofcourse! my msn adress is renske2000@hotmail.com!

    greetz

    Forum: Plugins
    In reply to: nextgen-gallery.. Comments

    Still testing but http://www.ontwerpwereld.nl/wordpress/photo-junkyard/pictures-of-me/?pid=187 (dont forget right click for a new window now)

    You can already post comments on a gallery, im trying to put the pid (the $_GET var) as an meta field into the DB. Havent figured out how yet, do have a hidden input with the picture ID already, but not it needs to insert (and the rewrite the function a bit that displays the comments but thats east)

    Forum: Plugins
    In reply to: nextgen-gallery.. Comments

    when you put <?php comments_template(); ?> in the file ‘imagebrowser.php’ it actually works … there are a few things I still have to try out to make it perfect but i guess that since im working on this for 5 mins i will get it perfect in time actually …

    Anyone interested when im done that i post it here?

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