Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter malger

    (@malger)

    Yeah. ::wry grin:: I get that about the backups. But the panic-inducing stimuli of a boss screaming “We’ve been hacked! The Website is down! Fix It! Fix it with tape! Now!” kinda harsh your Zen mellow. And restoring from backups not being something one is all that comfortable with… Well, yes. Not really. In any case, I didn’t.

    So what happens if I do surgery on the database and remove the incrementer? (I don’t see any behavior resulting in duplicate slugs being worse than orphaning any future posts and pages.)

    Thread Starter malger

    (@malger)

    The assumption that the content wouldn’t map “correctly” is bootless, as the desired behavior is the “incorrect” behavior. The intent is to allow the same content to map to the same slug seamlessly.

    The site is ottoprint.com. The code is that which generates the internal link buttons in the header of each post (the red buttons)

    <!--code to display article category and item drill-downs in block at top of article division-->
    <div class="article_cat_terms">
    <ul class="article_terms">
    <li class="article_category">
    <?php $red_button = get_post_meta($post->ID, 'red_button', true);
    //Checking if anything exists for the key red_button
    if ($red_button) { ?>
    <?php echo $red_button; ?>
    <?php } //if there is nothing for red_button then display
    else { ?>
    <?php the_category(', '); ?></li>
    <?php } ?>
    
    <?php $trails = array("size","feat","tmplt","gall"); ?>
    <?php $category = get_the_category(); ?>
    <?php $cat_slug = $category[0]->category_nicename; ?>
    <?php $parts = explode( '-', $cat_slug ); ?>
    
    <?php if(($parts[1] == $trails[0])):
    echo '';
    else:
    echo '<li class="article_terms"><a title="See the Shapes and Sizes Available in this Otto Product"
    href="';
    echo home_url( '/' );
    echo $parts[0] . ( '-' ) . $trails[0] . ( '/' ) . '">SIZES & SHAPES</a></li>';
    endif; ?>
    
    <?php if(($parts[1] == $trails[1])):
    echo '';
    else:
    echo '<li class="article_terms"><a title="Learn About the Features of this Otto Product"
    href="';
    echo home_url ( '/' );
    echo $parts[0] . ( '-' ) . $trails[1] . ( '/' ) . '">FEATURES</a></li>';
    endif; ?>
    
    <?php if(($parts[1] == $trails[2])):
    echo '';
    else:
    echo '<li class="article_terms"><a title="Get Art Template(s) for this Otto Product"
    href="';
    echo home_url ( '/' );
    echo $parts[0] . ( '-' ) . $trails[2] . ( '/' ) . '">TEMPLATES</a></li>';
    endif; ?>
    
    <?php if(($parts[1] == $trails[3])):
    echo '';
    else:
    echo '<li class="article_terms"><a title="See a Gallery of Images of this Otto Product"
    href="';
    echo home_url ( '/' );
    echo $parts[0] . ( '-' ) . $trails[3] . ( '/' ) . '">GALLERY</a></li>';
    endif; ?>
    
    </ul>
    </div>

    We experienced an exploit which apparently struck against our server and wiped out our chart of categories, which had to be rebuilt. The only one which has this added-increment is the category with the slug wbnd. The ancillary posts which fall under that product thus cannot be found without the visitor to the site knowing the actual URL of the post desired — which might be problematic. Otherwise, I’ll have to hard-code those links, which becomes MOST awkward. It seems to me the sensible thing would be to eliminate the incrementing suffix to the slug. Which is what I’m asking for assistance in doing.

    What is happening is that, if I assign a new post to the category Wristbands, it is assigned the slug wbnd-2 and cannot be found by our navigational armature. This is a problem I would prefer to avoid.

    I just did a word search on all the .css files in the NextGen install and the word “shutterset” is nowhere in there. In the nextgen-gallery.php file, there is a reference to shuttersettings in an array (line 348). Nothing else I could find.

    However, I, too, would like to know how to style the actual image as displayed on the page, and not just the border. Been searching docs for some time and, so far, no joy.

    M

    Thread Starter malger

    (@malger)

    That is the detritus of an abandoned experiment. And eliminating it fixed the problem. Guess who won’t do THAT again. Thanks ever-so.

    Regards,
    Mark Alger

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