Not signed in (Sign In)

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

Please sign in or apply for membership to remove the ads
    • CommentAuthorFlow
    • CommentTimeApr 26th 2008
     
    i integrated plogger in an iframe

    whenever i click on "next" to get to the next pictures,
    the frame is "jumps down" like there was an anchor point
    at the level of the "next" button.
    (i checked but there is no <a> tag!)

    i would like the frame to reload without "jumping down".
    is that possible?
    •  
      CommentAuthorsidtheduck
    • CommentTimeApr 28th 2008 edited
     
    Flow, there is an anchor id (it's the link itself). Are you using Beta 3.0 or a newer nightly SVN build?

    If you have a newer SVN build, you can force Plogger to be embedded. Open 'plog-config.php' and uncomment this code:// define("PLOGGER_EMBEDDED","") // 1/0 (True/False) if set will overrule automatic checkchange to:define("PLOGGER_EMBEDDED","1"); // 1/0 (True/False) if set will overrule automatic check

    If you are using the Beta 3.0, you have to change 2 functions in 'plog-functions.php', plogger_get_next_picture_link() and plogger_get_prev_picture_link().

    Under 'plogger_get_next_picture_link()', find:if ($config['embedded'] == 0) {
    $next_link = '<a id="next-button" accesskey="." href="'.$next_url.'#prev-button">' . plog_tr('Next') . ' &raquo;</a>';
    } else {
    $next_link = '<a id="next-button" accesskey="." href="'.$next_url.'">' . plog_tr('Next') . ' &raquo;</a>';
    }
    and change to://if ($config['embedded'] == 0) {
    // $next_link = '<a id="next-button" accesskey="." href="'.$next_url.'#prev-button">' . plog_tr('Next') . ' &raquo;</a>';
    //} else {
    $next_link = '<a id="next-button" accesskey="." href="'.$next_url.'">' . plog_tr('Next') . ' &raquo;</a>';
    //}


    Under 'plogger_get_prev_picture_link()', find:if ($config['embedded'] == 0) {
    $prev_link = '<a id="prev-button" accesskey="," href="'.$prev_url.'#next-button">&laquo; ' . plog_tr('Previous') . '</a>';
    } else {
    $prev_link = '<a id="prev-button" accesskey="," href="'.$prev_url.'">&laquo; ' . plog_tr('Previous') . '</a>';
    }
    and change to://if ($config['embedded'] == 0) {
    // $prev_link = '<a id="prev-button" accesskey="," href="'.$prev_url.'#next-button">&laquo; ' . plog_tr('Previous') . '</a>';
    //} else {
    $prev_link = '<a id="prev-button" accesskey="," href="'.$prev_url.'">&laquo; ' . plog_tr('Previous') . '</a>';
    //}
    • CommentAuthorFlow
    • CommentTimeApr 29th 2008
     
    thats perfect! thanks a lot! the support is actually one of ploggers best features!