Tag cloud from keywords - Page 3 Tag cloud from keywords - Page 3
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Tag cloud from keywords

Started by Aditya Mooley, December 20, 2005, 07:55:12 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Aditya Mooley

First check the standard keyword list using the original search.inc.php file. If you can see keyword list on search page then we can go ahead and debug the modifications for tag cloud.
--- "Its Nice 2 BE Important but its more Important 2 Be NICE" ---
Follow Coppermine on Twitter

locomotion1


Aditya Mooley

Restore the original search.inc.php and then go to search page and check whether the keywords are shown below the search form. If not then there is some other problem.

I hope you have already assigned keywords to photos.
--- "Its Nice 2 BE Important but its more Important 2 Be NICE" ---
Follow Coppermine on Twitter

locomotion1

sorry for not following this
i replaced the orifinal file but i still dont have any keywords in the search menu

Aditya Mooley

There's an option in config to enable clickable keyword search. See to it that you have done this.
--- "Its Nice 2 BE Important but its more Important 2 Be NICE" ---
Follow Coppermine on Twitter

lesman01

I can't seem to get this to work. I did manage to get 1 word to get larger, but I still have many duplicates, and some words where I know there are multiple instances are not showing larger.

One theory is that the words that are displayed are the result of searching description and title, and not just keyword. This may or may not have anything to do with it. I still have a lot of tagging to do once I know this works. I've tried to edit or delete duplicates but cannot.

My original keyword.inc works fine. Any help would be appreciated.

http://www.elesman.com/photos/


Aditya Mooley

I will check these files with my local setup and let you know if any modifications are needed to it.
--- "Its Nice 2 BE Important but its more Important 2 Be NICE" ---
Follow Coppermine on Twitter

lesman01

thanks very much. I have made some progress and think my problem is with the keywords that I have previously entered. I can edit them and it seems to fix most of them.

Additional question: what are the rules for the word sizes and styles: ie: 10 results=12px;25 results=13px; 50 results=20px bold; etc....and where are they defined?

I plan on creating a mod so i can add this tag cloud to my index page. will let you know...might be over my head...no pun intended...

lesman01

I was able to cobble together a hack that adds the keyword cloud to the index.

Simple add this few lines of code to the anycontent.php file just before the endtable();


if ($CONFIG['clickable_keyword_search'] != 0) {
    include('include/keyword.inc.php');
}


need to make some html tweeks but it seems to work fine.


Aditya Mooley

The font size is decided by following line


$em = ($keyword_count[$keywords_array[$i]] < 6) ? 12 : (12 + (int)(($keyword_count[$keywords_array[$i]] - 5) / 5)) * 2;


The max font size is limited to 24, so if the value of $em exceeds this value, it is changed to 24 in the line following.
--- "Its Nice 2 BE Important but its more Important 2 Be NICE" ---
Follow Coppermine on Twitter

DaBe

Hello I new here..

I have also the problem with duplicate words!

I want display the word larger, when it has more results, and not mutiple..

What I make false?

please help..

and sry for my english =)

thx

Aditya Mooley

Those who had this problem of duplicates edited their keywords and everything worked fine thereafter.
--- "Its Nice 2 BE Important but its more Important 2 Be NICE" ---
Follow Coppermine on Twitter

jayanthsharma


paquets

Where can we find the search file for the tag clouds?
Thanks in advance!

Aditya Mooley

Didn't you read the first post?
--- "Its Nice 2 BE Important but its more Important 2 Be NICE" ---
Follow Coppermine on Twitter

will

Is there a way of show popular search results in a cloud, like the keyword cloud

Thanks ;D

Aditya Mooley

Nopes. Coppermine doesn't save user search terms anywhere. So there is no way to show them as a cloud.
--- "Its Nice 2 BE Important but its more Important 2 Be NICE" ---
Follow Coppermine on Twitter

andyleery

Hi, I have also treid to install you hack but it didnt make a change.
http://www.bollybilder.de/search.php

Also its not so cool when some words are displayed twice or more. Hope you can help me, thx.

Aditya Mooley

Quote from: Aditya Mooley on April 21, 2007, 06:55:52 AM
Those who had this problem of duplicates edited their keywords and everything worked fine thereafter.
--- "Its Nice 2 BE Important but its more Important 2 Be NICE" ---
Follow Coppermine on Twitter

andyleery

Ok but why are my links looking als the same? There are no clowds, they look just the same.