Hi, I have two things I am trying to do.
First I want to ad urls to my tag words on the side. To do this it looks like I need to modify qpservices_amplify_propernouns.
All I want to do for now is make it so qpservices returns the data as a hyperlink that directs to:
http://en.wikipedia.org/wiki/?name (or whatever the name of the tag is)
The 2nd thing I don't understand how to do is make a blacklist of words I do not want to use as propornouns, I realize these words are picked by open amplify so I may have to settle for the word being removed and not replaced which is fine.
If you can point me in the right direction please let me know, im willing do do the digging to get the code I want to work, I just need to know where to dig.
Comments
Comment #1
mbutcher commentedFor the first one, the function you will want to look at is qpservices_amplify_propernouns(). You can just edit the $out variable, which formats the output of that block.
For the second one, there is currently no way of blacklisting. One way of doing this would be to change this:
To something like this:
Comment #2
GSG-9 commentedThank you for the example, Im playing around with the code above trying to make it workable.
Right now $word_text does not = $ok_words if $stopwords are present in the array/$word_text. Javascript is my weakest area so this may take me a while to debug.
But it will be a good experience. I will post the code here if I get it to function, im sure everyone gets back some text they don't want (for me I get back editDelete on almost every page even if it is not used.)