WordPress.org

Ready to get started?Download WordPress

Forums

Post Snippets
WP 3.3 conflict/recent update (3 posts)

  1. pumpedaudio
    Member
    Posted 2 years ago #

    I have just downloaded the most recent update of post snippets and there is no longer an insert button showing when I try to insert a snippet on the post pages

    2 screenshots included

    http://pumpedaudio.com/wp-content/uploads/2011/12/PS1.jpg

    &

    http://pumpedaudio.com/wp-content/uploads/2011/12/PS2.jpg

    Thnx

    http://wordpress.org/extend/plugins/post-snippets/

  2. wpadvocate
    Member
    Posted 2 years ago #

    The code below fixes ALL the compatibility issues with the 3.3? version.
    The problem was the code that added a button to the editor HTML version was outdated.
    The only file that you need to change is admin.js
    This file is located in wp-content/plugins/sniplets/resource/admin.js
    Simply replace the last function in this file named: addLoadEvent with the following code:

    addLoadEvent(function()
    {
    var toolbar = document.getElementById ("ed_toolbar");
    if (toolbar)
    {
    edButtons[edButtons.length] = new edButton('ed_sniplet' ,'sniplet','[sniplet name]','','snip');
    return false;
    }
    });

    If anyone has any problems with this or would like to drop me a note to let me know it worked, please feel free to do so at: ralph4goodhealth@gmail.com

    Enjoy!

  3. wpadvocate
    Member
    Posted 2 years ago #

    Please ignore the previous post unless you have the "Sniplets" Plugin. This has nothing to do with the plugin "Post Sniplets".

    Apologies

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic