• [MOD] Keyword Tag Cloud (on custom page) 4 0 5 1
Currently:  

Author Topic: [MOD] Keyword Tag Cloud (on custom page)  (Read 55254 times)

0 Members and 1 Guest are viewing this topic.

Offline beach-baer

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: [MOD] Keyword Tag Cloud (on custom page)
« Reply #15 on: April 15, 2008, 10:12:18 PM »
... nur mit deinem Versteck in der search.php ist die Tag Cloud nicht leicht zu finden ... ;)

... oder du includest die keyword_cloud.php in die index.php ...
... und verwendest den html-Code in deiner home.html ...
So hatte ich es auch erst probiert, aber irgendwie habe ich das mit dem Include in die search.php nicht auf die Reihe bekommen (Tippfehler, Brett vorm Kopf 8O), daher habe ich den Code und ein paar weitere Abfragen in die search.php mit eingebunden. Hauptsache es läuft. :lol:

... warum sollten wir ... ?

Urheberrechtsverletzung ?!  8)

Gruß Kay

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] Keyword Tag Cloud (on custom page)
« Reply #16 on: April 15, 2008, 10:42:37 PM »
Urheberrechtsverletzung ?!

4images  Lizenzbestimmungen :
... Der Nutzer von 4images kann auf eigenes Risiko die Software verändern und/oder für den eigenen Gebrauch anpassen. ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline beach-baer

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: [MOD] Keyword Tag Cloud (on custom page)
« Reply #17 on: April 15, 2008, 10:52:02 PM »
Moin Moin Mawenzi,

OK, ich war mir nicht ganz sicher. :)

Gruß Kay

Offline sanko86

  • Sr. Member
  • ****
  • Posts: 310
    • View Profile
    • Elemegim
Re: [MOD] Keyword Tag Cloud (on custom page)
« Reply #18 on: April 30, 2008, 10:32:06 AM »
(user_logininfo.html , user_loginform.html)
Code: [Select]
&raquo;<a href="{url_keyword_cloud}">{lang_200_keyword_cloud}</a>
fix

Web site:http://www.anlatiyoruz.com
Hayat zorluklarla doludur.Ama en zoru insanýn insana düþmanlýðýdýr.

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] Keyword Tag Cloud (on custom page)
« Reply #19 on: April 30, 2008, 01:00:18 PM »
@hasanok86

... you are absolutly right ... thanks for your fix info ...  :D
... the first post is now updated ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline sanko86

  • Sr. Member
  • ****
  • Posts: 310
    • View Profile
    • Elemegim
Re: [MOD] Keyword Tag Cloud (on custom page)
« Reply #20 on: April 30, 2008, 01:05:09 PM »
ı little english
ı am from turkey
;)
Web site:http://www.anlatiyoruz.com
Hayat zorluklarla doludur.Ama en zoru insanýn insana düþmanlýðýdýr.

Offline weissinger

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: [MOD] Keyword Tag Cloud (on custom page)
« Reply #21 on: May 30, 2009, 07:30:16 PM »
Hallo!

ich habe gerade den [MOD] Tag cloud ( keyword & cat cloud in web2.0 style) und auch diese Erweiterung     
[MOD] Keyword Tag Cloud (on custom page) installiert.

Mir ist aufgefallen, dass die in den Klammern angeführten Zahlen nicht mit der Anzahl der Bilder übereinstimmen.

Sollten die Treffer nicht gleich sein?

