|
Joomla Tags Support Forum :: General Question |
|
|
|
|
|
Subject :Different Tag Sizes in Tag Clowds..
2010-02-14 10:54:14
|
|
|
| alex2001 |
|
| Enthusiast |
 |
Joined: 2010-02-14 17:48:19
Posts: 10
Location: |
|
|
|
|
|
<p>I just started use your great component, but I still can't understand how to make different tag sizes in tag clowds (most read, most popular) depends of popularity/readness.</p>
<p>As I see at left side of your site (Most Read Tags) and right (Most Popular Tags) it's possible.. but I always get the same sized tags.</p>
<p>Maybe I have to do some settings etc?</p>
<p>Thank you in advance!</p> |
IP Logged
|
|
|
|
|
|
|
Subject :Re:Different Tag Sizes in Tag Clowds..
2010-02-16 01:25:26
|
|
|
| alex2001 |
|
| Enthusiast |
 |
Joined: 2010-02-14 17:48:19
Posts: 10
Location: |
|
|
|
|
|
<p><br />any help or advice?..</p>
<p>please..</p>
<p> </p>
<p> </p>
<p> </p> |
IP Logged
|
|
|
|
|
|
|
Subject :Re:Different Tag Sizes in Tag Clowds..
2010-02-18 00:02:07
|
|
|
| neeraj123 |
|
| Intern |
 |
