Author Topic: pages tag clouds  (Read 10752 times)

Availor

  • Guest
pages tag clouds
« 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]

Offline Ruud

  • Posts: 3660
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: pages tag clouds
« Reply #1 on: June 25, 2008, 10:26:02 AM »

Availor

  • Guest
Re: pages tag clouds
« Reply #2 on: June 25, 2008, 11:50:40 AM »
Thanks  :-D

doc

  • Guest
Re: pages tag clouds
« Reply #3 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

Availor

  • Guest
Re: pages tag clouds
« Reply #4 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?

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: pages tag clouds
« Reply #5 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
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

Availor

  • Guest
Re: pages tag clouds
« Reply #6 on: June 25, 2008, 09:15:14 PM »
I will... what is a "Working Page" module?

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: pages tag clouds
« Reply #7 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
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

Offline thorn

  • Posts: 980
  • Gender: Male
    • Projects
Re: pages tag clouds
« Reply #8 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.
« Last Edit: June 29, 2008, 05:13:33 PM by thorn »

Offline bupaje

  • Posts: 592
Re: pages tag clouds
« Reply #9 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.


Availor

  • Guest
Re: pages tag clouds
« Reply #10 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

Offline thorn

  • Posts: 980
  • Gender: Male
    • Projects
Re: pages tag clouds
« Reply #11 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.

Availor

  • Guest
Re: pages tag clouds
« Reply #12 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.

Offline thorn

  • Posts: 980
  • Gender: Male
    • Projects
Re: pages tag clouds
« Reply #13 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.

Offline bupaje

  • Posts: 592
Re: pages tag clouds
« Reply #14 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.

Availor

  • Guest
Re: pages tag clouds
« Reply #15 on: June 27, 2008, 10:42:38 AM »

Offline thorn

  • Posts: 980
  • Gender: Male
    • Projects
Re: pages tag clouds
« Reply #16 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.

Availor

  • Guest
Re: pages tag clouds
« Reply #17 on: June 27, 2008, 08:06:14 PM »
Thank you for the module, it is a valuble add to the website funcionality

amitmalka

  • Guest
Re: pages tag clouds
« Reply #18 on: July 05, 2009, 06:07:53 PM »
i have this problem with hebrew send me something that help me

Offline thorn

  • Posts: 980
  • Gender: Male
    • Projects
Re: pages tag clouds
« Reply #19 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.