forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: edgarg on October 25, 2005, 12:23:14 pm

Title: tagclouds
Post by: edgarg on October 25, 2005, 12:23:14 pm
Does anyone knows how to archieve something like this on CPG/?
f(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fen%2Fthumb%2Fa%2Fa7%2FFlickr_Tag_Cloud.gif%2F200px-Flickr_Tag_Cloud.gif&hash=e6c40a9cc539f3ac23e623bd1926751afa1976a6)

I have been looking around with no luck, it seems to me very strange thas has not been asked or discussed (probably I am not using the right name for it)

is the tipical tagcloud, (I dunno if there is another name for it) so you can show which tags (or keywords) are the most popular

cheers
Title: Re: tagclouds
Post by: Joachim Müller on October 25, 2005, 07:07:16 pm
coppermine doesn't come with a fully-flavoured referer check (at least the current stable cpg1.3.5 doesn't), however there are advanced stats recorded in cpg1.4.x (as an opt-in admin option). However, it currently only shows the referers by pic, not for the whole gallery. Coppermine is not a stats software, and for most users this feature would be overkill.
Title: Re: tagclouds
Post by: edgarg on October 30, 2005, 01:55:46 pm
I have found in here http://www.hitormiss.org/projects/weighted-categories

It is a mod for wordpress,

I do not know any php but could this be implemented in?

Quote
12-22-2004 12:00pm Update 1.2: I changed the code yet again to fix a problem with division by 0 errors.

   1. First, save this file as weighted_categories.php in your plug-ins directory.

   2. Activate the plug-in from Plugins Admin panel.

   3. In the file where you want to display the weighted list of categories (ex. archives.php), insert the following code:

      < ? $minfont = 10; $maxfont = 40; $fontunit = "pt"; $category_ids_to_exclude = "1,25"; weighted_categories($minfont, $maxfont, $fontunit, $category_ids_to_exclude); ?>

   4. Adjust the minimum and maximum font sizes of the weighted category list with $minfont and $maxfont. You can specify the measuring units of the fonts (ex. pt, px, em, etc) with $fontunit. If there are any categories you want to exclude from the list, put the category IDs in $category_ids_to_exclude.

   5. I added the following code to my CSS definitions to style the weighted list of categories:

#categories { border: 1px solid #ccc; background-color: #eee;
   padding: 10px; width: 500px; text-align: justify; }
#categories a { text-decoration: none; }

Title: Re: tagclouds
Post by: jbutler on December 04, 2005, 11:56:15 pm
I came a cross a little hack there to:

Quote
Using one of the other search pages I now have http://absoblogginlutely.net/gallery/search2.php which not only has 1 entry per word but also sizes the words ala flickr tags depending on the number of times it has been used. The code is messy and hacked but works.

http://forum.coppermine-gallery.net/index.php?topic=24023.msg110455#msg110455

It's not exactly what you're looking for, but it's close.  The ranking/sizing of the keywords/tags is based on their frequency, not their popularity.