Forum Replies Created

Viewing 15 replies - 1 through 15 (of 16 total)
  • Thread Starter Rethink

    (@rethink)

    Tried all of the above and it still didn’t work. Thanks for trying!

    The work-around for my site seems to be to regenerate thumbnails for a landscape image, knowing most of my images are landscape, and then replace those that aren’t with images that work.

    If anyone comes up with another solution in the meantime, I’d love to hear it!

    Thread Starter Rethink

    (@rethink)

    That code is outputting the unique IDs, so that seems to be working. I tried a couple variants of the thumb call with no difference. I’m stumped.

    For now I need to put it back to normal so that the client can take a look, but I’m open to messing with it at night….

    Thread Starter Rethink

    (@rethink)

    Thanks!

    I put this code in exactly as it is here and it’s now linking to the gallery page instead of the image. Ideas?

    https://www.gaybruntmillerdesigns.com/gallery/

    We had this same issue in the last 2-3 days, affecting a total of 6 sites. A scan came back as showing no infected files. On a whim, I reinstalled 4.2.1 on all the sites and the links disappeared! In a few cases it only disappeared in the browser I had run the reinstall (so I ran it in IE, FF and Chrome in order to get the link to disappear in all 3). Can’t give you a good answer as to what happened … but this fixed it!

    Thread Starter Rethink

    (@rethink)

    Found the problem–there were some extra “echo”s in there that I missed when I was swapping in the new code. So the appropriate code is:

    <?php $shortcode = "[ngg_images gallery_ids='1' display_type='photocrati-nextgen_basic_slideshow' gallery_width='400' gallery_height='156']";
    echo do_shortcode($shortcode); ?>

    Thanks for your help!

    Thread Starter Rethink

    (@rethink)

    Yup, that works, with a couple small changes–I used “gallery_ids” instead of container_ids. And then you add any additional filters to the shortcode, just like you would in the body of the page (making sure to use single quotes instead of double).

    So, in my case, my code ended up looking like this:

    <?php echo $shortcode = "[ngg_images gallery_ids='1' display_type='photocrati-nextgen_basic_slideshow' gallery_width='400' gallery_height='156']";
    echo do_shortcode($shortcode); ?>

    Works great. But, when I added the if statements, now I’m getting both the shortcode and the gallery showing up in the header. It’s the correct gallery and the shortcode associated with the page.

    So my code is:

    <?php
    	   if( is_page('About St. Johns') )  $shortcode = "[ngg_images gallery_ids='2' display_type='photocrati-nextgen_basic_slideshow' gallery_width='400' gallery_height='156']";
    elseif( is_page('AGM') ) echo  $shortcode = "[ngg_images gallery_ids='3' display_type='photocrati-nextgen_basic_slideshow' gallery_width='400' gallery_height='156']";
    elseif( is_page('Artist Series') )  $shortcode = "[ngg_images gallery_ids='4' display_type='photocrati-nextgen_basic_slideshow' gallery_width='400' gallery_height='156']";
    elseif( is_page('What We Believe') ) echo  $shortcode = "[ngg_images gallery_ids='5' display_type='photocrati-nextgen_basic_slideshow' gallery_width='400' gallery_height='156']";
    elseif( is_page('Bulletins') ) echo  $shortcode = "[ngg_images gallery_ids='6' display_type='photocrati-nextgen_basic_slideshow' gallery_width='400' gallery_height='156']";
    elseif( is_page('Calendar') ) echo  $shortcode = "[ngg_images gallery_ids='7' display_type='photocrati-nextgen_basic_slideshow' gallery_width='400' gallery_height='156']";
    elseif( is_page('Choirs') ) echo  $shortcode = "[ngg_images gallery_ids='8' display_type='photocrati-nextgen_basic_slideshow' gallery_width='400' gallery_height='156']";
    elseif( is_page('Church Council') )  $shortcode = "[ngg_images gallery_ids='9' display_type='photocrati-nextgen_basic_slideshow' gallery_width='400' gallery_height='156']";
    elseif( is_page('Confirmation') ) echo  $shortcode = "[ngg_images gallery_ids='10' display_type='photocrati-nextgen_basic_slideshow' gallery_width='400' gallery_height='156']";
    echo do_shortcode($shortcode); ?>

    (And so on, for another 30 pages)

    The website: https://st-johns-ucc.org/

    And you’ll see the photo galleries in the headers.

    Thanks!

    Thread Starter Rethink

    (@rethink)

    Here’s a portion–I had a whole list since I wanted a different slideshow on each page.

    <?php
    if( is_page('About St. Johns') ) echo nggShowSlideshow(2,400,156); ?>

    This is no longer up live on the site, since I removed it after it threw the error (the error was keeping the rest of the page from loading).

    Thanks!

    Thread Starter Rethink

    (@rethink)

    So strange. When I try that page in Firefox, it just throws the “unresponsive script” box over and over and won’t let me do anything else in the browser until I close it down. Thanks!

    Thread Starter Rethink

    (@rethink)

    I’m sorry–that’s my mistake. Don’t click on the “add to cart,” click on the product so that you go to the product page. In Firefox. Thanks!

    Thread Starter Rethink

    (@rethink)

    Thanks–they recreated the folder and all is well.

    Thread Starter Rethink

    (@rethink)

    Above the page:

    Warning: session_start() [function.session-start]: open(/home/users/web/b1376/as.lighthouse1/cgi-bin/tmp/sess_ff9dc65fca94458cf0474c1710d9efc4, O_RDWR) failed: No such file or directory (2) in /hermes/waloraweb048/b1376/as.lighthouse1/wp-content/plugins/si-contact-form/si-contact-form.php on line 3170

    Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /hermes/waloraweb048/b1376/as.lighthouse1/wp-content/plugins/si-contact-form/si-contact-form.php:3170) in /hermes/waloraweb048/b1376/as.lighthouse1/wp-content/plugins/si-contact-form/si-contact-form.php on line 3170

    Below the page:

    Warning: Unknown: open(/home/users/web/b1376/as.lighthouse1/cgi-bin/tmp/sess_ff9dc65fca94458cf0474c1710d9efc4, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

    Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/home/users/web/b1376/as.lighthouse1/cgi-bin/tmp) in Unknown on line 0

    Thread Starter Rethink

    (@rethink)

    Ok, I figured out a work-around by creating a home.php page with the template I was using for these posts (this won’t work for anyone who is already using the home.php, but it worked for me).

    HOWEVER

    Even though the formatting is correct now, when I click on the flag or choose a list of one specific country, it shows me all the posts from every country, not just the one country.

    ?? Thanks!

    Thread Starter Rethink

    (@rethink)

    Perfect–thanks so much!

    Thread Starter Rethink

    (@rethink)

    Thank you! I appreciate your quick response!

    I am now seeing the next/previous links, however it only shows two documents per page :-).

    Also, how do I implement the search function?

    Thread Starter Rethink

    (@rethink)

    Figured out the issue–the header id was still directing the div to the “branding” class, which was causing the slideshow to do funky things with load and placement. Once I removed that id, all is well with the world.

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