WordPress.org

Ready to get started?Download WordPress

Forums

Gallery
[resolved] shortcode bug and fix (4 posts)

  1. sipiatti
    Member
    Posted 2 years ago #

    Hi Developers,

    there is a bug in the shortcode handling. It is a functional problem, not a coding problem. The function isw echoing instead of returning the output so the gallery is diplayed at the top of the page content instead of the exact place of the shortcode.
    I made a quickfix with output buffering:
    after line $gllr_options = get_option( 'gllr_options' ); (about line nr. 809 in gallery-plugin.php) I inserted ob_start();
    and at the end of the function (around line nr. 889) I inserted these two lines

    $gllr_output = ob_get_clean();
            return $gllr_output;

    It works well, but maybe you desire another solution.

    Anyway, I love the plugin, it is simple and clean exactly what I prefer.

    Regards
    sipiatti

    http://wordpress.org/extend/plugins/gallery-plugin/

  2. bestwebsoft
    Member
    Plugin Author

    Posted 2 years ago #

    Hello,

    This bug has been fixed in version 3.06 (today).

    Thank you,
    Oksana

  3. VolkerHarz
    Member
    Posted 2 years ago #

    the plugin site is offline :( I cannot update

    http://wordpress.org/extend/plugins/gallery-plugin/

  4. bestwebsoft
    Member
    Plugin Author

    Posted 2 years ago #

    Hello,

    please do not worry, it will be available soon, we are working on it.

    Sincerely.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic