The MU forums have moved to WordPress.org

getting adhesive sticky plugin to work in wpmu (22 posts)

  1. quenting
    Member
    Posted 17 years ago #

    I've seen multiple references of people successfully using this plugin, but i can't get it to work.
    It seems to be built to work from the plugins folder, but even from there i can't make it work (i can activate and configure it, but don't see the option when writing a post), and ultimately i'd like it to work directly from the mu-plugins folder.
    Anyone who got this working care to explain how you did it ? Thanks !

  2. andrea_r
    Moderator
    Posted 17 years ago #

    mine's in the regualr plugin folder. To use it, ... oh wait a minute...

    There's supposed to be a checkbox under Post Status in the Write Post area. It *was* there when I installed, but since I upgraded it looks like it disappeared. :-/

    *Sigh* another item for my neverending to-do list.

  3. dsader
    Member
    Posted 17 years ago #

    Andrea_r,

    The check-box appears when editing a post(post.php only-no post-new.php).

    How would you edit this line from adhesive.php so it appears on post-new.php as well?

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

  4. andrea_r
    Moderator
    Posted 17 years ago #

    I swear it was there on new posts before.

    how would I edit that line? I'd change it to

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

    and see what happened.

    otherwise, I'd have to go read the code and if I wanted it to show up on both, I'd just take out the if statement.

  5. dsader
    Member
    Posted 17 years ago #

    andrea_r, you are correct.

    I removed: // Are we on the right page?
    if(preg_match('|post.php|i', $_SERVER['REQUEST_URI']))
    {

    and the leftover } a little further down.

    Sticky check box on both now.

    Thanks

  6. dsader
    Member
    Posted 17 years ago #

    quenting, I dropped adhesive.php into plugin or mu-plugins, works same either way.

  7. dsader
    Member
    Posted 17 years ago #

    Wait a minute, andrea_r: now I have a sticky box at the bottom of every admin page. Back to original.

    quenting, the config for adhesive in mu is hidden and needs be added to menu.php manually, I guess.

  8. dsader
    Member
    Posted 17 years ago #

    I added the config menu in adhesive.php under Options rather than Plugins.

    function adhesive_admin_menu() {

    add_submenu_page('options-general.php', 'Configure Adhesive', 'Adhesive', 'activate_plugins', basename(__FILE__), 'adhesive_config');

    }

  9. andrea_r
    Moderator
    Posted 17 years ago #

    "Wait a minute, andrea_r: now I have a sticky box at the bottom of every admin page. Back to original."

    Whups. :) That occured to me afterwards it might do that. The if statement needs to be changed to if post.php OR post-new.php, show the ticky box, but I can't think of how right off the top of my head.

  10. kprimdal
    Member
    Posted 17 years ago #

    A easy way to add it to both pages would be:

    replace

    if(preg_match('|post.php|i', $_SERVER['REQUEST_URI']))

    With

    if(preg_match('|post.php|i', $_SERVER['REQUEST_URI']) || preg_match('|post-new.php|i', $_SERVER['REQUEST_URI']))

  11. drmike
    Member
    Posted 17 years ago #

    Andrea, which Adhesive plugin was this that you use?

    I note that there's two versions, one by Gamerz and one by Owen Winkler:

    http://wordpress.org/extend/plugins/wp-sticky/

  12. AUSR
    Member
    Posted 17 years ago #

    Below is what is appearing at the top of my post that is supposed to be sticky...

    window.document.getElementById(’post-8′).parentNode.className += ‘ adhesive_post’;

  13. vanwyks
    Member
    Posted 16 years ago #

    Has anyone solved this? Is development still ongoing with WPMU? Seems a few developers are incredibly swamped!

  14. andrea_r
    Moderator
    Posted 16 years ago #

    Yep, everyone is swamped.

    the plugin menitoend above that *was* working on my system somehow interfered with the previous/next navigation links so I had to dunp it.

    haven't found a substitute for it yet.

  15. conpeo
    Member
    Posted 15 years ago #

    I modify the core file but it doesn't work in Mu2.63.
    Any idea for adhesive or sticky post?

  16. andrea_r
    Moderator
    Posted 15 years ago #

    Wait for 2.7.

  17. tdjcbe
    Member
    Posted 15 years ago #

    f its cold. still no see on testbed.

  18. andrea_r
    Moderator
    Posted 15 years ago #

    It's there, I tried it, I used it. One of the first things I tested on what I got out of trunk.

  19. tdjcbe
    Member
    Posted 15 years ago #

    Miust not have copied a file correctly yet again. r1519 on the laptop and I swear it's not there. The Publish Status dropdown, right?

  20. andrea_r
    Moderator
    Posted 15 years ago #

    Right between Status and publish date.

    Status: Draft Edit
    Stick this post to the front page
    Publish immediately Edit

  21. tdjcbe
    Member
    Posted 15 years ago #

    *shrug* I must have missed a file. Can I blame Ron?

  22. andrea_r
    Moderator
    Posted 15 years ago #

About this Topic

  • Started 17 years ago by quenting
  • Latest reply from andrea_r