• 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 ?

Viewing 14 replies - 1 through 14 (of 14 total)
  • 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.

    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.

    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.

    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 https://www.nowimpissed.net on the “Home for rent” page.

    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.

    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

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

    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.

    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?

    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?

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

    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

    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?

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Use Exhibit for Pages, not only Posts’ is closed to new replies.