WordPress.org

Ready to get started?Download WordPress

Forums

Adhesive plugin not working (34 posts)

  1. shadow
    Member
    Posted 9 years ago #

    Hi,
    Site: http://www.os42.com
    I have added the Adhesive plugin [from http://www.asymptomatic.net to my site. It has been activated and it shows a 'sticky' checkbox but it doesn't appear to be working as it should. I have tried to make one particular post a sticky but it just isn't happening.
    Running on 1.2 Mingus.
    Any one else had this problem or know what I may be doing wrong?
    Thanks for any advice suggested :)

  2. lnguyen
    Member
    Posted 9 years ago #

    I'm having the same problem.. I'm not sure where to look to find out what might be wrong.
    If I go to edit the post, the sticky flag is gone. If i check it, and save, it's there... but goes away as soon as I leave to another page.

  3. Anonymous
    Unregistered
    Posted 9 years ago #

    exact same problem here. looked through the code and could not quickly dicern what needs to be adjusted/changed. any ideas?

  4. Anonymous
    Unregistered
    Posted 9 years ago #

    Same here... has anyone found anything? I tried the latest version even.

  5. philpeeps
    Member
    Posted 9 years ago #

    same here....help!

  6. navaldis
    Member
    Posted 9 years ago #

    Hmm?

    Anyone seen this when using Adhesive. I must say I like the plugin very much but when I click on any category I get the following error message at the top of the blog....

    </style><div id='error'>
    Database error: [You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ON (Adhesive.Post_ID = .post_id) WHERE 1 AND (category_id = 1]
    SELECT *, ID as Post_ID FROM Adhesive LEFT JOIN ON (Adhesive.Post_ID = .post_id) WHERE 1 AND (category_id = 1);

    Pulled this out of the web page source as it was a bit cut off.

    Anyone seen this one before??

  7. navaldis
    Member
    Posted 9 years ago #

    Never mind.

    Upgrading the plug in to 1.6 alpha fixed my SQL issue.

  8. omar
    Member
    Posted 9 years ago #

    There appears to be no way to get this plug-in to work. No one I've spoken with has had any luck with it.

    If someone has some ideas, please post them. A lot of us would love such a plug-in provided it worked.

  9. NuclearMoose
    Member
    Posted 9 years ago #

    Has anyone contacted the plugin author?

  10. caipirina
    Member
    Posted 9 years ago #

    I am having trouble too. One blog, on WP 1.2.1 does show the sticky checkbox, but when i then go to view site, i get a big fat DB error on top (and i am the site admin and have all the database rights)

    on a second blog, which is 1.2.2 simply nothing happens, no sticky check box, no errors.

    I have tried to contact Owen, the author, via email and comment on his website, no reply yet. But I guess he is busy.

    I tried to look for alternatives, but the only one i found again directed me to Owen's website .. that must have been a different name he used initially for the plugin

  11. bens
    Member
    Posted 9 years ago #

    I too have attempted to install just about every version of sticky over WP 1.2.2, and none actually create the "Sticky"checkbox. There is no obvious location to send bug reports.

    My copy was installed by webapp-config under Gentoo.

  12. Vryce
    Member
    Posted 9 years ago #

    Same issue for me. I tried Adhesive 2.1 and 1.6 and 1.5 and none of them created the Sticky box.
    Oh well.. it would be nice. but then again.. In my own personal blog, how often do I really need something to be seen day after day?

  13. tavarish
    Member
    Posted 9 years ago #

    I use adhesive 2.1 beta on WP 1.5, found it easy to install and it work. So it does work on WP 1.5 at least.

    Will just need to style it now.

  14. RichH
    Member
    Posted 8 years ago #

    2.1 beta works great on one website for me.
    But on another, I can't get the Sticky box to appear.
    Running wp 1.5.1.1 on both.
    There's something going on in there that makes no sense to me.

  15. drivingmenuts
    Member
    Posted 8 years ago #

    It's not working in WP 1.5.1.2 either. I don't get the checkbox at all. It's being completely ignored by the add_filter routine.

    This is such a useful thing - is it possible to integrate it into the core code? I realize that may be asking a lot.

  16. bencostello
    Member
    Posted 8 years ago #

    The sticky box was not showing up for me either I am running 1.5.1.2 and here is what I did to fix it. Kind of simple, but in the admin panel under options->writing-> then the first question "when starting a post show:" I had it set to advanced controls. I changed it back to simple controls, then deactivated the plugin, then reactivated it. Then I went and wrote my post and clicked on the advanced controls tab and what do you know, there is the sticky box.
    Hope this helps someone.
    -Ben

  17. eyetag
    Member
    Posted 8 years ago #

    for me everything works fine, except on the archive pages, where i get

    window.document.getElementById(’post-2′).parentNode.className += ‘ adhesive_post’; welcome finally to eyetag’s weblog project [...]
    inside the sticky post. anyone knows about this problem or how to get around this? see also http://blog.eyetag.de

  18. drivingmenuts
    Member
    Posted 8 years ago #

    Someonce contacted the author regarding a different plugin that he had created. The resulting reply leads one to believe that he or she may have no further interest in plugin development for WordPress. I may be wrong, but that's the way it looks.

  19. RichH
    Member
    Posted 8 years ago #

    I was puzzled when Adhesive (2.1 beta on WP 1.5.1.2) worked so well at my website, but failed to give us a Sticky box on a website I set up for a good friend.

    Here's what I found...

    My friend's hosting service runs php as cgi... and in the adhesive_admin_footer() function there's a call to $_SERVER['SCRIPT_NAME'] which is fine on my site with php but not on hers with php-cgi. On her site you have to use $_SERVER['SCRIPT_URL'], and that won't work on my site.

    So I changed it to test both and it seems to work on both.

    I changed line 159 to:

    if((preg_match('|post.php|i', $_SERVER['SCRIPT_URL'])||preg_match('|post.php|i', $_SERVER['SCRIPT_NAME'])) && $_REQUEST['action'] == 'edit')

    I hope this helps anyone else with the problem. It's the old php as cgi catch!

  20. RichH
    Member
    Posted 8 years ago #

    eyetag, I was puzzled with the window.document.get... problem on archive pages, too, and the fix I used is this:

    On about line 105, you'll find:

    add_filter('the_content', 'adhesive_the_content', 15);

    Comment that out with a couple of slashes, and I think you'll get what you want:

    // add_filter('the_content', 'adhesive_the_content', 15);

    I suspect this is to format sticky content different than normal content, but since I don't care about that, I just turned off that part of the plugin.

  21. eyetag
    Member
    Posted 8 years ago #

    thanks, rich... this one worked for me also. but did you see that it´s not keeping formatings in other pages than index? any idea how to get a sticky post, that looks the same on every page? i wouldn´t mind also if it would be marked as 'sticky'...

  22. WhollyHis
    Member
    Posted 8 years ago #

    Rich, that worked for me also. Thank you.

  23. MikeD
    Member
    Posted 8 years ago #

    eyetag et-al.,

    Another (better?) way to fix this and retain formatting, is to make Archives and Categories get formatted the same way as the index page. Normally, Archives and Categories have most of the formatting stripped out (which is just confusing in my opinion).

    Go to archive.php (not archives.php) in your Theme, find where it says "the_excerpt" and change it to "the_content". This makes any formatting / images you have in the posts appear the same as they do on the index page.

    The knock-on effect of this is that Adhesive's filter then works as expected, which eliminates the window.document... message.

  24. clarke1866
    Member
    Posted 8 years ago #

    Check out the tutorial I wrote at MaxPower.ca: wordpress sticky.

    I think it might be applicable. Something like this will be in the codex soon too.

  25. MikeD
    Member
    Posted 8 years ago #

    Note that the Adhesive plugin assumes certain things about the assigment of document element id's. These are defined in the Theme files, not in WordPress itself, and they may or may not match Adhesive's assumptions for display of index, search, archive etc.

    For example, for the Kubrick Theme, I did the following:
    1. Change .parentNode.className to just .className in adhesive.php itself.

    2. In the Theme files archive.php and search.php, move the id from the <h3> tag to the <div> tag, so it becomes:
    <div class="post" id="post-<?php the_ID(); ?>">

    (Arguably, it might be better to move the id from the <div> tag to the <h2> or <h3> in index.php, page.php and single.php. Then adhesive.php can remain unchanged.)

  26. MikeD
    Member
    Posted 8 years ago #

    I should probably have mentioned that the above changes are only needed if you want to format your "sticky" posts differently to regular posts (I made mine look like Post-it notes with a push-pin).

    If you do want a distinct appearance, then you need to make some changes (to the Kubrick theme at least) like those above, or else you may get different formatting depending on whether you are viewing the main page, Search, Archives&Categories, etc.

  27. Ali-butt
    Member
    Posted 8 years ago #

    This has never worked for me and its the one plugin i have wanted for ages !..

    fortunately this post

    The sticky box was not showing up for me either I am running 1.5.1.2 and here is what I did to fix it. Kind of simple, but in the admin panel under options->writing-> then the first question "when starting a post show:" I had it set to advanced controls. I changed it back to simple controls, then deactivated the plugin, then reactivated it. Then I went and wrote my post and clicked on the advanced controls tab and what do you know, there is the sticky box.
    Hope this helps someone.
    -Ben

    fixed it :-)

    Thanks all especially bencostello ;)

  28. chasmyn
    Member
    Posted 8 years ago #

    I am running 1.5.1.2 and am not able to make it work at all. I see no checkbox, nothing. I'm using Safari on a MacOSX but I tried in Firefox and had the same result. Any ideas?

    I tried the above suggestion and it didn't work for me.

  29. bjohnson
    Member
    Posted 8 years ago #

    @eyetag (or whomever has had problems with the sticky code showing on achived pages)

    <?php the_excerpt(); ?> strips out html code, in this case it is stripping out the <script></script> tags found on line 171 of adhesive.php.

    My quick solution to this was to change <?php the_excerpt(); ?> to <?php the_content(); ?> I dont use excerpts anyways.

    Just FYI.

  30. princessmandy
    Member
    Posted 8 years ago #

    Rich H. is right. I did what he said to do by replacing line 159 with the code below now the sticky shows up. I'm using wordpress 1.5.2 Thanks Rich for the tip!

    if((preg_match('|post.php|i', $_SERVER['SCRIPT_URL'])||preg_match('|post.php|i', $_SERVER['SCRIPT_NAME'])) && $_REQUEST['action'] == 'edit')

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.