WordPress.org

Ready to get started?Download WordPress

Forums

The quickest way to highlight words in a post? (13 posts)

  1. Rob Sbaglia
    Member
    Posted 3 years ago #

    Hello,

    I was wondering if anyone could suggest a plugin to help us do this. We are teachers, and students often make spelling errors within their blog posts. As co-administrators of their blogs, we want to somehow highlight the words they've spelled incorrectly, as quickly as possible.

    At the moment, we are going into the dashboard, finding the post, changing the colour of each misspelled word, then updating the post. Could it be done faster?

    Cheers,
    Rob.

  2. fparamaru
    Member
    Posted 3 years ago #

    Hi Rob,
    I have created a very basic plugin to fit your needs :)

    If you want to take a look: WordPress Plugin to Highlight Words

    Very basic at the moment, but I can extend the functionallity.

    The plugin will, at the moment, look in post contents for the words and color them in the colors you have set in the backend. The Words are colored on rendering in the frontend, means that you dont need to change anything in the posts. That way if you need to make changes, they are made globally on ALL posts. :)

  3. Rob Sbaglia
    Member
    Posted 3 years ago #

    Hi,

    I'm speechless! You made a plugin for me???

    I was hoping to be able to highlight words from the front end somehow without having to go into the edit post. Will this plugin do this?

    Even if you never reply, thank you. Wow. Amazing.

  4. Rob Sbaglia
    Member
    Posted 3 years ago #

    Or could it highlight misspelled words automatically?

  5. fparamaru
    Member
    Posted 3 years ago #

    hi, rob
    no problem :D

    with the plugin, you cannot highlight words from the frontend (atm, but maybe a solution for this can be found), but you wont have to go to each post and edit it either.

    the plugin hightlights all words that are put into a field in the backend :)
    so, you have to go to the backend every once in a while and add misspelled words. but you dont have to do this for every post, because once a word is added to the word list, it will affect all posts that exist. so it is kind of automatic already. you don't have to highlight the words in the posts by hand

    to highlight misspelled words totally automatically, i would have to reverse the logic and create a whitelist of "correctly spelled words". all words that are NOT in that list, would be highlighted.
    but dont know if that makes much sense, as there are sooooo many words that would have to be checked

  6. fparamaru
    Member
    Posted 3 years ago #

    I uploaded a new version (v0.2, same link as above) In the new version, you are able to select words from the frontend.

    To highlight a word from the frontend, you have to be logged in as an administrator. You then select a word and a little popup will be created. there you can click on "highlight word" and then the selected word will be added to the highlight list and will be highlighted (you will see the changes after page refresh)

    to remove a word from the highlighted list, you still have to go to the backend though.

  7. Rob Sbaglia
    Member
    Posted 3 years ago #

    Wow, fantastic!

    I get this though...

    Warning: Invalid argument supplied for foreach() in /home/sbaglia/public_html/thenorthschool.com/wordpress-mu/wp-content/plugins/flosha-highlightwords/flosha-hightlightwords.php on line 151

  8. Rob Sbaglia
    Member
    Posted 3 years ago #

    It's starting to get really close to what we want. We're so grateful.

  9. fparamaru
    Member
    Posted 3 years ago #

    Hi, unfortunately i don't get that error here and can't check on your page, because authorization is required. :(

    However, i added some additional checking now, so if you use the new version (v0.3), the message should not display anymore :)

    And if there are any error messages or if you have some request, don't hesitate to ask. :)

  10. Rob Sbaglia
    Member
    Posted 3 years ago #

    Oh my God, I think you've done it!

    It's 4.35am here. I will write more when it is a better hour.

    I can't believe it! Thank you!

  11. Rob Sbaglia
    Member
    Posted 3 years ago #

    Hi,

    Thank you so much for doing this. I was so impressed with the experience I wrote a blog post about it: http://sbaglia.com/?p=239

    I had a question. Is it possible for this plugin to not highlight every word in the blog, but just the selected word? The problem is that if a child uses, for example, the word "aloud" instead of "allowed", the plugin highlights every instance of "aloud", even when it is appropriate to do so in a different post.

    Does anyone have any ideas?

    Thanks so much for your help. I'd like to write and thank you more formally. Could you email me at contact@thenorthschool.com?

    Cheers,
    Rob.

  12. fparamaru
    Member
    Posted 3 years ago #

    Hi Rob,

    you could select more than the actual words (select aloud and the next word, for example, they'd both be highlighted as a set of words)

    For example if the child wrote "We were aloud" you could select "were aloud" as a misspelled word to highlight. Then it would only be highlighted in this context.

    I know it is not exactly what you are looking for here, but maybe it is enough as a temporal solution to the problem.

    About highlighting only for a specific post: I think it could be possible, but until the end of the week I am off to holidays and can't work on it :( I'll try, if i find the time to do it! :)

    Oh, and thanks for writing a blog entry!! :)

  13. Muki Dam
    Member
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic