WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Gallery 2 Plugin (43 posts)

  1. arnoldjw
    Member
    Posted 9 years ago #

    I've got a plugin for WordPress that wraps gallery in a theme, and synronizes new users.

    I need help with working with image blocks.

    The Plugin is at:

    http://holosite.com/software/wp-gallery2.html

    and in use at http://holosite.servepics.com/baby/

  2. lawtai
    Member
    Posted 9 years ago #

    very very nice! Glad to see you were able to make progress on integrating Gallery 2.

  3. andykemp
    Member
    Posted 9 years ago #

    This doesn't seem to work very well with the kubrik default theme...

    Everything seems to be offset by a few milimeters...

    Any idea how to fix this? I had the same problem when I tried to integrate the theme myself!

    To see what is going on have a look at:
    http://www.1kemp.co.uk/wordpress/wp-gallery2.php

    But this is definatley a move in the right direction!!

  4. lawtai
    Member
    Posted 9 years ago #

    add in a <div="content"> to shift it over as it's being aligned with the border and not the content area.

  5. arnoldjw
    Member
    Posted 9 years ago #

    I'll make the change in the wp-gallery2.php file tonight.
    Thanks.

  6. andykemp
    Member
    Posted 9 years ago #

    I tried putting it in but it didn't work!?! It's probably my very poor CSS skills though!!

    It adds in a <div="content"> but this is immediatley follwed by a <div id="gallery"> from the
    echo $g2data['bodyHtml']; command...

    As a result nothing moves...

    Also it has added a black border around the bacground image...

    Any ideas what I am doing wrong...

  7. arnoldjw
    Member
    Posted 9 years ago #

    So how would people like this handled?

    There are some themes like WordPress Default 1.5 based on Kubrick that need the <div="content"> wrapping the embedded gallery,
    There are others that don't like WordPress Classic 1.5.

    In addition some themes include the sidebar in the header or footer, others don't.

    So what would people like to see? An admin setting to turn on and off <div="content"> wrapping? and setting to include the sidebar?

    Search the header file for the class=content tag?

    Or just have people manually edit the wp-gallery2.php and comment where it could go?

  8. arnoldjw
    Member
    Posted 9 years ago #

    Andy, try <div id="content" class="narrowcolumn">
    Place it on line 53 after

    if ($wraptheme!="No") {
    get_header();

    So it should look like

    //Include WP Theme or basic html header
    if ($wraptheme!="No") {
    get_header();
    echo '<div id="content" class="narrowcolumn">';
    }else{
    echo "<html>n<head>";
    }

  9. andykemp
    Member
    Posted 9 years ago #

    Arnold,
    I tried what you suggested but it didn't work... SoI played about with it and managed to get it working by putting the <div id="content" class="narrowcolumn"> in like this:

    echo '<div id="content" class="narrowcolumn">';
    echo $g2data['bodyHtml']; //Display the gallery content
    echo '</div>';

    I also had to add a </div> to get it to work...

    That said I am still getting some form of black border around the background that shouldn't be there!

    Any ideas?

  10. arnoldjw
    Member
    Posted 9 years ago #

    Hi Andy,

    The Border is caused by the <div id="page"> in the theme you're using. Gallery has a style defined for that id.

    The two options I see are comment out the Gallery Header

    //Start Gallery Header
    echo $g2data['headHtml']; //Display the gallery header

    Or change the page to a different name and update the stylesheet to look for the new name.

    Sorry about not including the closing </div> it looked like you had added it to the page when you added the <div="content"> as suggested by lawtai.

    I prefer including the div tag in the them included header, because if you turn off themes then you don't need the encasing div tags.

    But placing it before the gallery header should be fine.

  11. andykemp
    Member
    Posted 9 years ago #

    Thanks Arnold! You have been a great help! I shall have a play with this today and let you know how I get on...

    By the way I would love to see an option page within the admin section to alter these settings. Keeps it all nice and neat!

  12. courtneyelizabeth
    Member
    Posted 9 years ago #

    I guess my only issue is that for some reason when i log into gallery 2, it wont let me admnister anything...it gives me an error saying, i dont have permission, even though i'm logged in as admin and it says welcome, site administrator.. :(

  13. courtneyelizabeth
    Member
    Posted 9 years ago #

    any ideas?

  14. andykemp
    Member
    Posted 9 years ago #

    Do you mean when you go back to the admin site?

    I am having a similiar problem when I go back to the regular gallery page, I can no longer log in... I have tracked this down to something to do with the cookies but short of deleting all my cookies (which I have done once!) I don't seem to be able to login...

    Any ideas?

  15. leslie0629
    Member
    Posted 9 years ago #

    I keep getting the error

    Warning: main(/home/lesliex/public_html//galleryembed.php): failed to open stream: No such file or directory in /home/lesliex/public_html/wp-content/plugins/wp-gallery2/g2embed.php on line 37

    Fatal error: main(): Failed opening required '/home/lesliex/public_html//galleryembed.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/lesliex/public_html/wp-content/plugins/wp-gallery2/g2embed.php on line 37

    Now whenever I login to the admin, it always shows the error on every page. It only stops when I delete the plugin.

  16. courtneyelizabeth
    Member
    Posted 9 years ago #

    welp...there went THAT plugin.....:( nice try though.

  17. arnoldjw
    Member
    Posted 9 years ago #

    leslie0629 it sounds like the paths you're including are wrong.

    Be sure you're checked the options > Gallery2 settings.

    There is some error and path validation included for the location of your gallery installation.

    The path to gallery should be "gallery2/" or "../gallery2/"
    It sounds like you've got "/gallery2" in your options.

    email me at arnoldjw at sbcglobal.net and I'll see what I can do.

    Also i just checked your site, and gallery doens't seem to be installed or configured properly on your site. http://www.lesliex.afraid.org/gallery/main.php gives an error.

  18. andykemp
    Member
    Posted 9 years ago #

    Arnold, don't give up on this!! It is far and away the best looking G2 plugin available to date!

    Do you have any idea why when using IE, it won't allow me to login to gallery once I have visited the wp-gallery2.php page, unless I clear my cookies?

  19. arnoldjw
    Member
    Posted 9 years ago #

    There's a problem with the sessions, and cookie corruption.
    I've got a post up at Gallery asking for help there.

  20. guero
    Member
    Posted 9 years ago #

    Great looking site Arnold. I'm looking at doing a babyblog myself but have been debating over what galelry to use since photos will be a large part. But seeing all these nice Gallery2 sites is making my choice easier. Will try the plugin this weekend. How did you do the random baby image on your header? Plugin or a hack you put together yourself?

    H

  21. ozgreg
    Member
    Posted 9 years ago #

    In an effort to bring all the efforts of the intergrators for WP/G2 together I invite everyone over to http://wpg2.ozgreg.com/

  22. curly
    Member
    Posted 9 years ago #

    ok, I got the same error as Leslie, and I have a probably stupid question:
    Do I put the wp-gallery2.php file in the root of WP or in the gallery-folder or in the template-folder? I have my gallery in /gallery...

  23. curly
    Member
    Posted 9 years ago #

    Oh and 1 more thing... as a result from the error, I had to delete the plugin without the possibility to de-activate it first... now everytime I uploadload the files again, I get the error and cannot do a thing... :'(

    How can I fix that???

  24. arnoldjw
    Member
    Posted 9 years ago #

    I've got an update I'll post later tonight. That does more error trapping for the plugin.

  25. arnoldjw
    Member
    Posted 9 years ago #

    Guero, I created a flash file that flips through the images. Its not too fancy, and not dynamic.

    When I'm happy with the plugin configure the flash file to do an RSS read from Gallery.

  26. curly
    Member
    Posted 9 years ago #

    way to go! got it working! now all I need is some tweaking for the right alignment in my template...

    THANKS!!!

  27. arnoldjw
    Member
    Posted 9 years ago #

    I have uploaded version a2 it allows options for including header information before and after your embedded gallery.

  28. andykemp
    Member
    Posted 9 years ago #

    version a2 seems very good! I could easily install the plugin and quickly get it all in and looking nice!

    Any progress yet on the cookie front?

  29. arnoldjw
    Member
    Posted 9 years ago #

    The cookie problem is a problem that Gallery2 has with cookies.
    Its a known problem but a low priority to be fixed by the Gallery2 team.

  30. andykemp
    Member
    Posted 9 years ago #

    okay! Do you have any idea how I can identify the gallerysid cookies for my site within IE? As there doesn't seem to be any way to selectively remove cookies...

    Sorry, I'm probably just being a bit dim today!

Topic Closed

This topic has been closed to new replies.

About this Topic