Boing!

wp-Define

Update: This has been updated and moved here

Get the feeds

51 Responses to “wp-Define”

  1. 1

    Just working on this plugin. I get this message on the manage>definitions page in the admin:

    Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/.milkyheater/poffutt/paulaoffutt.com/blog/wp-admin/definitions.php on line 28

    The page finishes loading and there are places to add in a word (RSS). I tried that but it didn’t appear in the list.

    So I made up a post and used the word there, got this error:

    Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/.milkyheater/poffutt/paulaoffutt.com/blog/wp-content/plugins/wp-Define.php on line 15

    What can I do to fix this?

    test post: http://paulaoffutt.com/blog/archives/2005/09/26/playing/

    September 27th, 2005 at 6:17 am
  2. 2

    Hm, Thats strange, make sure you have the table ‘wp_Definitions’ on your db! It seems that the plugin can’t read from that table!

    September 27th, 2005 at 6:25 am
  3. 3

    No, that table is not there. What do I need to do to add it? And was I supposed to have already added it?

    The definitions.php is in the wp-admin.
    The wp-Define is in the plugins folder.

    Does it make a difference that my wordpress is in paulaoffutt.com/blog/ vs paulaoffutt.com? I’ve had a couple of plugins where I’ve had to dig through and fix that.

    September 27th, 2005 at 6:53 am
  4. 4

    The plugin automaticaly creates the table when you activate the plugin! Try again to activate it and check if the table is created. Here’s the structure of that table in case you need to create it manualy

    CREATE TABLE wp_Definitions (
    id integer NOT NULL auto_increment,
    name varchar(50) NOT NULL default ‘’,
    definition varchar(255) NOT NULL default ‘’,
    UNIQUE KEY (id)
    );

    September 27th, 2005 at 7:08 am
  5. 5

    I tried the deactivate/activate route but nope.

    When I tried doing the ‘SQL Query’ route, I get a syntax error. So I input it by creating the table by line and left the Default blank.

    And it worked! Phew!

    I seem to use a lot of “alphabet soup” and this will cut down on the tedious acronym titles.

    September 27th, 2005 at 8:04 am
  6. 6

    Nice, am glad you got that working! Keep up bloging (:

    September 27th, 2005 at 12:59 pm
  7. 7

    […] Plugin Site: http://www.zerohex.org/?page_id=35 […]

    October 12th, 2005 at 3:48 am
  8. 8

    […] 一直在找能在blog里自定义链接的插件,今天在Sunbean的blog看到了介绍。该插件的主页在这里:http://www.zerohex.org/?page_id=35。 该插件的安装十分简单,现在试试看它能不能正常工作。 测试一下:wordpress […]

    October 20th, 2005 at 7:00 pm
  9. 9

    hi Marios Tziortzis,
    Remember me?:)
    i have one more advice for your wp-define:

    if the one “defined” word appear many time in one post ,then wp-define will show the same defined words all time, for example,if i define “LCD”,and my post appear “LCD” 10 times,and these 10 “LCD” words will all show define style;BUT,i wish just show the first “LCD”.

    for my poor PHP skill,i try replace ereg_replace to preg_replace,because preg_replace have this limited fuction,but no succeed…..

    so i wish uyou can tell how can do this?thank u.

    October 20th, 2005 at 11:35 pm
  10. 10

    ok i know how to…….

    change

    $intext= ereg_replace(”/$dtd->name/”,”definition”>”.($dtd->name).”“,$intext);

    to

    $intext= preg_replace(”/$dtd->name/”,”definition”>”.($dtd->name).”“,$intext,1);

    October 21st, 2005 at 12:33 am
  11. 11

    Hey, glad you work that out! It’s also nice to hear that people are actually using my stuff (:

    October 21st, 2005 at 1:16 am
  12. 12

    Hi.

    Found a little problem (Maybe it is one.)

    I use SH-Autolink (http://www.rockschtar.de/wp-plugin-sh-autolink/) and Dynamic Text Replace (http://www.coffee2code.com/wp-plugins/) plugins for WP and SH-Autolink replaces the word “WoW” for example with the link to the World of Warcraft website. But I defined “WoW” as “World of Warcraft MMORPG” in WP-Define. The link will be shown from SH-Autolink, but the definition doesn’t pop up.

    Any ideas? Same with Dynamic Text Replace by the way.

    Bye
    Michael

    November 18th, 2005 at 4:32 pm
  13. 13

    Hello Michael,
    The SH-Autolink plugin maybe replacing the string ‘wow’ with the link to wow’s website and this overwrites wp-define’s properties. You can’t use both of them at the same time!

    November 18th, 2005 at 4:46 pm
  14. 14

    Me again, made alittle enhancement for my site, maybe you could use it too.
    In my main CSS i added:

    a.define {
    border-bottom: 1px dashed #FFF;
    cursor: help;
    color: #FFF;
    }
    In wp-Define.php I changed:

    $intext= eregi_replace(” $dtd->name”,” definition”>”.strtoupper($dtd->name).”“,$intext);

    to

    $intext= eregi_replace(” $dtd->name”,” definition”>(”.$dtd->name.”)“,$intext);

    At the moment, I try to find out, how I supress the underline from my a:hover CSS definition when I mouseover a definition. Like it is here. ^^

    Bye Michael

    November 18th, 2005 at 4:54 pm
  15. 15

    Uah, me is a stupid boy for now.

    Correctly it must be:
    $intext= eregi_replace(” $dtd->name”,” definition”>”.strtoupper($dtd->name).”“,$intext);

    replaced with

    $intext= eregi_replace(” $dtd->name”,” definition”>(”.$dtd->name.”)“,$intext);

    ^^

    And well, maybe I find a way to get wp-Define work with SH-Autolink.

    November 18th, 2005 at 4:56 pm
  16. 16

    just add to your css:
    text-decoration: none;

    November 18th, 2005 at 4:57 pm
  17. 17

    Uargh, looks like WP eats up the correkt styledefs, because its HTML. Sorry for doublepost. (-_-)’

    This is the line I replaced the original with: Now with correct HTML char encoding.

    $intext= eregi_replace(” $dtd->name”,” <a class=”define” title=”$dtd->definition”>(”.$dtd->name.”)</a>”,$intext);

    Sorry for doubleposting again. (-_-)’

    November 18th, 2005 at 4:59 pm
  18. 18

    Looks like I found the reason. Now I can make my brain smoking for the solution to get SH-Autolink working together with WP-Define.

    SH-autolink uses the add_filter priority command.

    add_filter(’the_content’, ’shautolink’, 1);

    WP-define doesn’t

    add_filter(’the_content’, ‘redefine’);

    So, I have to change prioritys an work around the preg-replace that SH-Autolink uses. ^^ NARF and I’m a PHP newbie. I hate days like today.

    Bye
    Michael

    November 18th, 2005 at 5:15 pm
  19. 19

    Good luck then, may the Force be with you! (:

    November 18th, 2005 at 9:29 pm
  20. 20

    Hi, great plugin. But I have a question.
    Im using PreFormatted plugin -> http://vapourtrails.ca/wp-preformatted
    It saves formatted versions of posts & comments to the database so that they are not formatted with every page view.

    And when the plugin “PreFormatted” is activated the “wp-Define” dones not work.

    Is there a way to use both ot the plugins and they work good?

    Thanks

    January 25th, 2006 at 2:42 pm
  21. 21

    Hi,
    good plug in, but I have a problem actually a glitch… What happens is with any already created tag like were ever the word that is supposed to be defined is in the tag it still puts the abbr. So it kills the tiles and everything so is there a way for it to ignore already made tags ? Thanks…

    January 28th, 2006 at 5:56 am
  22. 22

    Hey Joe,
    Sorry but currently it doesnt support such features. A mod might do the trick but currently am out of ideas \:

    Hey Pepe,
    The plugin you are using most probably ignore my plugin since my script looks for unformatted text to replace. I don’t know exactly the functionality of your PreFormatted plugin but from what you’ve set thats what i understood.

    January 28th, 2006 at 2:42 pm
  23. 23

    O.K then any hacks or is there a way for it to ignore the tag only ? Thanks.

    January 29th, 2006 at 5:01 am
  24. 24

    Hi its perfect plugin. Bu if a write a bulgarian word in cyrillic the difinitions are not executed. Noting shown…

    Im using this encoding:

    Some help…

    February 2nd, 2006 at 6:00 pm
  25. 25

    The encoding:

    charset=windows-1251″

    February 2nd, 2006 at 8:24 pm
  26. 26

    Hi I use another plugin called : FancyTooltips and when I put the mouse over the defined word (e.g. PHP) it shows a link called null how can I get rid of that ? Thanks…

    February 3rd, 2006 at 4:12 am
  27. 27

    It didn’t work with WP 2 :( Can you fix it?

    February 18th, 2006 at 6:01 pm
  28. 28

    Fixed it ! My moded version uses <abbr> now not <a href rel=”nofollow”> and it works well. That may be better then <a href rel=”nofollow”> but any way, good plugin…

    February 20th, 2006 at 12:19 am
  29. 29

    Joe: yeah indeed <abbr> is a better method.

    allmoney.ws: am currently moving to wp 2.0.1 When everyhting is set up i will have the wp2 version of the plugin ready

    Greg: i really dont know why its not working on your charset. try using utf though. that might help

    February 26th, 2006 at 3:27 am
  30. 30

    concerning this neat plugin for WordPress 2.0.x, can i just add my email here and request an update when completed?!

    jamjammo *at* g m a i l . c o m

    thanks.
    and it looks like an amazing plugin by all the above comments!
    keep up the good work!

    March 5th, 2006 at 3:20 am
  31. 31

    Is would be cool and good if the plugin looked for what do define with case too like :
    AIM alone and in caps would have the added tag but
    aim would not because if the defining word is in another word then it gets the abbr tag and that causes problems. But that may be just me.

    March 11th, 2006 at 2:02 am
  32. 32

    Hi there,
    I changed the tag abbr to acronym and it wors for me withIE now too.
    Thanks for that nice plugin.
    Karl-Heinz

    June 17th, 2006 at 9:52 am
  33. 33

    Nice resource, very interesting reading… Good luck with your site in the future!!! May be you like my sites?

    August 18th, 2006 at 3:44 am
  34. 34

    Good site !!! Interesting content!!! What do you think about my sites?

    August 19th, 2006 at 7:35 am
  35. 35

    Fantastic website… Good resources for learning, easy to follow… Keep up the good work!!! Make your opinion about my resources :)

    August 19th, 2006 at 1:41 pm
  36. 36

    Gruezi, Super Site betreibt Ihr hier!!! Das kann sich wirklich sehen lassen…

    August 27th, 2006 at 1:51 pm
  37. 37

    I just like to say that your website is absoulutely brilliant!!! Do you think my sites too brilliant ;) ?

    August 27th, 2006 at 4:10 pm
  38. 38

    Fantastic website… Good resources for learning, easy to follow… Keep up the good work!!! Make your opinion about my resources :)

    September 8th, 2006 at 6:43 am
  39. 39

    Good site - you’re a pretty good writer….. Very creative…

    October 6th, 2006 at 7:06 am
  40. 40

    Gruezi, Super Site betreibt Ihr hier!!! Das kann sich wirklich sehen lassen…

    October 12th, 2006 at 2:11 am
  41. 41

    Very creative… May be you make new design for my sites?

    October 21st, 2006 at 10:07 am
  42. 42

    I will recomend this site… Excelent work!!! May I use your palette at my site?

    October 21st, 2006 at 12:06 pm
  43. 43

    Where did you find this guestbook by the way??? I’d like to have one like this on one of my sites!!!

    October 21st, 2006 at 8:08 pm
  44. 44

    This site truly amazing!!! I think my sites too. :)

    October 23rd, 2006 at 10:09 am
  45. 45

    Hi!!! Excellent resource you’ve got here!!! Will definately be back!!!

    October 24th, 2006 at 4:07 am
  46. 46

    Great and cool website !!! Keep it up… Best regards… Visit my sites :)

    October 24th, 2006 at 8:08 am
  47. 47

    Hi there!!! Signing your site… not bad at all!!! Simply and great!!! I wanna know your opinion about my :)

    October 24th, 2006 at 10:07 am
  48. 48

    Hi!!! Very nice design, by the way!!! I think … What do you think about my?

    October 24th, 2006 at 12:09 pm
  49. 49

    Good job, here and there!!! Keep it up, I like your guestbook!!! Please add your comments at my :)

    October 25th, 2006 at 8:12 am
  50. 50

    I suggest you take a look at the signup script…

    November 16th, 2006 at 10:30 am
  51. 51

    Nice plugin but after adding it to Wordpres 2.1 and clicking on the Definitions table under the Mangement sectin I receive the message “hmm..you are NOT an Admin!” on a white page.

    February 14th, 2007 at 12:32 pm

Leave a Reply