Bei dem Beispiel auf deiner Seite (http://klick.kl.funpic.de/keyword_cloud.php) sind mir folgende Bilder aufgefallen.
fussball [5] - tatsächlich werden [2] Bilder angezeigt
zoo [3] - tatsächlich werden [4] Bilder angezeigt
hof [6] - tatsächlich werden [8] Bilder angezeigt


Ergänzung: Es dürfte auch mit der Rechtevergabe, ob jemand ein Bild einsehen darf oder nicht, zusammenhängen.. 

Gruß weissi
« Last Edit: May 30, 2009, 08:10:47 PM by weissinger »

Offline Sun

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
Re: [MOD] Keyword Tag Cloud (on custom page)
« Reply #22 on: July 22, 2009, 11:17:55 PM »
Thank you for this mod.

A little error: in step2 tags </td></tr> was closed two times

    "<tr><td class="head1" height="20" valign="middle" align="left" >{lang_keyword_cloud}</td></tr>
    </td></tr></table>"
Tatyana.
I use 4images v.1.7.6
You can answer me in English and Russian languages.
Sorry, my English is not very good.

Offline problema

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: [MOD] Keyword Tag Cloud (on custom page)
« Reply #23 on: September 11, 2009, 01:53:32 AM »
edit: includes/functions. php


find
Code: [Select]
function un_htmlspecialchars($text) {

after
Code: [Select]
function get_keyword() {
global $site_db, $lang, $site_sess, $mode;
$output = "";

  $sql = "SELECT i.word_id, i.word_text, COUNT(c.word_id) AS quantity
          FROM ".WORDLIST_TABLE." i
          LEFT JOIN ".WORDMATCH_TABLE." c ON i.word_id = c.word_id
          WHERE keys_match > 0
          GROUP BY i.word_text
          ORDER BY  RAND()
          LIMIT 200";

  $result = $site_db->query($sql);
  while ($row = $site_db->fetch_array($result)) {
    $tags[$row['word_text']] = $row['quantity'];
  }
        $max_size = 500; // max font size in %
        $min_size = 100; // min font size in %

        $max_qty = max(array_values($tags));
        $min_qty = min(array_values($tags));

        $spread = $max_qty - $min_qty;
        if ($spread == 0) {
            $spread = 1;
        }

        $step = ($max_size - $min_size) / ($spread);

        foreach ($tags as $key => $value) {
                $size = round($min_size + (($value - $min_qty) * $step));
                $output .= ' <b><a href="'.$site_sess->url(ROOT_PATH."search.php?search_keywords=".$key.((!empty($mode)) ? "&amp;mode=".$mode : "")).'" style="font-size:'.$size.'%;color:rgb('.mt_rand(0, 255).', '.mt_rand(0, 255).', '.mt_rand(0, 255).');font-family:Verdana, Arial, Helvetica, sans-serif;" title="'.$value.' '.$lang['tagged_with'].' '.$key.'">'.$key.'</b> ['.$value.']</a>  ';
        }
  return $output;
}



find
Code: [Select]
"image_id" => $image_row['image_id'],
after
Code: [Select]
"tags"  => get_keyword(),


and
edit: home.  html

insert:
Code: [Select]
{tags}
thx.  .  . 

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] Keyword Tag Cloud (on custom page)
« Reply #24 on: September 11, 2009, 10:31:35 AM »
@problema

... first ... hello and welcome to 4images forum ...
... your version of tag cloud is for every page, not only for custom page, and is so the same as the version of ch€ri{Bi}² ...
... right here : http://www.4homepages.de/forum/index.php?topic=16812.0 ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Sun

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
Re: [MOD] Keyword Tag Cloud (on custom page)
« Reply #25 on: October 12, 2009, 04:11:54 PM »
mawenzi, in this mod you forgot a little step from mod of ch€ri{Bi}²  :

"last step , open main.php in your language dir and add at the end:
Code: [Select]
$lang['tagged_with'] = "image(s) with tag: ";
"
Tatyana.
I use 4images v.1.7.6
You can answer me in English and Russian languages.
Sorry, my English is not very good.

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] Keyword Tag Cloud (on custom page)
« Reply #26 on: October 12, 2009, 04:56:48 PM »
@ sun,

... thanks for your hint, but with [MOD] Keyword Tag Cloud (on custom page) we don't use a lang_tag "{tagged_with}" in the template ...
... so I can't forget it ... ;)
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Sun

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
Re: [MOD] Keyword Tag Cloud (on custom page)
« Reply #27 on: October 12, 2009, 05:01:23 PM »
mawenzi , in you keyword_cloud.php $lang['tagged_with'] used here:

Code: [Select]
$output .= ' <b><a href="'.$site_sess->url(ROOT_PATH."search.php?search_keywords=".$key.((!empty($mode)) ? "&amp;mode=".$mode : "")).'" style="font-size:'.$size.'%;color:rgb('.mt_rand(0, 255).', '.mt_rand(0, 255).', '.mt_rand(0, 255).');font-family:Verdana, Arial, Helvetica, sans-serif;" title="'.$value.' '.$lang['tagged_with'].' '.$key.'">'.$key.'</b> ['.$value.']</a>  ';

 :lol:
Tatyana.
I use 4images v.1.7.6
You can answer me in English and Russian languages.
Sorry, my English is not very good.

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] Keyword Tag Cloud (on custom page)
« Reply #28 on: October 12, 2009, 05:19:43 PM »
sun,

... you are right ... sorry ...  :oops:
... I've updated my first post ...
... so thanks again sun for your hint ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Jan-Lukas

  • Addicted member
  • ******
  • Posts: 1.289
    • View Profile
    • Discover the New World of Kindersurprise
Re: [MOD] Keyword Tag Cloud (on custom page)
« Reply #29 on: December 27, 2011, 09:40:11 AM »
Solltet ihr bei einer Neuinstallation diese Fehlermeldung bekommen, liegt es wahrscheinlich daran das noch kein Suchwort in der Datenbank steht.
So war es jedenfalls bei mir - Migrate keywords im Admin ausgeführt und Fehler ist weg!

Klappt also auch in der 1.7.10

Code: [Select]
Warning: array_values() [function.array-values]: The argument should be an array in /is/htdocs/wp1186757_MZ0O7VPUFQ/www/4images/keyword_cloud.php on line 65

Warning: Wrong parameter count for max() in /is/htdocs/wp1186757_MZ0O7VPUFQ/www/4images/keyword_cloud.php on line 65

Warning: array_values() [function.array-values]: The argument should be an array in /is/htdocs/wp1186757_MZ0O7VPUFQ/www/4images/keyword_cloud.php on line 66

Warning: Wrong parameter count for min() in /is/htdocs/wp1186757_MZ0O7VPUFQ/www/4images/keyword_cloud.php on line 66

Warning: Invalid argument supplied for foreach() in /is/htdocs/wp1186757_MZ0O7VPUFQ/www/4images/keyword_cloud.php on line 75

LG
Danke Harald