WordPress.org

Ready to get started?Download WordPress

Forums

Lazy Gallery (26 posts)

  1. Tek
    Member
    Posted 9 years ago #

    I am trying to get this new plugin to work and I am sure I have a stupid error somewhere. Now this plugin doesn't do everything I would like it to but it seems to be at least trying to match the rest of my blog.

    The plugin is here:

    http://www.lazyboy.dk/wordpress/?page_id=14

    And this is my error:

    Warning: main(topbanner.php): failed to open stream: No such file or directory in /home/tekwh0re/public_html/wp/lazy-index.php on line 16

    Warning: main(): Failed opening 'topbanner.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/tekwh0re/public_html/wp/lazy-index.php on line 16

    I just know I did something stupid.

    http://www.lazyboy.dk

  2. James
    Happiness Engineer
    Posted 9 years ago #

    It looks like the file topbanner.php does not exist, but it's not part of Lazy Image. Is it part of your theme? You may want to contact the plugin developer.

  3. Tek
    Member
    Posted 9 years ago #

    It's part of my theme. plugin was made for kubrick but it seems like it is easy to switch save for my terrible php skills. Its working... save for THAT.

    This is what I have:

    <?php
    /* Don't remove this line. */
    require('./wp-blog-header.php');
    ?>

    <?php get_header(); ?>

    <?php // get the nav etc ?>
    <?php include "topbanner.php"; ?>

  4. moshu
    Member
    Posted 9 years ago #

    This last line
    <?php include "topbanner.php"; ?>
    I'd try in this way:
    <?php include ('topbanner.php'); ?>

  5. Tek
    Member
    Posted 9 years ago #

    Nope.

    It must be a path that isn't right somewhere. =(

  6. Jinsan
    Member
    Posted 9 years ago #

    <?php load_template( TEMPLATEPATH . '/topbanner.php'); ?>
    wouldn't work would it? TEMPLATEPATH as is and doesn't need messing around with. It works with custom templates, but not sure if it's relevant here. Maybe?

  7. Tek
    Member
    Posted 9 years ago #

    Nope.

    So odd... Its pulling the footer up just fine!

  8. Tek
    Member
    Posted 9 years ago #

    I got this to work- but by NOT using some includes because they just weren't working for me.

    I am pleased!

    If this guy can add some more features, save for a bit of tweaking with the gallery's index file- I have a gallery that now intergrates smoothly with the look of my site.

    BRAVO!!

    FINALLY!

  9. adb
    Member
    Posted 9 years ago #

    The gallery seems to work fine, but I have the following warnings on my Dashboard:

    Warning: Cannot modify header information - headers already sent by (output started at /home/site/public_html/wp-content/plugins/lazy-gallery.php:248) in /home/site/public_html/wp-admin/admin.php on line 6

    Warning: Cannot modify header information - headers already sent by (output started at /home/site/public_html/wp-content/plugins/lazy-gallery.php:248) in /home/site/public_html/wp-admin/admin.php on line 7

    Warning: Cannot modify header information - headers already sent by (output started at /home/site/public_html/wp-content/plugins/lazy-gallery.php:248) in /home/site/public_html/wp-admin/admin.php on line 8

    Warning: Cannot modify header information - headers already sent by (output started at /home/site/public_html/wp-content/plugins/lazy-gallery.php:248) in /home/site/public_html/wp-admin/admin.php on line 9

    Please advise.

  10. James
    Happiness Engineer
    Posted 9 years ago #

  11. adb
    Member
    Posted 9 years ago #

    that was it. thanks!

  12. galego
    Member
    Posted 9 years ago #

    Not sure if this is hijacking the thread/topic ... apologies if so ...

    I have this plug-in set up and it appears to be sort of working ... I put two images in the gallery folder. When I navigate to my lazy-index.php file, I get two small gray boxes instead of thumbnails. When I click on one of those, instead of the images, I get:

    Warning: imagesx(): supplied argument is not a valid Image resource in /usr/home/b/bowie-capo/www/htdocs/wp-content/plugins/lazy-gallery.php on line 165

    Warning: imagesy(): supplied argument is not a valid Image resource in /usr/home/b/bowie-capo/www/htdocs/wp-content/plugins/lazy-gallery.php on line 166

    Warning: imagedestroy(): supplied argument is not a valid Image resource in /usr/home/b/bowie-capo/www/htdocs/wp-content/plugins/lazy-gallery.php on line 167

    The offending code is ...

    $xsize = (imagesx($img));
    $ysize = (imagesy($img));
    imagedestroy($img);

    I thought it was a problem with the image files ... I reloaded them, but same result ... any ideas??

  13. Tek
    Member
    Posted 9 years ago #

    Curious.

    In you gallery install did you make then folder to put the images in or did you just install into the root of the gallery folder?

  14. galego
    Member
    Posted 8 years ago #

    I set the gallery to wp-images ... which is at the root ... So .. to be specific, the blog is at
    http://balancecapoeira.com/index.php ...

    and the gallery index is at

    http://balancecapoeira.com/wp-gallery/lazy-index.php

    In lazy-gallery.php (in plugins) Ihave ...
    $gallery_address = '/wp-gallery/';

    Seems that's how it should be ... one thing I realized, I didn't try removing the trailing '/' .. but that's the way the example was.

  15. galego
    Member
    Posted 8 years ago #

    <i>Seems that's how it should be ... one thing I realized, I didn't try removing the trailing '/' .. but that's the way the example was.</i>

    Nope ... that doesn't work :( not even a gray box to be seen.

  16. James
    Happiness Engineer
    Posted 8 years ago #

    Make sure that you're using the latest version (v0.4): http://www.lazyboy.dk/wordpress/?page_id=14

  17. parisgv
    Member
    Posted 8 years ago #

    guys, i have problems with images, i am uploading images and i can see them at the gallery BUT they are so so so small that you dont even realize if its a pic or something, see what i mean at

    http://www.justshannen.com/site/lazy-gallery.php

    i can see that i told you with FireFOX, not with IE. :(

  18. aggiedad
    Member
    Posted 8 years ago #

    I had a lot of trouble with lazy-gallery also. I just went back to JAlbum, which I had on my old static site. It couldn't be easier to use, has many themes available, and can be easily customized to match the look of your main site (see my adaptation at http://www.donandlinda.net. JAlbum can be downloaded at http://jalbum.net/

  19. vkaryl
    Member
    Posted 8 years ago #

    Yup - jalbum is my favorite gallery thing out there.

  20. pelias
    Member
    Posted 8 years ago #

    How can I integrate "Lazy Gallery" into a WP "Page"?

    I setup a “Page� in WP with a page template I created called “gallery.php�. In “gallery.php� i used a php include (pointing to “lazy-index.php�) but nothing seems to show up (blank in FF/broken images in Safari).

    My goal is to use WP as a light CMS and control all navigation within WP… I would rather not hard code header/footer links if I can get WP to generate my site architecture. Does anyone have any ideas on how to get this to work?

    Thanks for any pointers!

  21. kerwin15
    Member
    Posted 8 years ago #

    I seem to have a path problem with Lazy Gallery. If I navigate directly to it, the gallery is fine. However, if I link to it, the borwser adds a slash onto the end of the link and causes the pictures not to load.

  22. elspencer
    Member
    Posted 8 years ago #

    I've been looking all over for some help cause I know it's out there. I've seen some great galleries already and I don't want to give up on Lazy Gallery.

    I understand that lazy-index.php must be in the root folder and I think I've done that correctly. Could someone tell me why I'm getting this: Fatal error: Call to undefined function: showgallery(?

    http://www.elspencer.com/wordpress/lazy-index.php

    I know I most likely set up my folders incorrectly but I can't seem to get everything to work together. I have rotating images in my header. Could that be a problem?

    Any assistance would be greatly appreciated.

    el spencer

  23. jwurster
    Member
    Posted 8 years ago #

    The function is showGallery. Maybe just capitalize the G.

  24. Scott Grayban
    Member
    Posted 8 years ago #

    Lazy Gallery++ is a improved version of the old lazy gallery. I think the developer has stopped doing anything with it now.

    What I did was intergrate the old plugin into a real page and embedding it.

  25. elspencer
    Member
    Posted 8 years ago #

    hey y'all,
    thanks for the tips...it turns out that jalbum has worked a lot better and is more user-friendly as aggiedad and vkaryl mentioned. I'm new to all this jazz and it was nice to find a functional and quick solution.

  26. basta
    Member
    Posted 8 years ago #

    hey
    I have a problem here's my code of lazy gallery++

    <?php
    /*
    Template Name: gallery
    */
    ?>
    <?php get_header(); ?>

    <link href="/wp-content/plugins/lazy-gallery-plus/lazy-style.css" rel="stylesheet" type="text/css">

    <?php if ($gallery_sidebar == 'left') get_sidebar(); ?>
    <div id="gallery">

    <?php showGallery();?>
    </div>

    <?php if ($gallery_sidebar == 'right') get_sidebar(); ?>
    <!-- End Lazy Gallery++ -->

    <?php get_footer(); ?>

    and it gives me fatal eror:

    Fatal error: Call to undefined function: get_header() in d:\blog\wordpress\wp-content\themes\blix\gallery-page.php on line 6

    Can anybody help me?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.