WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. brizer
    Member
    Posted 9 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

    http://blog.linsin.de/index.php/archives/2005/02/12/yq-plug-in/

    Brizer
    http://blog.linsin.de

  2. alejandrito
    Member
    Posted 9 years ago #

    What does it do exactly? :S

  3. Guymauve
    Member
    Posted 9 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
    Member
    Posted 9 years ago #

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

    Maybe it'll work for you

  5. Guymauve
    Member
    Posted 9 years ago #

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

  6. Guymauve
    Member
    Posted 9 years ago #

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

  7. brizer
    Member
    Posted 9 years ago #

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

  8. jcwinnie
    Member
    Posted 9 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
    Member
    Posted 9 years ago #

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

  10. jcwinnie
    Member
    Posted 9 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
    Member
    Posted 9 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.

    http://blog.linsin.de/index.php/archives/2005/02/12/yq-plug-in/

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

    Great job.

  12. bgallery
    Member
    Posted 8 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"
    src="http://yq.search.yahoo.com/javascript/yq.js"></script>
    Then, where you want the link:

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

    http://jeremy.zawodny.com/blog/archives/004139.html

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.