Forums

lightbox modal window (8 posts)

  1. isdereks
    Member
    Posted 6 years ago #

    i was hoping to utilize lightbox to create a modal window which in turn would display recent posts and comments. however, it seems as though the php file is not being recognized as being part of the wordpress loop. at the moment i'm have this loaded in a standalone php file:

    <div id="searchbox"><form method="get" id="searchform" action="/wordpress/">
    <input type="text" value="" name="s" id="s" />
    <input type="submit" value="Find" class="submit" id="searchbutton" value="Search" />
    </form></div>

    <ul class="recents">
    <?php get_archives('postbypost', '15', 'custom', '

  2. ', '
  3. '); ?>

    on activating the box, the search box functions as it should. unfortunately, i receive the following error message for get_archives:

    Fatal error: Call to undefined function get_archives()

    i've attempted to add the wp loop to the modal box but receive errors as well. ideas?

    (this is all running on a local install)

  • chanzero
    Member
    Posted 6 years ago #

    i'd also like to know how to use the lightbox effect to open a page not just an image (apologies if that's not what this post is about) if anyone can figure it out

  • red-star
    Member
    Posted 6 years ago #

    searche for greybox and there you have what you re looking for.

  • red-star
    Member
    Posted 6 years ago #

  • isdereks
    Member
    Posted 6 years ago #

    Thanks for the link. I ended up figuring out how I wanted to implement lightbox to present content.

  • isdereks
    Member
    Posted 6 years ago #

    I've written up a quick tutorial on the basic markup to get a modal window to display recent posts and a search box. Continue reading here.

  • chanzero
    Member
    Posted 6 years ago #

    thanks

    i installed the plugin but it doesn't seem to work for me :( if i understand correctly, once the plugin is activated i should be able to use class="GB" to mark a link to open in the modal window, but it doesn't seem to work for me. any ideas?

  • chanzero
    Member
    Posted 6 years ago #

    still can't figure out what's wrong :( is it possible this plugin doesn't work with wp 2.0? (maybe i missed that part because the instructions weren't in english...)

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags