Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Forum: Plugins
    In reply to: [watermark] Broken Images
    Thread Starter jjean

    (@jjean)

    There are no errors when deactivating and/or removing the plugin.

    This is what I’m doing with the plugin activated:

    1. Upload a blank .htaccess file to the wp-content/uploads directory
    2. Check the Medium, Large, and Full Size on Image Formats. I only need my Full Size Images watermarked, but if I only check Full Size, then I get broken images. I don’t have any Medium or Large images, only Full Size.
    3. Plugin creates a “alti-watermark.previous.htaccess” file in my uploads directory
    4. The .htaccess file gets rewritten with this:

    # BEGIN alti-watermark Plugin
    <ifModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteRule ^(.*(|()\.jpg|.*(?<!-\dx\d)(?<!-\d\dx\d)(?<!-\dx\d\d)(?<!-\d\dx\d\d)(?<!-\d\d\dx\d\d)(?<!-\d\dx\d\d\d)(?<!-\d\d\dx\d\d\d)(?<!-\d\d\d\dx\d\d\d)(?<!-\d\d\d\dx\d\d)(?<!-\d\d\dx\d\d\d\d)(?<!-\d\d\d\dx\d\d\d\d)(?<!-\d\d\d\dx\d\d\d)(?<!-\d\d\d\dx\d\d)(?<!-\d\d\d\d\dx\d\d\d\d\d)\.jpg){1}((\?|\&)([^\.\?\ ]+))*$ ../plugins/alti-watermark/public/views/alti-watermark-public-bridge.php?imageRequested=$1 [PT]
    </ifModule>
    # [date=2015-09-28 21:04.17] [php=5.3.29] [width=0x0|0x0|fullsize] [plugin_name=alti-watermark] [version=0.3]
    # END alti-watermark Plugin

    Still, the watermark doesn’t work. Should I delete the .htaccess?

    Forum: Plugins
    In reply to: [watermark] Broken Images
    Thread Starter jjean

    (@jjean)

    Kept the plugin activated for about 30 minutes but still nothing but broken images (I have over 3K image).

    Thread Starter jjean

    (@jjean)

    The latest update (July 5, 2015) seems to have the same issue with max_pages=”0″. Can you confirm?

    Thread Starter jjean

    (@jjean)

    I had “max_pages=’0′” in my shortcode, which I took out and solved the issue.

    Thread Starter jjean

    (@jjean)

    Ahh…finally got it. Didn’t see the offset parameter for Load More.

    Also, was able to get two columns by simplifying the repeater to:

    <?php $i ++; ?>
    <div class=”span-12 post-<?php the_ID(); ?><?php if ($i == 2) { ?> last<?php } ?>”>
    <h1 class=”title-header”>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title() ?></h1>
    <div class=”post-format-content”>
    <div class=”featured-image”><?php echo get_the_image_link(array(‘thumbnail’,’thumbnail-news’),’thumbnail’); ?></div>
    <div class=”content-wrap”><h1 class=”entry-title”><?php the_title(); ?></h1></div>
    </div>
    <p class=”postmetadata”></p>
    </div>
    <?php if ($i == 2) { ?>
    <div class=”archive-stack clear”></div>
    <?php $i =0; } ?>

    Thanks!

    Thread Starter jjean

    (@jjean)

    Thanks.

    I think the issue I’m having the most is duplicate posts.

    I start off with 15 thumbnail posts on the main screen. How do I have Ajax Load More start on the 16th post without duplicating posts?

    I tried “$query = new WP_Query( ‘offset=15’ );”, but the repeater template loops back to the 15th post on every load.

    Thread Starter jjean

    (@jjean)

    Hi,

    Yes, the code for the “Second Loop” is being used as the repeater template.

    <?php
    $args = array (
    ‘post_type’ => ‘post’,
    ‘posts_per_page’ => ’14’,
    ‘post__not_in’ => $do_not_duplicate
    );

    $i = 0;
    $my_query = new WP_Query($args);
    if ($my_query -> have_posts()) : while ($my_query -> have_posts()) : $my_query -> the_post();
    $do_not_duplicate[] = $post->ID;
    if (!in_array( $post->ID, $do_not_duplicate )) continue; update_post_caches($posts); $i++;
    ?>
    <div class=”span-12 post-<?php the_ID(); ?><?php if ($i == 2) { ?> last<?php } ?>”>
    <h1 class=”title-header”>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title() ?></h1>
    <div class=”post-format-content”>
    <div class=”featured-image”><?php echo get_the_image_link(array(‘thumbnail’,’thumbnail-news’),’thumbnail’); ?></div>
    <div class=”content-wrap”><h1 class=”entry-title”><?php the_title(); ?></h1></div>
    </div>
    <p class=”postmetadata”></p>
    </div>
    <?php if ($i == 2) { ?>
    <div class=”archive-stack clear”></div>
    <?php $i = 0; } ?>
    <?php endwhile; endif; ?>

    Thread Starter jjean

    (@jjean)

    I was able to get the plugin to work, but I think the only issue is how the posts are being generated on the main page due to the layout, specifically because the number of posts has to be an odd number. The infinite scroll plugin generates an odd number of posts, leaving gaps on certain lines. I have to figure out how fix this.

    Thread Starter jjean

    (@jjean)

    I temporarily disabled it because it my page navigation disappears with the selectors that I used.

    nextSelector: “.wp-pagenavi a:first”,
    navSelector: “.wp-pagenavi”,
    contentSelector : “.container-inner”,
    itemSelector : “.static-image-wrapper”,

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