View Full Version : Tag Clouds
A weighted categories list already exits, but with the introduction of tags to version 1.6 i was wondering if anyone could edit that addon to make it one that could be used for tags.
http://www.pixelpost.org/v1/index.php?x=downloads&details=67
Dennis
04-14-2007, 07:13 AM
Why, the tags are weighted and full support is included in 1.6.
blinking8s
04-14-2007, 09:27 AM
Why, the tags are weighted and full support is included in 1.6.
yes, this is the correct way...something we did not have to have in the past. its best to redo the photoblog category systems to more general categories and use tag for specific things
I'm not sure I understand. The addon I mentioned above, takes the categories and lists them with categories with more photos displayed in bigger font and categories with less photos in smaller font. Is it possible to do so with tags in 1.6?
Dennis
04-14-2007, 06:46 PM
Yes, look at the documentation for the tag. For an example look at my page (see sig).
ullmannn
04-14-2007, 08:40 PM
I have been using Warchives - version 0.1 (for tag clouding) and Geos_Show_Category - version : 30 $ (Stay in the same category when browsing images) with great success.
My one frustration is that the tag cloud feature built into 1.6 only works with Page-By-Page-Archive turned on and using the tages, which I haven't been able to work with geos_show_category. I really like the idea of having tags built in, but I don't want to give up the ability to stay within a category when viewing pictures.
Any work around ideas?
Noah
There shouldnt be a problem with using my addon and this new feature with tags. They should work together :)
macroni
04-14-2007, 09:44 PM
I just implemented the weighted tags into my website, but on top of the taglist, is always the word: "TAGS". I want to delete that word, but i can't find the file to edit. In what file can i do that?
Thanks in advance.
Dkozikowski
04-14-2007, 09:54 PM
You can edit that word "TAGS" in your language file located in the language directory.
lang-english.php would be the one to edit if you use the english language.
macroni
04-14-2007, 09:58 PM
That did it!
Thank you very much!
ymichel
04-30-2007, 06:55 PM
Hi,
I ran into a problem where the old warchives-plugin didn't work anymore. Don't know why but though I was not happy with the coding at all I rewrote it similar to the TAG_* code:
------------------------------------------------------------------------------------------------------------------
<?php
$addon_name = "weighted archive generator";
$addon_version = "0.2";
$addon_description = "takes the categories and makes the font larger the more posts are in that category.<p>the tag is: <PIXELPOST_WARCHIVES>.";
$default_language_abr = strtolower($PP_supp_lang[$cfgrow['langfile']][0]);
$cats_output = '<div id="cat_cloud">';
$queryr = "SELECT COUNT(*) AS max
FROM {$pixelpost_db_prefix}pixelpost AS p, {$pixelpost_db_prefix}catassoc AS c
WHERE p.id = c.image_id AND p.datetime<='$cdate'
GROUP BY cat_id
ORDER BY max DESC
LIMIT 1";
$cat_max = mysql_query($queryr);
$cat_max = mysql_fetch_row($cat_max);
$cat_max = $cat_max[0];
if ($language_abr == $default_language_abr)
$queryr = "SELECT ROUND(COUNT(*)/${cat_max},1) AS rank, c.id AS cat_id, c.name AS cat_name, COUNT(*) as cnt
FROM {$pixelpost_db_prefix}pixelpost AS p, {$pixelpost_db_prefix}catassoc AS ca, {$pixelpost_db_prefix}categories c
WHERE p.id = ca.image_id AND ca.cat_id = c.id AND p.datetime<='$cdate'
GROUP BY ca.cat_id
ORDER BY ca.cat_id";
else
$queryr = "SELECT ROUND(COUNT(*)/${cat_max},1) AS rank, c.id AS cat_id, c.alt_name AS cat_name, COUNT(*) as cnt
FROM {$pixelpost_db_prefix}pixelpost AS p, {$pixelpost_db_prefix}catassoc AS ca, {$pixelpost_db_prefix}categories c
WHERE p.id = ca.image_id AND ca.cat_id = c.id AND p.datetime<='$cdate'
GROUP BY ca.cat_id
ORDER BY ca.cat_id";
$cats = mysql_query($queryr);
while(list($rank, $cat_id, $cat_name, $cnt) = mysql_fetch_array($cats))
{
$cats_output .= '<a href="index.php?x=browse&category='.$cat_id.'" class="tags'.$rank[0].$rank[2].'">'.$cat_name.'</a> ';
}
$cats_output .= '</div>';
$tpl = str_replace("<PIXELPOST_WARCHIVES>",$cats_output,$tpl); //thumbnails in this page
?>
------------------------------------------------------------------------------------------------------------------
Cheers,
Yann
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.