Joined: 2010-02-18 05:30:00
Posts: 5
Location: |
|
|
|
|
|
<p>v<strong>er. 2.0</strong> – Released October 3rd, 2007<br /> <strong>Changes:</strong></p>
<ul>
<li>Added code necessary to enable coloring tag links by weight.</li>
<li>Changed from using Wordpress-native tag cloud function to internal widget function to generate tag cloud (required for color).</li>
<li>Removed “array” format. I’m not sure it would be of any use running in a widget, but if you need it, the call to add it to the dropdown can be found commented out at line 217 in tag-cloud.php.</li>
<li>Added brief help text to the right of each field in the form.</li>
</ul>
<p><strong>ver. 1.0</strong> – Initial Release, September 22, 2007<br /> Initial release of widget. Relied on the built-in Wordpress tag cloud function.</p>
<p><img class="left" src="http://reciprocity.be/wp-content/uploads/2008/02/screenshot-1.png" alt="CTC 4.0 config screenshot" /></p>
<p><strong>Installation:</strong><br /> Upload the tag_cloud folder to your wp-content/plugins directory, and activate via the Plugins admin panel.</p>
<p><strong>Upgrades:</strong><br /> I recommend using the automated plugin upgrade features in WordPress, but to upgrrade manually, disable plugin in Admin panel. Delete tag-cloud.php, upload the new tag_cloud folder, and enable in admin panel.</p>
<p><strong>Use:</strong><br /> <strong>Widget Defaults:</strong></p>
<table border="0">
<tbody>
<tr>
<td>Title</td>
<td>Tags</td>
</tr>
<tr>
<td>Number of Tags to Show</td>
<td>all</td>
</tr>
<tr>
<td>Minimum number of posts for a tag or category to show in the cloud</td>
<td>0</td>
</tr>
<tr>
<td>Maximum number of posts for a tag or category to show in the cloud</td>
<td>100</td>
</tr>
<tr>
<td>Number of Tags to Display</td>
<td>45</td>
</tr>
<tr>
<td>Font Display Unit</td>
<td>Points</td>
</tr>
<tr>
<td>Smallest Font Size</td>
<td>8</td>
</tr>
<tr>
<td>Largest Font Size</td>
<td>22</td>
</tr>
<tr>
<td>Min. Tag Color</td>
<td>none (see note below)</td>
</tr>
<tr>
<td>Max. Tag Color</td>
<td>none (see note below)</td>
</tr>
<tr>
<td>Cloud Format</td>
<td>Flat</td>
</tr>
<tr>
<td>Categories in cloud?</td>
<td>No</td>
</tr>
<tr>
<td>Show empty?</td>
<td>No</td>
</tr>
<tr>
<td>Display Post Count?</td>
<td>No</td>
</tr>
<tr>
<td>Sort By</td>
<td>Name</td>
</tr>
<tr>
<td>Sort Order</td>
<td>Ascending</td>
</tr>
</tbody>
</table>
<p>After installing/upgrading, enable the widget via the Plugins tab. This will give you a new button in the Widgets control panel labeled “CTC” (Configurable Tag Cloud was too long for the button). Drag it into your sidebar list, and configure the options to your liking. If you want to keep the defaults for the widget, just leave everything as-is.</p>
<p>The widget gives you the capability to modify almost all of the settings of the wp_tag_cloud() template tag. At this point, you can do everything but exclude tags from the cloud display. I’m still working on this, but at this point, all the options most users would want are represented.</p>
<p><strong>Notes about limiting the tags that are shown in the cloud (New in 5.0):</strong> You can now choose to limit the tags shown in the cloud by the number of posts they are attached to. For example, say you have one or two tags that are attached to 20 posts, but the rest only have one or two posts. Previously, these tags would be large, with the rest fairly small. Now, you can tell the plugin that you want to exclude tags that have more than 10 posts, and those tags will be excluded from the cloud, with the rest following a (hopefully) smoother gradient in both color and size. This also works for tags with fewer than a specified number of posts. The defaults as defined in the plugin are a maximum of 100 and a minimum of 0.</p>
<p><strong>Notes about color (new in 2.0, updated in 4.0):</strong> If left blank, the tag cloud link colors will default to your assigned CSS color from the stylesheet. If you use one color (either min or max, doesn’t matter) only, your tag cloud links will be displayed using that color.</p>
<p><strong>Notes about styling the tag cloud (new in 2.5, updated in 4.0):</strong> The div surrounding the tag cloud has it’s class set as “ctc”. You should be able to modify any property of this class via CSS except for font-size (this is set with inline styles in the links themselves). Tag link color can now be controlled via the stylesheet by leaving both the min and max colors blank in the configuration and setting a color in your stylesheet.</p>
<p><strong>Notes about non-widget use (new in 3.0):</strong> Just like the widget, this function replaces the built-in wp_tag_cloud function with options for color, font size, etc. The function uses the standard query string format for arguments.</p>
<p>To use, simply insert the function call into your template file (most likely sidebar.php, but you can put it wherever you like), and adjust the options accordingly.</p>
<p><strong>Example</strong></p>
<div class="dp-highlighter">
<div class="bar">
<div class="tools"><a onclick="dp.sh.Toolbar.Command('ViewSource',this);return false;" href="http://reciprocity.be/ctc/#">view plain</a><a onclick="dp.sh.Toolbar.Command('CopyToClipboard',this);return false;" href="http://reciprocity.be/ctc/#">copy to clipboard</a><a onclick="dp.sh.Toolbar.Command('PrintSource',this);return false;" href="http://reciprocity.be/ctc/#">print</a><a onclick="dp.sh.Toolbar.Command('About',this);return false;" href="http://reciprocity.be/ctc/#">?</a></div>
</div>
<ol class="dp-c">
<li class="alt"><span><span><?php ctc(</span><span class="string">'smallest=10&largest=28&unit=px&mincolor=#c0c0c0&maxcolor=#000000&showcount=yes'</span><span>); ?> </span></span></li>
</ol></div>
<pre class="php" style="display: none;"><?php ctc('smallest=10&largest=28&unit=px&mincolor=#c0c0c0&maxcolor=#000000&showcount=yes'); ?>
</pre>
<p>This would show a cloud with font sizes from 10 to 28 pixels, a color gradient of #c0c0c0 to #000000, and post counts after each tag.</p>
<p><strong>Notes about array use (new in 3.1):</strong> I’m still undecided on why you would want to use an array, but it was requested, so it has been added. You call the function via the template tag just as you would for non-array use, but assigning the output to a variable. I’ll give you an example.</p>
<div class="dp-highlighter">
<div class="bar">
<div class="tools"><a onclick="dp.sh.Toolbar.Command('ViewSource',this);return false;" href="http://reciprocity.be/ctc/#">view plain</a><a onclick="dp.sh.Toolbar.Command('CopyToClipboard',this);return false;" href="http://reciprocity.be/ctc/#">copy to clipboard</a><a onclick="dp.sh.Toolbar.Command('PrintSource',this);return false;" href="http://reciprocity.be/ctc/#">print</a><a onclick="dp.sh.Toolbar.Command('About',this);return false;" href="http://reciprocity.be/ctc/#">?</a></div>
</div>
<ol class="dp-c">
<li class="alt"><span><span><?php </span></span></li>
<li><span><span class="vars">$tags</span><span> = ctc(</span><span class="string">'format=array&smallest=10&largest=28&unit=px&mincolor=#c0c0c0&;maxcolor=#000000&showcount=yes'</span><span>); </span></span></li>
<li class="alt"><span><span class="keyword">foreach</span><span> (</span><span class="vars">$tags</span><span> </span><span class="keyword">as</span><span> </span><span class="vars">$tag</span><span>) { </span></span></li>
<li><span><span class="func">echo</span><span> </span><span class="vars">$tag</span><span>.</span><span class="string">"\n"</span><span> </span></span></li>
<li class="alt"><span>} </span></li>
<li><span>?> </span></li>
</ol></div>
<pre class="php" style="display: none;"><?php
$tags = ctc('format=array&smallest=10&largest=28&unit=px&mincolor=#c0c0c0&;maxcolor=#000000&showcount=yes');
foreach ($tags as $tag) {
echo $tag."\n"
}
?>
</pre>
<p>This would show a cloud just like the first example, but using an array to output it to the page.</p>
<p><img class="size-full wp-image-128" title="CTC Ver. 4.5 Options Screen" src="http://reciprocity.be/wp-content/uploads/2008/04/screenshot-2.png" alt="CTC Ver. 4.5 Options Screen" width="479" height="323" /></p>
<p><strong>Parameters for template tag:</strong></p>
<table border="0">
<tbody>
<tr>
<td class="head">PARAMETER</td>
<td class="head">FUNCTION</td>
<td class="head">DEFAULT VALUE</td>
</tr>
<tr>
<td>smallest=#</td>
<td>Smallest font size to use</td>
<td>8</td>
</tr>
<tr>
<td>largest=#</td>
<td>Largest font size to use</td>
<td>22</td>
</tr>
<tr>
<td>minnum=#</td>
<td>Minimum number of posts for a tag or category to show in the cloud</td>
<td>0</td>
</tr>
<tr>
<td>maxnum=#</td>
<td>Maximum number of posts for a tag or category to show in the cloud</td>
<td>100</td>
</tr>
<tr>
<td>unit=pt|em|%|px</td>
<td>Unit for font size</td>
<td>pt</td>
</tr>
<tr>
<td>mincolor=#xxxxxx</td>
<td>Low color for gradient</td>
<td>none</td>
</tr>
<tr>
<td>maxcolor=#xxxxxx</td>
<td>High color for gradient</td>
<td>none</td>
</tr>
<tr>
<td>format=flat|list|array|drop</td>
<td>Format for tag cloud</td>
<td>flat</td>
</tr>
<tr>
<td>number=#</td>
<td>Number of tags to show</td>
<td>45</td>
</tr>
<tr>
<td>orderby=name|count|rand</td>
<td>Sort field for tags</td>
<td>name</td>
</tr>
<tr>
<td>order=ASC|DESC</td>
<td>Order of cloud</td>
<td>ASC</td>
</tr>
<tr>
<td>showcount=yes|no</td>
<td>Show post count after tags</td>
<td>no</td>
</tr>
<tr>
<td>showcats=yes|no</td>
<td>Show categories in cloud</td>
<td>no</td>
</tr>
<tr>
<td>empty=yes|no</td>
<td>Show empty categories</td>
<td>no</td>
</tr>
</tbody>
</table> |
IP Logged
|
Mercedes Benz E550 AC Compressor
|
|
|
|
|
|
|
Subject :Re:Re:Different Tag Sizes in Tag Clowds..
2010-02-25 06:26:37
|
|
|
| alex2001 |
|
| Enthusiast |
 |
