Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter likelythat

    (@likelythat)

    Ok, it was “auto cache of the main css” in the features area that was causing the problem.

    likelythat

    (@likelythat)

    Thanks – just what I was looking for!!! Works like a charm.

    Thread Starter likelythat

    (@likelythat)

    I was able to acomplish this by adding the call in the header.php instead of function.php (before the wp_head call)(plugin must be activated):

    if (is_front_page())
    {
    
    add_streched_background(array(
    		'background' => array('http:...jpg', 'http:...jpg', 'http:...jpg'),
    		'shuffle' => 'yes',
    		'nextSlideDelay' => '12000'
    ));
    
    }

    Hey I would like an official way to do this too!!! It seems like something a lot of people want, I’ve seen a lot of requests for this, but no solutions. I’ve found a hack solution for this, but it only works of you never want to use the nggallery layout: that you always want to go directly to the image browser.

    It’s not a good solution – but it serves:
    **if you don’t know how to save crashed plugins don’t try this, save an original copy of nggfunctions.php before starting**

    open up nggfunctions.php

    copy the showimagebrowser function AFTER “nggshowimagebrowser(“
    go to the showgallery function and highlight the whole function starting AFTER “nggShowGallery(” paste in the image browser function.
    Make sure you get all of the show gallery function, it ends after the code after this comment: “// get all picture with this galleryid”.

    If you don’t replace the code correctly you get a nasty error on the admin panel and you have to replace the non-botched nggfunctions.php.

    the code should look like this:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Thread Starter likelythat

    (@likelythat)

    Hey alchymyth,

    Thanks for writing!

    It’s for the background stretcher plugin which uses jquery.
    I plugged the above code directly in the theme functions code (functions.php) the code works correctly without the if statement.

    When I add the if statement, I don’t receive any error, the background images just don’t show up, I tryed “is_page();” also just to make sure
    I wasn’t targeting the wrong page. I also tried reseting the query with:
    wp_reset_query();. No luck ??

    I’ve currently hacked a way to do it by removing “get_header” from page.php, and manually including all the info in header.php except for: <?php wp_head(); ?>, which is what was pulling in the plugin.
    This of course is a sloppy solution, that I’m not comfortable with, but since I’m new at WP I don’t really see any other solution since the if statement doesn’t work…

    Any suggestion?

    Thanks in advance!!!

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