Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: tagclouds  (Read 3789 times)

0 Members and 1 Guest are viewing this topic.

edgarg

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 25
    • Oblonga disrupcion visual
tagclouds
« on: October 25, 2005, 12:23:14 pm »

Does anyone knows how to archieve something like this on CPG/?
f(http://upload.wikimedia.org/wikipedia/en/thumb/a/a7/Flickr_Tag_Cloud.gif/200px-Flickr_Tag_Cloud.gif)

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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: tagclouds
« Reply #1 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.
Logged

edgarg

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 25
    • Oblonga disrupcion visual
Re: tagclouds
« Reply #2 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; }

Logged

jbutler

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
    • ScreenSite
Re: tagclouds
« Reply #3 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.

Pages: [1]   Go Up
 

Page created in 0.03 seconds with 20 queries.