Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • I’m having the same problem…

    Thread Starter screenwords15

    (@screenwords15)

    thank you so much, vtxyzzy. I’ve fixed the loop, and I have my ‘flipbook’ working. However, I’m now running into the problem that I can’t grab the image from the post I’m making…

    *** EDIT – Never mind I fixed it ***

    again, thank you so much vyxyzzy, I was up late trying to fix that and that just made my day 🙂

    http://wordpress.org/hosting/

    Try bluehost. You can register your domain name through them at the same time. Plus installing WordPress is a piece of cake with ‘Simple Scripts’

    make the images smaller? On the left nav of the nextgen gallery click options > images and change the resize to something suitable

    Thread Starter screenwords15

    (@screenwords15)

    so after much playing around I finally got it… for what it’s worth here’s the code

    <ul id="s-nav">	
    
                                    	<?php if ( $q_cat == $parent )  $current_cat = " class= 'current-cat' "; else $current_cat = ''; ?>
    
                                        <li<?php echo $current_cat; ?>><a href="<?php echo $category_link ?>"><?php echo get_cat_name($parent); ?></a></li>
                                        <?php $categories = get_categories("title_li=&child_of=".$parent);  
    
                                         foreach ($categories as $cat) {
                                         	$link_change = get_category_link($cat->term_id);
                                         	if($link_change == "http://certainsite.com")                                   											{$link_change = "http://othercertainsite.com";}										if ( $q_cat == $cat->term_id) $current_cat = " class= 'current-cat' "; else $current_cat = '';
    
                                            $li = '<li '. $current_cat .'>';
                                            $li .= "<a href= '" . $link_change . "'>". $cat->cat_name . "</a>";
                                            $li .= '</li>';
                                            echo $li;
                                          } 
    
        							    ?>
    
                                    </ul>

    thanks again esmi for all your help

    Thread Starter screenwords15

    (@screenwords15)

    close, I was looking to change the link. With that in mind I wrote this function with what you provided:

    <ul id="s-nav">	
    
                                    	<?php if ( $q_cat == $parent )  $current_cat = " class= 'current-cat' "; else $current_cat = ''; ?>
    
                                        <li<?php echo $current_cat; ?>><a href="<?php echo $category_link ?>"><?php echo get_cat_name($parent); ?></a></li>
                                        <?php $categories = get_categories("title_li=&child_of=".$parent);
                                         foreach ($categories as $cat) {
    
    										if ( $q_cat == $cat->term_id) $current_cat = " class= 'current-cat' "; else $current_cat = '';
    
                                            $li = '<li '. $current_cat .'>';
                                            $li .= "<a href= '" . change_cat_link(get_category_link( $cat->term_id )) . "'>". $cat->cat_name . "</a>";
                                            $li .= '</li>';
                                            echo $li;
    
                                          } 
    
                                          function change_cat_link($link) {
                                          	if($link == 'ID of category' ) $new_link = 'new link';
    	else $new_link = $link;
    	return $link;}
    
        							    ?>
    
                                    </ul>

    however, I’m getting an error saying that I’m calling to an undefined function. But it is defined, is it not? thanks so much for your help 🙂

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