Forum Replies Created

Viewing 15 replies - 1 through 15 (of 58 total)
  • Thread Starter kidznc

    (@wsp-kk)

    No need. This is a bit embarrassing (seeing that I figured this out for a *different* site a year ago and since forgot), but the problem was that the child theme was not running the ../foogallery/album-myalbumname.php without there being a corresponding album-myalbumname.php file located in the parent style folder. I should have specified this.

    That said, I’m not sure if this is intended behavior, or an error with the particular theme I’m working with. I will be phasing it out for a stand-alone theme soon, so it is not that important in the long run.

    • This reply was modified 2 years, 2 months ago by kidznc.
    Thread Starter kidznc

    (@wsp-kk)

    I’m presently using that code to unset the sizes generated by other plugins (and the theme), but I’m also locking down the image sizes with the intermediate_image_sizes hook:

    
    //ONLY ALLOW THE FOLLOWING MEDIA SIZES
    add_filter( 'intermediate_image_sizes', 'image_restrict' );
    function image_restrict( $sizes ) {
    return array( 'folio', 'gallery', 'downloads', 'medium_large', 'blog400' );
    }
    

    This is more or less what you’ve recommended, but it still means I have to OK one more image size. MaxGalleria’s default Image Tiles gallery really should have a simple conditional fallback that allows it to use the next available image size if the ideal one isn’t available. It’s quite annoying to have to OK yet one more image size, or to find that somewhere in your 100+ galleries, there is one photo or gallery that slipped through without getting generated into the right size for whatever reason.

    Another thing I’ve noticed is that WordPress sometimes makes a mistake generating the images that are resized by multiples of 33.3% or 66.6%. I’ve found images resized to ...-250x167.jpg when Max is calling for ...-250x166.jpg

    It’s just extremely annoying, and enough that I’m willing to spend a few days with the interconnect/it serialized search and replace tool and transfer all the galleries over to Modula, which can display any combination of columns without ever requiring a custom image size.

    • This reply was modified 2 years, 6 months ago by kidznc.
    • This reply was modified 2 years, 6 months ago by kidznc.
    • This reply was modified 2 years, 6 months ago by kidznc.
    • This reply was modified 2 years, 6 months ago by kidznc.

    FYI, I tried running @webteamffcu’s recommendation of Added Advanced noCaptcha & invisible Captcha (with CF7 v5.1.1), but received the following error in the inspector:

    recaptcha__en.js:507 Uncaught Error: reCAPTCHA placeholder element must be an element or id

    I removed Added Advanced noCaptcha & invisible Captcha and backdated to CF7 v5.0.5 with reCAPTCHA v2 integration built in. Everything is working fine once again.

    Additionally, there was a huge error with WP SMTP Mail when these two plugins were active. No idea how it was affected though, as it cleared up on v5.0.5.

    Thread Starter kidznc

    (@wsp-kk)

    I’m sorry, but I do not follow. If I edit the a page (or pages) on our local server and push the SQL file update to our live site, I am neither clearing the stats OR keeping the total download count of any of the download assets on the live site. I’d just be restoring (more accurately, overriding) whatever random download counts are on the local SQL file.

    This seems entirely counterproductive. I want to keep that “total download count” per asset downloaded, even if the site is updated. How do I do that?

    • This reply was modified 3 years, 1 month ago by kidznc.
    Thread Starter kidznc

    (@wsp-kk)

    Dear Gabor:

    No worries – at least that clears it up! Thank you.

    -Kurt

    Thread Starter kidznc

    (@wsp-kk)

    Dear Ramona:

    I’m aware they’re mostly debugging tools, but I do want to make sure that the .JS isn’t being loaded twice. The site has enough issues with too many separate JS and CSS files as it is – slows the load time considerably.

    This said, the sliders are not popups, but the video slider on the main page with the four Walk to School Day videos, and the photo slideshow under the Poster Contest tab.

    However, there is one popup and a slider associated with that page; they may be re-writing the code twice. I’ll delete some elements from the page on my local copy and report back.

    Thread Starter kidznc

    (@wsp-kk)

    Ok! That makes sense now. This page was designed with 3.3, so the fix for the fix happened to conflict with the code on our site.

    That explains it all – thank you!

    -KK

    Thread Starter kidznc

    (@wsp-kk)

    Dear Ramona:

    No worries. It’s working now because I toggled “Slider’s inline JavaScript,” as I initially explained.

    My post was primarily to explain what had happened, just in case a default setting had been changed in SS3, as I never experienced this issue prior to the SS3 update.

    Incidentally, what you describe is correct – the ?fwp_paged=2 is written by FacetWP, which generates the blog/article/event entries and the pagination.

    -Kurt

    Thread Starter kidznc

    (@wsp-kk)

    The slider’s AJAX support is not the problem; it’s the slider’s JS blocking the AJAX-loaded functions on the site.

    I tried setting the JS back into the header and turned on the AJAX support as you described, and the pagination promptly disappeared again. The AJAX support setting has no affect on it; only the JS location.

    Thread Starter kidznc

    (@wsp-kk)

    Great, thanks.

    -KK

    Thread Starter kidznc

    (@wsp-kk)

    It’s been a while, but I’ve had an opportunity to butt my head on this again – and I’m stumped.

    I’ve sharpened my knowledge of WP quite a bit over the last three months since starting this thread, and the behavior of FooGallery – at least, what I’d expect of it given a template – has been mystifying.

    First off, I’ve been working out of wp-content/themes/photolite-child/foogallery/, the obvious choice of the four directories you mentioned above. So far, I’ve tried modifying the two existing Foo Gallery album templates to see if they’re recognized.

    Granted, this didn’t make too much sense, so I decided to try A. Making a gallery template, and B. Creating it in the the old mainstay of any WordPress page template – a .php file entitled gallery-whatever.php containing nothing more than the following:

    <?php
    
    /**
    
    Template name: Whatever
    
     */
     ?>
    

    I figured, if anything, it should come up in the list of available galleries if this is working as intended. I also threw in a random div in the file just so I could see something on the front end if it did work.

    It never showed up in the list.

    This really makes no sense to me, as it’s the one thing simple enough to have been covered by your initial explanation – unless templates built onto a theme have to be enqueued in functions.php for FooGallery to recognize them.

    Please let me know. I would have swapped plugins long ago if it weren’t for the fact that I have far more galleries built around FooGallery than I’d care to migrate.

    Thread Starter kidznc

    (@wsp-kk)

    Hello Brad:

    Haven’t heard back from you. I know you’re probably busy (no rush!) but just wanted to check in and make sure the email was received.

    -KK

    • This reply was modified 4 years ago by kidznc.
    • This reply was modified 4 years ago by kidznc.
    Thread Starter kidznc

    (@wsp-kk)

    FYI, was just able to get it to work with a slight modification to that code. It looks as if $post->ID did the trick:

    <?php echo get_post_meta( $post->ID, 'maxgallery_description_text', true); ?>

    This is the final code I used, with an if/else conditional. I realize that I could stack the code without the conditional and get the same result, but that’d be just be sloppy, IMHO.

    It’ll also display a gallery description on the blog even if I don’t enable it on the gallery, which happens to work well for the site I’m working on right now:

    <?php if ( is_search() || !is_single() ) : // Only display Excerpts for Search ?>
        <div class="entry-summary">           
    	<? if ($post_type == 'maxgallery'): ?>
    		<p><?php echo get_post_meta( $post->ID, 'maxgallery_description_text', true); ?></p>
    	<? else: ?>
    		<?php the_excerpt(); ?>
    	<? endif; ?>
        <p class="read-more"><a href="<?php the_permalink(); ?>"><?php esc_html_e('Read More &raquo;','photolite'); ?></a></p>
    </div><!-- .entry-summary -->

    Thanks again!

    -KK

    • This reply was modified 4 years ago by kidznc.
    • This reply was modified 4 years ago by kidznc.
    • This reply was modified 4 years ago by kidznc.
    Thread Starter kidznc

    (@wsp-kk)

    Dear Alan:

    Thank you very much.

    I went ahead and tried it as follows, though it doesn’t seem to be pulling anything; the description remains blank.

            <?php if ( is_search() || !is_single() ) : // Only display Excerpts for Search ?>
                <div class="entry-summary">
                  <?php get_post_meta( $gallery_id, 'maxgallery_description_text', true); ?>
                    <p class="read-more"><a href="<?php the_permalink(); ?>"><?php esc_html_e('Read More &raquo;','photolite'); ?></a></p>
                </div><!-- .entry-summary -->

    (FYI: Usually <?php the_excerpt(); ?> sits in its place, I just swapped it for the test rather than make an if statement).

    I’ll try echoing the output of the $gallery_id to see if it’s finding the gallery with get_post_meta or not.

    -KK

    • This reply was modified 4 years ago by kidznc.
    • This reply was modified 4 years ago by kidznc.
    Thread Starter kidznc

    (@wsp-kk)

    Thank you for the reply.

    My apologies for asking for clarification, but I take it then that the only method you support at the moment is via shortcode, correct?

    If so, I understand. I’m sure I can find a PHP guru that can indicate how to either hook into aigpl-gallery-album.php or – if necessary – duplicate the plugin.

    Thank you!

Viewing 15 replies - 1 through 15 (of 58 total)