WordPress.org

Ready to get started?Download WordPress

Forums

Adhesive: A new sticky WP plugin (150 posts)

  1. gravity
    Member
    Posted 9 years ago #

    Doh! Sorry..
    Where do you want me to post that? heh.. did not mean to do that..
    I am talking about EzStatic.. getting confused.. ;)
    Kind regards,
    Gravity

  2. gravity
    Member
    Posted 9 years ago #

    BTW..
    ADHESIVE 1.4 is working Perfectly..

  3. nstead
    Member
    Posted 9 years ago #

    On the ordinary edit page (not the advanced edit), I'm getting the "sticky" box right at the bottom of the page. Should it be there?
    ...and why is there a bit of code which says:

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

    This seems a little strange, to say the least!

  4. gravity
    Member
    Posted 9 years ago #

    Not sure what is going on there mate.
    But the sticky ( option ) box should be like it is here in the image:
    http://www.asymptomatic.net/wp%2Dhacks/
    on the right hand side..

  5. Xyth
    Member
    Posted 9 years ago #

    I have always gotten a small sticky check box in the lower left corner of the new message entry screen. I thought that was a nice feature.

  6. ringmaster
    Member
    Posted 9 years ago #

    Yeah, that's a bug. No, wait, I mean... That's a feature. Yeah.

  7. Anonymous
    Unregistered
    Posted 9 years ago #

    Hi,
    I get this error on my frontpage
    Database error: [Access denied for user: 'situ@localhost' to database 'situ_techlog']
    .....
    Any ideas?
    Thomas

  8. ringmaster
    Member
    Posted 9 years ago #

    No idea other than it has nothing to do with Adhesive.

  9. Anonymous
    Unregistered
    Posted 9 years ago #

    After deactivating it everything works fine ... what could cause it?

  10. Anonymous
    Unregistered
    Posted 9 years ago #

    Here is the entire error message, maybe that tells something?

    Database error: [Access denied for user: 'situ@localhost' to database 'situ_techlog']
    CREATE TEMPORARY TABLE Adhesive SELECT * FROM wp_posts INNER JOIN wp_postmeta ON wp_posts.ID = wp_postmeta.Post_ID WHERE meta_key = 'sticky' AND meta_value = '1';
    Database error: [Table 'situ_techlog.Adhesive' doesn't exist]
    SELECT Adhesive.ID FROM Adhesive
    Database error: [Table 'situ_techlog.Adhesive' doesn't exist]
    SELECT *, ID as Post_ID FROM Adhesive WHERE 1 ;

    Thanks

  11. ringmaster
    Member
    Posted 9 years ago #

    Your MySQL database permissions don't seem to support creating temporary tables. You'll need to either apply this permission yourself or get your host to do it for you.
    In MySQL, it's impossible to do some more complicated database queries (like in this case, those that would normally use subqueries) without temporary tables.

  12. Anonymous
    Unregistered
    Posted 9 years ago #

    Thanks that did the trick. Adhesive works just fine.
    Thomas

  13. Anonymous
    Unregistered
    Posted 9 years ago #

    @ringmaster:
    I was wondering if this plugin supports having a post as sticky for a particular number of days..
    For example, next to the "sticky" checkbox, have a little datepicker, or just a little textbox, where the user can specify how long this post should be sticky (until when, or how many days).

  14. Anonymous
    Unregistered
    Posted 9 years ago #

    @polyfade: talk to your webhost. I did and he changed the settings :-)
    Thomas

  15. ringmaster
    Member
    Posted 9 years ago #

    @flashbang86:
    Well, that could be done.
    Ahem.
    /me looks around, not anxious to write any kind of date picker.

  16. Xyth
    Member
    Posted 9 years ago #

    I concur, Ring, this is useful stuff. Great stuff. Although what you have done has met my limited needs, I hope you revisit these plugins later and add a few features when you have time. Many thanks for the good work.

  17. Anonymous
    Unregistered
    Posted 9 years ago #

    Hi,
    I have to report one problem I encountered. My WP is setup with the viewlevel plugin. Now if a sticky note has let's say viewlevel 3 and a user logs in with viewlevel 1 he doesn't see the sticky note which is perfectly fine but he doesn't see the other posts with viewlevel 1 on the site either.
    Is there a way to change that behavior.
    Thanks Thomas

  18. ringmaster
    Member
    Posted 9 years ago #

    @Thomas:
    I have had zero luck with the ViewLevel plugin. I tried installing it on my personal site a couple of times, and it keeps borking things -- And I don't even use Adhesive on my own site.
    I think what might happen is that the ViewLevel plugin has code that you insert into the wp-blog-header.php file that reorganizes the $posts array based on user level. That's fine and all, but Adhesive does its thing in the wp_head plugin callback, getting the array after ViewLevel has already mangled it.
    I think it will be difficult to get Adhesive to work with a plugin that I can't get to work by itself.

  19. Anonymous
    Unregistered
    Posted 9 years ago #

    Well, as I understand - no idea how both plugins work internally - it seems difficult to bring those two plugins together since one overrules the other. Too bad I need the viewlevels for my projectblog. Adhesive would fit into that setup but ...
    Anyway thanks for that nice plugin.
    Thomas

  20. Michiel
    Member
    Posted 9 years ago #

    Perhaps a stuppid question but how can I change the title "Sticky title"?

  21. Anonymous
    Unregistered
    Posted 9 years ago #

    @ Michiel: Almost at the bottom of the adhesive php script you'll see:
    return 'Sticky Title';
    Change it there to whatever you like, save and upload to the plugins directory.

  22. Anonymous
    Unregistered
    Posted 9 years ago #

    I installed 1.5 but I don't see the sticky title on my entry. What am I missing?

  23. Michiel
    Member
    Posted 9 years ago #

    Thanks! I am now able to change the title. Still one question left: how can I change the appearance of the title? I would like to have a bit bigger font for it. I have been playing with the CSS file but no result so far... Thanks for your help!

  24. ringmaster
    Member
    Posted 9 years ago #

    I think the title ends up in the date div. You might be better off putting your own div in the value that is returned (ie- return "<div id="stickydiv">sticky title</div>";).
    If you don't see the sticky checkbox (it's on the advanced editing page at the top) then you haven't activated your plugin on the plugin page, your your Javascript is turned off.

  25. ringmaster
    Member
    Posted 9 years ago #

    You can combine both of our methods and add an id to the h2 tag in Adhesive:
    return "<h2 id="stickydiv">sticky title</h2>";
    This will devolve on older browsers better, and still let you style your sticky posts with a different kind of heading.

  26. Michiel
    Member
    Posted 9 years ago #

    Thanks a lot Gravity and Ringmaster! This worked perfectly!!!

  27. Pezzetto
    Member
    Posted 9 years ago #

    I can't get it to work. I installed the plugin, activated it, checked the sticky option for an article but nothing happens.
    Am I missing something?
    Tia.

  28. shadow
    Member
    Posted 9 years ago #

    I have had the same problem. Installed this plugin 5 times, tried everything I know. I get the sticky checkbox in admin but it has no effect on the post.
    Are there any other sticky plugins out there that work?
    It would be great to get this working but I have posted many times on here and never get a response on this one.
    Helpppppppp :)

  29. ringmaster
    Member
    Posted 9 years ago #

    @shadow:
    You've probably never gotten a response because you've never posted on this thread.
    @shadow & Pezzetto
    You should be aware that other plugins or hacks may modify the $posts array after Adhesive does, which would cause your sticky posts to not appear sticky.
    Adhesive is the easiest way to get sticky functionality, but it's not foolproof. You could try disabling a few other hacks and seeing if that lets Adhesive work, but usually that breaks other things. If you do narrow down what else you've got running that is interfering with Adhesive, I'll see if it's possible to overcome it.

  30. shadow
    Member
    Posted 9 years ago #

    My humble apologies Ringmaster, I had inadvertently placed my previous questions in a separate post.
    http://wordpress.org/support/3/10043
    I have now seen the error of my ways.
    Thank you.

Topic Closed

This topic has been closed to new replies.

About this Topic