WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Droplets & Snippets => Topic started by: Availor on June 25, 2008, 09:55:34 AM

Title: pages tag clouds
Post by: Availor on June 25, 2008, 09:55:34 AM
I found a piece of code in my WebsiteBaker folder. I haven't found a forum topic regarding this and I don't remember where I downloaded this piece of code.

Anyway - tag clouds created from pages keywords is very useful. I've made a tutorial on how to apply it.
http://www.websitebakerden.com/pages/posts/creating-pages-keywords-tag-clouds35.php

This is the code file - dont know who made it.

[gelöscht durch Administrator]
Title: Re: pages tag clouds
Post by: Ruud on June 25, 2008, 10:26:02 AM
This is the code file - dont know who made it.

It was made by Ron (rsmith): https://forum.WebsiteBaker.org/index.php?action=profile;u=2132 (https://forum.WebsiteBaker.org/index.php?action=profile;u=2132)
The snippet and testpage is here: http://slink2.no-ip.info/pages/website-baker-info/sample-pages/keyword-tags-test.php (http://slink2.no-ip.info/pages/website-baker-info/sample-pages/keyword-tags-test.php)

Ruud
Title: Re: pages tag clouds
Post by: Availor on June 25, 2008, 11:50:40 AM
Thanks  :-D
Title: Re: pages tag clouds
Post by: doc on June 25, 2008, 12:30:58 PM
Hello,

in the German section, thorn posted another tag cloud admin module you may want to test.
https://forum.WebsiteBaker.org/index.php/topic,10133.0.html

Regards Christian
Title: Re: pages tag clouds
Post by: Availor on June 25, 2008, 08:51:41 PM
Dankashein (hope it's pronounced correctly).

I used google translator but it's very vague. As I understand it it can generate tag clouds from all data?
Title: Re: pages tag clouds
Post by: Stefek on June 25, 2008, 09:10:45 PM
Please ask Thorn to open a Thread for this in english.

He also created the "Working Page" Module, so I know he is speeking english as well as german.
 :wink:


Best regards,
Stefek
Title: Re: pages tag clouds
Post by: Availor on June 25, 2008, 09:15:14 PM
I will... what is a "Working Page" module?
Title: Re: pages tag clouds
Post by: Stefek on June 25, 2008, 09:23:06 PM
... what is a "Working Page" module?
WYSIWYG with history and working copy
https://forum.WebsiteBaker.org/index.php/topic,9471.0.html

"Working Copy" not "Working Page".. sry.

Best,
Stefek
Title: Re: pages tag clouds
Post by: thorn on June 26, 2008, 12:22:43 AM
Hello,

I used google translator but it's very vague. As I understand it it can generate tag clouds from all data?

It will generate tagclouds from search, news-postings, wysiwyg-pages, page-names (most visited pages). This evening i have added tagclouds for keywords and description, too.  :wink:
Will try to publish this module in the english forum this weekend...

If you want to get a first impession, just install the module and add this piece of code into a code-section
Code: [Select]
if(file_exists(WB_PATH.'/modules/searchtools/tagcloud/tagcloud.php')) {
  require_once(WB_PATH.'/modules/searchtools/tagcloud/tagcloud.php');
  $tags = fetch_tagcloud('dist', 100);
  display_tagcloud($tags, 'Most searched words');
}
Use the search a few times, and call the code-page.

To have a wysiwyg-tagcloud use
Code: [Select]
if(file_exists(WB_PATH.'/modules/searchtools/tagcloud/tagcloud.php')) {
  require_once(WB_PATH.'/modules/searchtools/tagcloud/tagcloud.php');
  $tags = fetch_tagcloud('dist', 100, 0, 'st_module_wysiwyg');
  display_tagcloud($tags, 'Most used words in WYSIWYG-pages');
}
(You will find many stop words in the cloud (e.g. 'the'), because there a no english stop words, yet - see config.)

thorn.
Title: Re: pages tag clouds
Post by: bupaje on June 26, 2008, 06:59:32 AM
Ooo. Excellent. I have been playing with tag clouds.

Can I suggest something for future consideration? I have been trying to generate an image tag cloud from rss feeds -so that I can show a visual cloud of book covers, and one of game graphics from my Amazon and BigFishGames stores.

I have tested some small clusters of on my sites ('baby cloud' created manually) and have seen that it dramatically improves the amount of people clicking. The same would likely work very well for galleries, icons, fonts or other concepts that could be represented visually.

Title: Re: pages tag clouds
Post by: Availor on June 26, 2008, 12:37:07 PM
Thanks for the module  :-D How can I change the coding to Utf-8? http://www.videoxone.com/demo/baker1/pages/code.php It shows gibberish when I user Hebrew language
Title: Re: pages tag clouds
Post by: thorn on June 26, 2008, 07:46:31 PM
Hello,

How can I change the coding to Utf-8? http://www.videoxone.com/demo/baker1/pages/code.php It shows gibberish when I user Hebrew language
Not
this module uses utf-8 natively.

Entering 'testöäü' i get  'testöäü' (this is utf-8 displayed wrongly as latin1). Very strange.

please can you try the script from
http://help.WebsiteBaker.org/pages/en/still-questions.php (below "Raising the right question" -> Note: ... text file
It isn't adapted for use with wb2.7 - but nevertheless it will display the relevant informations needed.

thorn.
Title: Re: pages tag clouds
Post by: Availor on June 26, 2008, 09:32:54 PM
http://www.videoxone.com/demo/baker1/pages/text-code.php This is the result. If you notice the header of the script is fine only the tags itself are gibberish. If I write in Hebrew it displays the characters correctly so I assume the problem is in the code of the module.
Title: Re: pages tag clouds
Post by: thorn on June 26, 2008, 10:40:16 PM
Hello,

that looks all fine...

please put
Code: [Select]
if(file_exists(WB_PATH.'/modules/searchtools/tagcloud/tagcloud.php')) {
  require_once(WB_PATH.'/modules/searchtools/tagcloud/tagcloud.php');
  $tags = fetch_tagcloud('dist', 100);
var_dump($tags);
  display_tagcloud($tags, 'Most searched words');
}

into your code-sections.

thorn.
Title: Re: pages tag clouds
Post by: bupaje on June 26, 2008, 11:11:58 PM
I don't know anything about this but I read on the net that it is not enough to put the page encoding on the page. The data has to have been saved as utf-8 format also. I think in database utilities like phpadmin you can see what encoding the tables have? I also wonder if in the WB control panel under settings/advanced you had charset set to utf-8, or just in the template you did that.

Again, I don't know much so ignore me if this is off mark.
Title: Re: pages tag clouds
Post by: Availor on June 27, 2008, 10:42:38 AM
http://www.videoxone.com/demo/baker1/pages/code.php doesn't seem to work  :?
Title: Re: pages tag clouds
Post by: thorn on June 27, 2008, 06:57:57 PM
Hello,

after some more research, i found a serious bug which produced wrongly converted tags.
It's fixed now.

Thanks, Availor.

thorn.
Title: Re: pages tag clouds
Post by: Availor on June 27, 2008, 08:06:14 PM
Thank you for the module, it is a valuble add to the website funcionality
Title: Re: pages tag clouds
Post by: amitmalka on July 05, 2009, 06:07:53 PM
i have this problem with hebrew send me something that help me
Title: Re: pages tag clouds
Post by: thorn on July 05, 2009, 10:51:04 PM
Hello,

can you supply the URL of your site? Would help a lot to see what's going on.
In general it's a good idea to try this https://forum.WebsiteBaker.org/index.php/topic,10163.msg59753.html#msg59753 too.


thorn.