The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Yahoo's context search Y!Q for your blog (12 posts)

  1. brizer
    Posted 11 years ago #

    I developed a new plug-in for my blog, which enables Yahoo’s context search Y!Q on my blog. For further information check out y blog



  2. alejandrito
    Posted 11 years ago #

    What does it do exactly? :S

  3. Guymauve
    Posted 11 years ago #

    Hi - I followed your instructions and the plug-in removed all breaks, etc. from my posts. Any suggestions? I'm using Word Press 1.2.2

  4. brizer
    Posted 11 years ago #

    It turns off the wpautop, try to comment out this line: remove_filter('the_content', 'wpautop');

    Maybe it'll work for you

  5. Guymauve
    Posted 11 years ago #

    sorry should i put that in the index.php or layout.css? (newbie - not sure what "comment out" means)

  6. Guymauve
    Posted 11 years ago #

    got it sorted, but i don't think it works with a dark background very well.

  7. brizer
    Posted 11 years ago #

    That's too bad....well I hope Yahoo is going to improve the search script..

  8. jcwinnie
    Posted 11 years ago #

    I tried the hack that brizer suggested. It dinna work for me!
    I might use it if it were more well-behaved! As is, it does too much damage to the format, as noted by Guymauve.
    I wonder what hack Guymauve used, to make it usable?

  9. jcwinnie
    Posted 11 years ago #

    Ach, I was too hasty. When I properly "commented out"
    remove_filter('the_content', 'wpautop');
    then it seemed to work.

  10. jcwinnie
    Posted 11 years ago #

    Well, sorta worked. It still did funky things to the layout, i.e., the content was now centered rather than left-aligned.

    So Y!Q stay in the bit bucket for now.

  11. plainsman
    Posted 11 years ago #

    I like the plugin ... got it to work and (I thought) fixed the centering problem, too. But, it still does the centering thing - but only on the post where it is applied. Interesting.

    Could this be something in the yahoo javascript that is accessed for the image? javascript/yq.js on line 21?

    I posted about it in your blog, brizer.


    Thanks. It is a nice little plugin that can add some fun functionality - especially for an education related site.

    Great job.

  12. bgallery
    Posted 11 years ago #

    I am trying to add the WP plug-in for Y!Q but I am only getting the error message:

    We weren't able to extract any words from your context selection.....

    Following the instructions from Zawondy's site I have added the following to index.php -

    <script language="javascript" type="text/javascript"
    Then, where you want the link:

    <form class="yq" action="http://yq.search.yahoo.com/search"
    <input type="hidden" name="context" value="<$MTEntryTitle$>" />
    <div class="yqact">
    <input class="yqbt" type="submit"
    value="Possibly Related Stuff"
    onclick="return activateYQ(this)" />


    here is an example -- http://thebakergalleries.com/hesaid/

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.