• This thing was kind of a proof of concept for something else I was doing, but it seems to work well enough to release.
    Adhesive is a WordPress plugin that lets you easily mark posts as sticky. Adhesive is different than other plugins I’ve found with similar functionality for two reasons:

    1. You don’t need to modify any WordPress code.
    2. You need only check a box when you want to make something sticky.

    Other stuff that you might want to know: Adhesive uses post meta fields to store its sticky status. Sticky posts only appear in the categories that they’ve been assigned to. If you’ve modified your index.php heavily (fetching the $posts array in a different way than the default), then this plugin may not work for you. Adhesive should maintain the posts_per_page setting in your options – I’m not sure whether other sticky plugins do this.
    The upside is that if if doesn’t do what you want, you can just deactivate it and delete it. ??
    To install Adhesive, drop the file in your plugins directory and activate it on the Plugins tab. That’s it!
    Enjoy.

Viewing 15 replies - 31 through 45 (of 149 total)
  • BTW..
    ADHESIVE 1.4 is working Perfectly..

    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!

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

    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.

    Thread Starter ringmaster

    (@ringmaster)

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

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

    Thread Starter ringmaster

    (@ringmaster)

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

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

    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

    Thread Starter ringmaster

    (@ringmaster)

    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.

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

    @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).

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

    Thread Starter ringmaster

    (@ringmaster)

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

    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.

Viewing 15 replies - 31 through 45 (of 149 total)
  • The topic ‘Adhesive: A new sticky WP plugin’ is closed to new replies.