Word Cloud Problem Resolved
-
Well the task at hand was how do I create a word cloud for a website of mine.
Then having reviewed the plugin status for word – clouds it seemed limited to tag clouds and therefore I have implemented it using a simple iframe on my site please have a looksy:-
whatsmystory.just4books.co.uk
I think it looks ok , it works by extracting each word from the post(s) and then it creates a word cloud using googles javascripted word cloud.
From this I then created a tag cloud which links to a google adsense account.
I think this is the best way to implement a tag /word cloud on my site and because it uses a custom search it can used with an adsense account.
The offer is open for someone to come up with a plugin that will do this. The code uses three files:
extract.php uses fopen() to extract words
wc.js wc.css creates word cloud using javascript and adds links to your
google accountI will upload these files for anyone to use.
I did find that it didnt work on all servers – some dont allow fopen() and you get an error. The use of iframes solves this issue and allows you to use the word cloud with google custom search in a wordpress page.
here are my two examples:-
https://whatsmystory.just4books.co.uk
and
word clouds are usefull and interesting aswell
- The topic ‘Word Cloud Problem Resolved’ is closed to new replies.