WordPress.org

Ready to get started?Download WordPress

Forums

Use Exhibit for Pages, not only Posts (15 posts)

  1. iBuZze
    Member
    Posted 9 years ago #

    Does anyone know how I can use Exhibit and WordPress 1.5 pages?
    It works fine for posts, but it does not appear in the admin console when I want to write a Page.

    Do I have to change some code ?

  2. AuntiAlias
    Member
    Posted 9 years ago #

    I've gotten it to appear in the Pages control panel, but it doesn't appear in the normal place as in post control panel. Look for it at the very bottom of the page.

    p.s. Some time back, I asked whether there was some code to make the whole shebang appear in its normal spot. To date I've received no reply.

  3. scabinum
    Member
    Posted 9 years ago #

    As when using posts, you must first save the page. When you return to "edit" the page from your admin console, you'll see the Exhibit control panel at the very bottom.

  4. ColdForged
    Member
    Posted 9 years ago #

    You'll need to modify the code in order to get it to appear for pages and in the right place. Assuming the latest version of Exhibit, make the following changes in the file exhibit10i.php(bear in mind, I haven't tested this but I've done similar things in my spelling checker plugin):

    Change (line 268):
    // Are we on the right page?
    if(preg_match('|post.php|i', $_SERVER['SCRIPT_NAME']))

    to this:

    // Are we on the right page?
    if(preg_match('|post.php|i', $_SERVER['SCRIPT_NAME']) ||
    preg_match('|page-new.php|i', $_SERVER['SCRIPT_NAME']))

    That'll get it on the page. Now, to position it we have to modify a bit more:

    Change (line 292):

    if ($_GET['action'] == 'edit' || get_settings('advanced_edit')) {
    echo 'var submitButtonPara = document.getElementById("save").parentNode;';
    } else {
    echo 'var submitButtonPara = document.getElementById("saveasdraft").parentNode;';
    }

    To:

    if (preg_match('|page-new.php|i', $_SERVER['SCRIPT_NAME']))
    {
    echo 'var submitButtonPara = document.getElementById("savepage").parentNode;';
    }
    else if ($_GET['action'] == 'edit' || get_settings('advanced_edit')) {
    echo 'var submitButtonPara = document.getElementById("save").parentNode;';
    } else {
    echo 'var submitButtonPara = document.getElementById("saveasdraft").parentNode;';
    }

    Hope that helps.

  5. scabinum
    Member
    Posted 9 years ago #

    Coldforged: I dont' know which version you're using, but just from my experience, I'm using 1.5 with the latest version of Exhibit and have not had to make any mods to the exhibit.php files. You can check it at http://www.nowimpissed.net on the "Home for rent" page.

  6. ColdForged
    Member
    Posted 9 years ago #

    I'm not using it at all. I only looked at the source to figure out what it did. I was just going by what others said and trying to provide a way to have it appear in the correct place.

  7. Vish
    Member
    Posted 9 years ago #

    The verion I have does not work on pages...and I believe I have the most latest versions

    Version: 1.1b Exhibit with
    WP 1.5.1.3
    ...

  8. Vish
    Member
    Posted 9 years ago #

    anyone????
    I thought this plugin is widely used !!

  9. iand
    Member
    Posted 9 years ago #

    Try 1.1d or 1.1d(asy). I have found that 1.1d works fine with pages and 1.5.1.3 (though the boxes appear at the bottom of the edit screeen). Depending on error messages, you might need to apply the fix as described here.

  10. Vish
    Member
    Posted 9 years ago #

    Try 1.1d or 1.1d(asy).
    WHere can I get this version. Now that I am thinking in right direction, I knew I want 1.1d(asy) and I think I clicked on link that said that this is the version I am downloading, but HOW did I ended up getting 1.1b, I am still not sure....
    Can anyone point me the download url again?

  11. iand
    Member
    Posted 9 years ago #

  12. Vish
    Member
    Posted 9 years ago #

    That is exactly where I got it from. THe file name is asy_exhibit but when installed it show 1.1b in the WP admin console !!!

    Any ideas what am I missing here?

  13. iand
    Member
    Posted 9 years ago #

    Try the plain 1.1d and apply the fix mentioned previously if necessary.

  14. Vish
    Member
    Posted 9 years ago #

    that makes sense...and I already downloaded it and gonna try it today. I am optimistic that its gonna work this time....
    thanks to all

  15. Vish
    Member
    Posted 9 years ago #

    I now have the pluging setup but was have no clue how to get the gallery to show up on a page?

    Like when for a post, you save the post in draft mode and then the galery shows up, not for the page !! Do I have to do something special to get it to show up a page as mentioned by ColdForged in previous post?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.