4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Releases & Support) => Topic started by: mawenzi on October 23, 2007, 11:58:19 PM

Title: [MOD] Keyword Tag Cloud (on custom page)
Post by: mawenzi on October 23, 2007, 11:58:19 PM
(http://img517.imageshack.us/img517/1378/deu8yc.gif)  - Vorwort :
(http://img517.imageshack.us/img517/7821/eng9tu.gif)  - Preface :

(http://img517.imageshack.us/img517/1378/deu8yc.gif) - Demo zum MOD :
(http://img517.imageshack.us/img517/7821/eng9tu.gif) - MOD-Demo :

(http://img517.imageshack.us/img517/1378/deu8yc.gif) / (http://img517.imageshack.us/img517/7821/eng9tu.gif) - Version :

(http://img517.imageshack.us/img517/1378/deu8yc.gif) - Dateien die zu ändern sind :
(http://img517.imageshack.us/img517/7821/eng9tu.gif) - Files to be changed :
(http://img517.imageshack.us/img517/1378/deu8yc.gif) - und je nach Linkeinbindung in deine Templates
(http://img517.imageshack.us/img517/7821/eng9tu.gif) - and for links in you templates e.g.

(http://img517.imageshack.us/img517/1378/deu8yc.gif) - Neue Dateien :
(http://img517.imageshack.us/img517/7821/eng9tu.gif) - New files :

(http://img517.imageshack.us/img517/1378/deu8yc.gif) - Installation :
WICHTIG: Mache vor der Installation von den zu ändernden Dateien ein Backup.  Nur zur eigenen Sicherheit und nicht dass keiner das Selbstverständliche nochmals erwähnt hätte ... .
(http://img517.imageshack.us/img517/7821/eng9tu.gif) - Installation :
IMPORTANT: Make a backup of your original files ... .


(http://img517.imageshack.us/img517/1378/deu8yc.gif) - 1. Schritt
lege im Root-Verzeichnis die neue Datei keyword_cloud.php mit dem folgenden Inhalt an :
(http://img517.imageshack.us/img517/7821/eng9tu.gif) - 1. Step
in the root directory make a new file keyword_cloud.php with following content :
[/list]
Code: [Select]
<?php 
/************************************************************************** 
 *                                                                        * 
 *    4images - A Web Based Image Gallery Management System               * 
 *    ----------------------------------------------------------------    * 
 *                                                                        * 
 *             File: keyword_cloud.php                                    *
 *            Autor: mawenzi ... thanks to ch€ri{Bi}² ...                 *
 *        Copyright: (C) 2002 Jan Sorgalla                                *
 *            Email: jan@4homepages.de                                    * 
 *              Web: http://www.4homepages.de                             * 
 *    Scriptversion: 1.7.x                                                *
 *************************************************************************/

$main_template 'keyword_cloud';

define('GET_CACHES'1); 
define('ROOT_PATH''./'); 
define('GET_USER_ONLINE'1); 
include(
ROOT_PATH.'global.php'); 
require(
ROOT_PATH.'includes/sessions.php'); 

if (isset(
$HTTP_GET_VARS['template']) || isset($HTTP_POST_VARS['template'])) {
    
$template = (isset($HTTP_POST_VARS['template'])) ? basename(stripslashes($HTTP_POST_VARS['template'])) : basename(stripslashes($HTTP_GET_VARS['template']));
  if (!
file_exists(TEMPLATE_PATH."/".$template.".".$site_template->template_extension)) {
    
$template "";
  }
  else {
    
$main_template $template;
  }
}
else {
  
$template "";
}
include(
ROOT_PATH.'includes/page_header.php');

//--- Language Tags -----------------------------------
$keyword_cloud_descr_eng "<b>FAQ :</b> Keyword Cloud ?<br>The Keyword Cloud is a visual representation of keywords used on my website. Keywords having higher density are showed in a larger fonts. At a glance you will able to see what and where my most important keywords are.";
$keyword_cloud_descr_deu "<b>FAQ :</b> Suchwort Wolke ?<br>Die Suchwort Wolke ist eine grafische Darstellung der Suchwörter, die auf meiner Website verwendet werden. Suchwörter mit höherer Anzahl werden mit einer größeren Schrift gezeigt. Auf einem Blick bist du in der Lage zu sehen, wo und was meine wichtigsten Schlüsselwörter sind.";
$lang_keyword_cloud "Suchwort Wolke - Keyword Cloud";

//--- Clickstream -------------------------------------
$clickstream "<span class=\"clickstream\"><a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">".$lang['home']."</a>".$config['category_separator']."".$lang_keyword_cloud."</span>";

//--- Keyword Cloud -----------------------------------
function get_keyword_cloud() {
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(0255).', '.mt_rand(0255).', '.mt_rand(0255).');font-family:Verdana, Arial, Helvetica, sans-serif;" title="'.$value.' '.$lang['tagged_with'].' '.$key.'">'.$key.'</b> ['.$value.']</a>  ';
        }
  return 
$output;
}
//--- Ende Keyword Cloud ------------------------------


//--- Print Out ---------------------------------------
$site_template->register_vars(array(
  
"clickstream" => $clickstream,
  
"keyword_cloud_descr_eng" => $keyword_cloud_descr_eng,
  
"keyword_cloud_descr_deu" => $keyword_cloud_descr_deu,
  
"lang_keyword_cloud" => $lang_keyword_cloud,
  
"show_keyword_cloud" => get_keyword_cloud(),

)); 
$site_template->print_template($site_template->parse_template($main_template)); 
include(
ROOT_PATH.'includes/page_footer.php'); 
?>



(http://img517.imageshack.us/img517/1378/deu8yc.gif) - 2. Schritt
lege im Template-Verzeichnis die neue Datei an :
/templates/<dein_Template>/keyword_cloud.html
wobei du eine Kopie deiner :
/templates/<dein_Template>/error.html
verwenden solltest, indem du die Datei entsprechend umbenennst und dann den folgenden Code (Beispiel Standard-Template) :
(http://img517.imageshack.us/img517/7821/eng9tu.gif) - 2. Step
make a new file in the template directory :
/templates/<your_template>/keyword_cloud.html
you should make a copy of your :
/templates/<your_template>/error.html
with the new name and replace the following content (example standard-template) :
Code: [Select]
<b class="title">{lang_error}</b>
<hr size="1" />
<p>{error_msg}</p>

(http://img517.imageshack.us/img517/1378/deu8yc.gif) - durch diesen neuen Code ersetzt (so ist schon mal das umgebene Design deines Templates gewahrt ... !) :
(http://img517.imageshack.us/img517/7821/eng9tu.gif) - by this new code ( design of your template is saved ... !)
Code: [Select]
<b class="title">{lang_keyword_cloud}</b>
<hr size="1" />
{keyword_cloud_descr_deu}<hr size="1" />{keyword_cloud_descr_eng}
<br><br>
<table width="100%" border="0" cellspacing="0" cellpadding="1">
    <tr><td class="head1">
    <table width="100%" border="0" cellspacing="0" cellpadding="3">
    <tr><td class="head1" height="20" valign="middle" align="left" >{lang_keyword_cloud}</td></tr>
    </td></tr></table>
    </td></tr>
    <tr><td class="head1">
    <table width="100%" border="0" cellspacing="0" cellpadding="20">
    <tr><td align="center" valign="middle" bgcolor="#ffffff">
        {show_keyword_cloud}
    </td></tr></table>
</td></tr></table>

(http://img517.imageshack.us/img517/1378/deu8yc.gif) - Die weitere Template-Gestaltung ist natürlich deine Sache .
In der keyword_cloud.html können die folgenden Tags verwendet werden :
(http://img517.imageshack.us/img517/7821/eng9tu.gif) - Of course is template designing your part.
The following tags are available to use in keyword_cloud.html :
{clickstream}
{keyword_cloud_descr_eng}
{keyword_cloud_descr_deu}
{lang_keyword_cloud}
{show_keyword_cloud}

(http://img517.imageshack.us/img517/1378/deu8yc.gif) - Wobei die Bedeutung der Tags selbsterklärend sein dürfte ... .
(http://img517.imageshack.us/img517/7821/eng9tu.gif) - You recognize the meaning of the tags alone ... .


(http://img517.imageshack.us/img517/1378/deu8yc.gif) - 3. Schritt
Öffne die Datei includes/page_header.php und finde :
(http://img517.imageshack.us/img517/7821/eng9tu.gif) - 3. Step
Open the file includes/page_header.php and find :
Code: [Select]
"url_home" => $site_sess->url(ROOT_PATH."index.php"),
(http://img517.imageshack.us/img517/1378/deu8yc.gif) - und füge unmittelbar dahinter die folgende Codezeile ein.
(http://img517.imageshack.us/img517/7821/eng9tu.gif) - and insert after the following code.
Code: [Select]
"url_keyword_cloud" => $site_sess->url(ROOT_PATH."keyword_cloud.php"),
"lang_200_keyword_cloud" => $lang['200_keyword_cloud'],


(http://img517.imageshack.us/img517/1378/deu8yc.gif) - 4. Schritt
Öffne die Datei /lang/deutsch/main.php und finde am Ende :
(http://img517.imageshack.us/img517/7821/eng9tu.gif) - 4. Step
Open the file /lang/<your_lang>/main.php and find at the end :
Code: [Select]
?>

(http://img517.imageshack.us/img517/1378/deu8yc.gif) - und füge unmittelbar davor den folgenden Code ein:
Code: [Select]
//-----------------------------------------------------
//--- [MOD] Keyword Cloud -------------
//-----------------------------------------------------
$lang['200_keyword_cloud'] = "200 Keyword Cloud";
$lang['tagged_with'] = "image(s) with tag: ";


(http://img517.imageshack.us/img517/7821/eng9tu.gif) - and insert above the following code :
Code: [Select]
//-----------------------------------------------------
//--- [MOD] Keyword Cloud -------------
//-----------------------------------------------------
$lang['200_keyword_cloud'] = "200 Keyword Cloud";
$lang['tagged_with'] = "image(s) with tag: ";


(http://img517.imageshack.us/img517/1378/deu8yc.gif) - 5. Schritt
Jetzt kannst du an jeder Stelle in deinen Templates den folgenden Tag als Link zu deiner Keyword Cloud Seite verwenden. Z.B. in deinem Menü (user_logininfo.html , user_loginform.html) .
(http://img517.imageshack.us/img517/7821/eng9tu.gif) - 5. Step
Now you can use on every place in your templates the following tag as link to your keyword cloud site e.g. in your menue (user_logininfo.html , user_loginform.html) .
Code: [Select]
&raquo;<a href="{url_keyword_cloud}">{lang_200_keyword_cloud}</a>


(http://img517.imageshack.us/img517/1378/deu8yc.gif) - 6. Schritt - Einstellungmöglichkeiten
Die folgenden Einstellungen lassen sich zur Anpassung an deine Website in der keyword_cloud.php vornehmen:

(http://img517.imageshack.us/img517/7821/eng9tu.gif) - 6. Step - Settings
The following settings can be made for the adjustment of your website in keyword_cloud.php :


thanks to ch€ri{Bi}² ...  8)
mawenzi
Title: Re: [MOD] Keyword Tag Cloud (on custom page)
Post by: rinaldos on October 26, 2007, 05:24:18 PM
Hi Mawenzi,
ich habe den MOD eingebaut, und er funktioniert soweit ganz gut, nur lässt er sich starten wenn ich http://rinaldos.homeip.net/keyword_cloud.php angebe.
Quote
<a href="{url_200_keyword_cloud}">{200_keyword_cloud}</a>

Das scheint bei mir irgendwie nicht zu funktionieren.

Gruß
Ingo
Title: Re: [MOD] Keyword Tag Cloud (on custom page)
Post by: mawenzi on October 26, 2007, 06:18:12 PM
Hallo Ingo,

... danke für dein Statement ...
... ich dachte dieser Thread geht schon ganz unter, nachdem es einige mit diesem MOD zunächst so dringend und eilig hatten ...
... also der Link für das Menü muss richtig sein ...
Code: [Select]
<a href="{url_200_keyword_cloud}">{lang_200_keyword_cloud}</a>
Title: Re: [MOD] Keyword Tag Cloud (on custom page)
Post by: rinaldos on October 26, 2007, 06:30:32 PM
Habe gerade nochmal die Zeile in meine user_loginform.html eingebaut. Aber der Link verweist auf meine Startseite und nicht auf die php datei.... Habe auch gerade nochmal alle Zeilen gecheckt.
Ich nutze die Version 1.7.4 mit PHP5.

Gruß
Ingo
Title: Re: [MOD] Keyword Tag Cloud (on custom page)
Post by: rinaldos on October 26, 2007, 06:35:58 PM
Ähm,
ich weiss nicht was ich nun gemacht habe. Habe nur ein paar Leerzeichen in die page_header eingefügt und nun klappt es auch.....

Also der MOD funktioniert bei mir nun einwandfrei.......... Danke für die schnelle Reaktion :-)
Gruß
Ingo
Title: Re: [MOD] Keyword Tag Cloud (on custom page)
Post by: Loda on October 26, 2007, 07:18:44 PM
hi,
funktioniert wunderbar! danke Detlev!!
Title: Re: [MOD] Keyword Tag Cloud (on custom page)
Post by: glitzer on October 28, 2007, 09:12:19 AM
Hallo Detlef!

ich hoffe du kannst mir helfen!
Es geht um meinen Mod Web Style 2.0, also um die kleine Tag Cloud. Ich hab zwar auch im anderen Beitrag gefragt, aber dort hat mir niemand richtig geantwortet.
Ich hab die Tag Cloud nun in meiner linken Navi eingebaut, aber die Tabelle ist zu breit und ich bekomme sie nicht schmäler! Auch wenn ich die Tags in eine eigene Tabelle mit festgesetzten Pixels reingebe. Ich habe auch die Schriftgröße kleiner gemacht um es dann kleiner zu bekommen, aber statt dessen sind dann nochmehr wörter nebeneinander.

Ich frage dich, weil du auf deiner Seite die kleine Tag Cloude auch viel schmäler hast. Kannst du mir bitte helfen?
Ich brauch eine Breite von ca. 130px. Vielen Dank, Glitzer

Title: Re: [MOD] Keyword Tag Cloud (on custom page)
Post by: kai on October 28, 2007, 07:46:53 PM
Thanks to mawenzi! Good work! :)
Title: Re: [MOD] Keyword Tag Cloud (on custom page)
Post by: mawenzi on October 29, 2007, 11:34:01 AM
@ Kai
... danke für dein Statement ...

@ glitzer
... mmm ... was mir zuerst auffällt ist deine Tabellenüberschrift "Schlüsselwörter/Suchwörter:" ...
... die ist in deiner jetzigen Schriftgröße (und als ein Wortzug) mit Sicherheit länger als 130px ...
... und sprengt somit die vorgegebene Tabellenbreite von 130px ...
... Lösung ...
... kleinere Schriftgröße oder kürzere Überschrift oder Freizeichen in der Überschrift ...
Title: Re: [MOD] Keyword Tag Cloud (on custom page)
Post by: glitzer on October 29, 2007, 11:44:03 AM
Hi
wie dumm von mir..das war ja eigentlich mehr als logisch das es an der überschrift liegen muß!
Jetzt gehts einwandfrei! :)
Vielen Dank!!
Title: Re: [MOD] Keyword Tag Cloud (on custom page)
Post by: SnaFy on April 11, 2008, 04:41:03 AM
the errors comes, when 0 images (start-up) in the 4images gallery...

thanks  :mrgreen:
Title: Re: [MOD] Keyword Tag Cloud (on custom page)
Post by: beach-baer on April 12, 2008, 09:44:49 PM
Moin Moin Mawenzi!

Ich haben Deinen/ch€ri{Bi}² Mod nun ebenfalls auf meiner HP eingebunden. Ist eine Klasse Idee von euch. :thumbup: Vielen Dank!

Ich habe den Programmcode bei mir in die search.php integriert. Die Keyword-Wolke erscheint immer nur dann, wenn der Suchen Bottom ohne Keyword genutzt wird. Also quasi in der 'Erweiterten Suche'. Ich hoffe Ihr habt nix dagegen?!

Viele Grüße aus Hamburg

Kay
Title: Re: [MOD] Keyword Tag Cloud (on custom page)
Post by: KamelN on April 12, 2008, 11:55:07 PM
   
Hallo Jungs

Wie kann ich den Inhalt der integrierten Tag auf meine Seiten home

Title: Re: [MOD] Keyword Tag Cloud (on custom page)
Post by: mawenzi on April 14, 2008, 10:01:20 AM
Ich hoffe Ihr habt nix dagegen?!

... warum sollten wir ... ?
... nur mit deinem Versteck in der search.php ist die Tag Cloud nicht leicht zu finden ... ;)
Title: Re: [MOD] Keyword Tag Cloud (on custom page)
Post by: mawenzi on April 15, 2008, 06:45:29 PM
the errors comes, when 0 images (start-up) in the 4images gallery...

... with no image your website isn't a gallery ... so please upload at least one image and no error comes ... ;)

Wie kann ich den Inhalt der integrierten Tag auf meine Seiten home

... dann verwendest du am Besten ch€ri{Bi}² 's MOD ... http://www.4homepages.de/forum/index.php?topic=16812.0 ...
... oder du includest die keyword_cloud.php in die index.php ...
... und verwendest den html-Code in deiner home.html ...
Title: Re: [MOD] Keyword Tag Cloud (on custom page)
Post by: beach-baer 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
Title: Re: [MOD] Keyword Tag Cloud (on custom page)
Post by: mawenzi 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. ...
Title: Re: [MOD] Keyword Tag Cloud (on custom page)
Post by: beach-baer on April 15, 2008, 10:52:02 PM
Moin Moin Mawenzi,

OK, ich war mir nicht ganz sicher. :)

Gruß Kay
Title: Re: [MOD] Keyword Tag Cloud (on custom page)
Post by: sanko86 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

Title: Re: [MOD] Keyword Tag Cloud (on custom page)
Post by: mawenzi 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 ...
Title: Re: [MOD] Keyword Tag Cloud (on custom page)
Post by: sanko86 on April 30, 2008, 01:05:09 PM
ı little english
ı am from turkey
;)
Title: Re: [MOD] Keyword Tag Cloud (on custom page)
Post by: weissinger 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
Title: Re: [MOD] Keyword Tag Cloud (on custom page)
Post by: Sun 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>"
Title: Re: [MOD] Keyword Tag Cloud (on custom page)
Post by: problema 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.  .  . 
Title: Re: [MOD] Keyword Tag Cloud (on custom page)
Post by: mawenzi 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 ...
Title: Re: [MOD] Keyword Tag Cloud (on custom page)
Post by: Sun 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: ";
"
Title: Re: [MOD] Keyword Tag Cloud (on custom page)
Post by: mawenzi 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 ... ;)
Title: Re: [MOD] Keyword Tag Cloud (on custom page)
Post by: Sun 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:
Title: Re: [MOD] Keyword Tag Cloud (on custom page)
Post by: mawenzi 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 ...
Title: Re: [MOD] Keyword Tag Cloud (on custom page)
Post by: Jan-Lukas 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
Title: Re: [MOD] Keyword Tag Cloud (on custom page)
Post by: Sunny C. on February 11, 2013, 02:03:28 PM
Was ist falsch?
Quote
Warning: array_values() expects parameter 1 to be array, null given in C:\xampp\htdocs\seite\keyword_cloud.php on line 65

Warning: max(): When only one parameter is given, it must be an array in C:\xampp\htdocs\seite\keyword_cloud.php on line 65

Warning: array_values() expects parameter 1 to be array, null given in C:\xampp\htdocs\seite\keyword_cloud.php on line 66

Warning: min(): When only one parameter is given, it must be an array in C:\xampp\htdocs\seite\keyword_cloud.php on line 66

Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\seite\keyword_cloud.php on line 75