• [MOD] Tag cloud ( keyword & cat cloud in web2.0 style) 5 0 5 1
Currently:  

Poll

What do you think of this mod?

Excellent
Good
Fair
Poor
Bad

Author Topic: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)  (Read 228526 times)

0 Members and 1 Guest are viewing this topic.

Offline relu

  • Newbie
  • *
  • Posts: 44
    • View Profile
    • Pulsarmedia
Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
« Reply #105 on: December 22, 2008, 07:31:08 AM »
I had this mood for a long time and i change the server because high server load...Finaly i disable it and all is normal. I had a few installed mods and my think was not on this mood...Maybee i had a lots of customization and was something there but until now everything is ok. The problem was lots of ulclosed query maybee i'm rong i'm not an expert but after remove it all was back to normal.  Is great mood anyways but i;m affraid to set it again. Thanks for all work from 4 images team. Great script.


Offline alemam

  • Newbie
  • *
  • Posts: 18
  • games mofadlty
    • View Profile
    • العاب مفضلتي
Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
« Reply #106 on: January 12, 2009, 05:33:01 PM »
i m testink and i wiil back

Offline relu

  • Newbie
  • *
  • Posts: 44
    • View Profile
    • Pulsarmedia
Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
« Reply #107 on: January 12, 2009, 11:05:10 PM »
Please don't allow to much time for this because lately i have server load problems again and maybee the mood has just help to this load. Anyways after i remove it was ok fosr a time. I think the functions that count the images help this load but i don't want to say some stupid things. I will wait for a time and i think i will need the help to fix it on this forums. I think to reinstall it again and to get all moods step by step  to get that one with the problem.

Offline Mimiru

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
« Reply #108 on: January 12, 2009, 11:29:38 PM »
Please don't allow to much time for this because lately i have server load problems again and maybee the mood has just help to this load.
I don't see a reason why this mod may make a high load... Other pages get more queries and more resources.
But I have only few thousands in keywords table... But very intensive to resources is a color search mod ;)

Offline Shun

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
« Reply #109 on: February 19, 2009, 06:04:42 PM »
Hi

i hav a problem for this mod first i add dis mod it work good.  but after  for  turkish character problem  for example "ç ğ ş ü " i want to do it but  i couldn't and now i can't add  picture name turkish character and i can't search turkish character sentences how can ı do .?  sory for my bad english

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
« Reply #110 on: February 20, 2009, 01:03:11 AM »
Is this after you "tried" fix problem with turkish characters or after installing this mod? Can you confirm that without this mod you can search turkish characters?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Shun

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
« Reply #111 on: February 20, 2009, 09:46:17 PM »
First i set up this mod  i haven't got any problem for search turkisk  keywords. but in tag cloud keywords turkish character  like üniversite  doing  euniversite " ü --> eu "  after that saw this topic some people have same problem with me about character problem in tag cloud and some professional user's answer and i do it. after that all turkish keywords aren't search. and replay what i do. it couldn't.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
« Reply #112 on: February 21, 2009, 12:26:01 AM »
did you try this code?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Shun

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
« Reply #113 on: February 21, 2009, 08:19:20 AM »
Yes Vano  after i try this mode site is broken. and i  change search_until php a new  search_until.php but not.

Offline kandr

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
« Reply #114 on: February 21, 2009, 02:50:39 PM »
Цифры убрал, от мода по поиска по цветам, только кирилицу выводить совсем не хочет флеш облако. Пустые ссылки крутятся... Что подправить, подскажите...

Offline AntiNSA

  • Pre-Newbie
  • Posts: 8
    • View Profile
    • http://www.thecenterofthenet.com
Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
« Reply #115 on: February 28, 2009, 01:02:17 PM »
Is there any way to increase the number of keywords included in cloud? IT seems that its leaving out a lot of keywords,

Offline AntiNSA2

  • Hero Member
  • *****
  • Posts: 774
  • As long as I can finish my site before I die.
    • View Profile
    • http://www.thelifephotography.com
Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
« Reply #116 on: February 28, 2009, 03:54:55 PM »
I understand you can adjust it in the code from the commented section, however Im not sure the exact syntax...
As long as I can finish my site before I die.

Offline nfdieter

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
    • Unser kleiner Zoo
Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
« Reply #117 on: March 02, 2009, 07:52:22 PM »
Sehr Gutes Plugin,

eine Frage dazu:

Wie kann ich Tags mit Bindestrich (z.B. Lars-Ole) einfügen?
Oder z.B. kurze Sätze wie "gutes Foto" oder "Pony Momo", weil da wird der Tag ja wieder durch ein Leerzeichen getrennt....

Dieter

Offline kandr

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
« Reply #118 on: March 05, 2009, 06:28:17 PM »
Как поставить фильтр на категории? Если доступ к категории закрыт, то кликнув по тэгу из облака, все равно туда попадешь?

Offline kandr

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: [MOD] Tag cloud ( keyword & cat cloud in web2.0 style)
« Reply #119 on: March 06, 2009, 11:50:06 AM »
Why can not I make the tags to the names? Help please!

Code: [Select]
function get_tag_clouds() {

  global $site_db, $site_sess, $lang;
 
  $output = "";
 
  $max_to_show = 100; // max items to display
  $max_size = 300; // max font size in %
  $min_size = 70; // min font size in %
  $max_qty = 0;
  $min_qty = 0;
 
  $sql = "SELECT image_id, image_name
          FROM ".IMAGES_TABLE."
          ORDER BY RAND()";
 
  $result = $site_db->query($sql);
 
  while ($row = $site_db->fetch_array($result)) {
  $tags_hits[$row['image_id']] = $row['image_name'];
$tags[$row['image_id']] = $row['image_name'];
  }
 
  $max_qty = max(array_values($tags_hits));
  $min_qty = min(array_values($tags_hits));
 
  // find the range of values
  $spread = $max_qty - $min_qty;
  if ($spread == 0) { // we don't want to divide by zero
  $spread = 1;
  }
       
  // set the font-size increment
  $step = ($max_size - $min_size) / ($spread);
  $i = 0;
  foreach ($tags as $key => $value) {
  if ((check_permission("auth_viewcat", $key)) && $i < $max_to_show)  {
  // calculate font-size
  // find the $value in excess of $min_qty
  // multiply by the font-size increment ($size)
  // and add the $min_size set above
  $size = round($min_size + (($tags_hits[$key] - $min_qty) * $step));
$css_color =  'rgb('.mt_rand(64,128).', '.mt_rand(64,128).', '.mt_rand(0,255).')';
  $output .= '&nbsp;<a href="'.$site_sess->url(ROOT_PATH."details.php?image_id=".$key).'" >'.$value.'</a>&nbsp;';

$i++;
}
}

  return $output;
}