MyBB Community Forums

Full Version: [UPDATED][SEO] Simple TagCloud Plugin for myBB v 0.9a - Tag Cloud (beta)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Any problems PM me, it is important.
(2009-09-14, 05:46 AM)Watt Wrote: [ -> ]Any problems PM me, it is important.

Thanks, Great Work n Nice Plugin,
But, 0.5 plugin
$size tag too big and too small till can't view at IE,
$size tag too big and small till disappear at Firebox,

if no $size tags by frequence, as before version 0.4 plugin,
random size will be perfect

Suggest : random colorful tags will be full perfect........

Watt and Friends, Take Care
Turkish Plugins
Download
[attachment=15360]
Turkish By bomfile
Zip password:www.mybbdestek.com
http://forum.mybbdestek.com/Konu-basit-e...dece-md-de
Thanks.
(2009-09-13, 12:44 PM)Watt Wrote: [ -> ]Thread one query

Index and forumdispaly - one tag - one query (if you got 300 tags per page 300 querys !! and I don't know what to do to make it beter :< )

God! Is a lot of queries.

I hope you optimize it on the next releases Smile
(2009-09-13, 06:11 AM)Watt Wrote: [ -> ]Try newest verion, if Im not wrong it should work.
(Tnx Tom for help)

I have got a question, have somebody got better idea how to size tags
I would have 2 settings (stcp_min_size, stcp_max_size) instead of just the one (stcp_size). Then find the minimum and maximum occurrences of a tag ($min_amount, $max_amount). From there you can do a simple linear scaling:
$min_size = intval($mybb->settings['stcp_min_size']);
if ($min_size < 1) { $min_size = 1; }
$max_size = intval($mybb->settings['stcp_max_size']);
if ($max_size < $min_size) { $max_size = $min_size; }
$size_diff = $max_size - $min_size;
if ( $size_diff == 0 ) {
  $scale = 0;
} else {
  $count_diff = $max_amount - $min_amount;
  if ( $count_diff > 0 ) {
    $scale = $size_diff / $count_diff;
  } else { $scale = 0; }
}
Now for each tag:
$wielkosc = intval($exploded_tag[1]);
$size = intval($min_size + $scale * ($wielkosc - $min_amount));
if ( $size < $min_size ) { $size = $min_size;}
if ( $size > $max_size ) { $size = $max_size;} // should never happen

(2009-09-13, 12:44 PM)Watt Wrote: [ -> ]Thread one query

Index and forumdispaly - one tag - one query (if you got 300 tags per page 300 querys !! and I don't know what to do to make it beter :< )

$db->query('SELECT * FROM ' . TABLE_PREFIX . "stcp WHERE tag_name IN ({$tag_list})";
$tag_list should be a comma-separated list of tags used (each tag wrapped in quotes).
Hi
Persian/Farsi language (Fully Persian):
[attachment=15374]

Persian/Farsi by Pars in www.MybbIran.com

Persian Information for Simple TagCloud Plugin in MybbIran Forum:
http://community.mybbiran.com/thread-171-post-434.html

Thanks
(2009-09-14, 05:49 PM)laie_techie Wrote: [ -> ]
(2009-09-13, 06:11 AM)Watt Wrote: [ -> ]Try newest verion, if Im not wrong it should work.
(Tnx Tom for help)

I have got a question, have somebody got better idea how to size tags
I would have 2 settings (stcp_min_size, stcp_max_size) instead of just the one (stcp_size)..
Or you could just have the one setting, have it max_size|min_size, then explode it;
$size = explode("|", $size_string_from_database);
HI
some of my users after use new version were unpleasant and meet problem.
after click to "Add tags too all threads" they see white page without action. other members see chaos in their forums. and other problems....
Thanks
I'll make new version in weekend - problem - have you got screen of it?
Maybe too many queryes or they don;t activate plugin first ?
It often happens that guests viewing this tag:
/tags.php?tag=jscripts&amp;page=thx.js&amp;ver=1400
It is javascipt file for thankyou plugin. How comes it that?