Joined: 2010-02-14 17:48:19
Posts: 10
Location: |
|
|
|
|
|
<p>hmmm... is it regarding this Joomla component?..</p>
<p>i noticed phrases about WordPress..</p> |
IP Logged
|
|
|
|
|
|
|
Subject :Re:Different Tag Sizes in Tag Clowds..
2010-03-05 02:55:14
|
|
|
| joomlatags |
|
| Master |
 |
Joined: 2009-02-15 12:36:41
Posts: 581
Location: |
|
|
|
|
|
<p>The above tags is for wordpress.</p>
<p>In fact, at the beginning, all tags have the same size.</p>
<p>Perhaps, you can click some special tags, then in "Most Read Tags", some of them will become bigger.</p>
<p>Our tag system leaves all tag cloud to the algorithm.</p>
<p>For example, "most read tags" will only show those tags the user cares(click) most.</p>
<p>"Most Popular tags" will show those tags having a lot of articles.</p>
<p>"Random tags" can create the tag cloud at the beginning.</p>
<p>"Custom tags" can show tag cloud just as you want how to show tags to the user.</p>
<p>To edit the tag cloud's size and color, please use tags "Template Manager" to edit the Css files.</p> |
IP Logged
|
|
Last Edited On: 2010-03-05 02:55:14 By joomlatags for the Reason |
|
|
|
|
|
|
Subject :Re:Re:Different Tag Sizes in Tag Clowds..
2010-08-30 04:36:31
|
|
|
| eroesch |
|
| Apprentice |
 |
Joined: 2010-08-30 10:32:06
Posts: 1
Location: |
|
|
|
|
|
<p>Is there any way to check on the current size of the tags -- that does not rely on front-end visuals? For a moment, I thought that the weight of terms was changing in the Admin "term manager", but I am not sure any more. (I am in prod so site is not live yet)</p>
<p>What are the algorithms like? (I am mostly using "read most")</p>
<p>Thanks for the great tool! Very useful!</p>
<p>Etienne</p> |
IP Logged
|
|
|
|
|
|
|
Subject :Re:Different Tag Sizes in Tag Clowds..
2010-08-30 10:11:52
|
|
|
| firstuser |
|
| Intern |
 |
Joined: 2010-08-29 18:19:09
Posts: 8
Location: |
|
|
|
|
|
|
<p>mille grazie erosch! this is agreat answer. Sure thing</p> |
IP Logged
|
|
|
|
|