4images Forum & Community
4images Modifications / Modifikationen => Mods & Plugins (Releases & Support) => Topic started by: ch€ri{Bi}² on March 06, 2007, 11:22:02 PM
-
hi all,
this is a version of the tag clouds 8) for 4images...
this little mod display a cloud of keyword (see here (http://www.4homepages.de/forum/index.php?topic=16812.msg94128#msg94128) for categories), sort by quantity (the more the keyword is used in the gallery, bigger will be the font).
:!: only real keywords : i mean no keywords from name or description
you can see a demo on my site.
first : backup your files and
STEP1 : open includes/page_header.php
and add at the very end before ?>:
$site_template->register_vars(array(
"lang_keyword" => $lang['keywords'], //---[/[MOD] Tag Clouds]
"show_tag_clouds" => get_tag_clouds() //---[/[MOD] Tag Clouds]
));
STEP2 : open includes/functions.php
and add at the very end before ?>:
//---[ [MOD] Tag Cloud]
function get_tag_clouds() {
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 20";
$result = $site_db->query($sql);
while ($row = $site_db->fetch_array($result)) {
$tags[$row['word_text']] = $row['quantity'];
}
//uncommentnext line to sort the tag array in reverse order (+ => -)
//arsort($tags);
$max_size = 250; // max font size in %
$min_size = 50; // min font size in %
// largest and smallest array values
$max_qty = max(array_values($tags));
$min_qty = min(array_values($tags));
// 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);
// loop through the tag array
foreach ($tags as $key => $value) {
// 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 + (($value - $min_qty) * $step));
$output .= '<a href="'.$site_sess->url(ROOT_PATH."search.php?search_keywords=".$key.((!empty($mode)) ? "&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.'</a> ';
}
return $output;
}
//---[/[MOD] Tag Cloud]
read the comments and change some setting and styles to fit your needs :wink:
last step , open main.php in your language dir and add at the end:
$lang['tagged_with'] = "image(s) with tag: ";
now add the 2 tags {lang_keyword} and {show_tag_clouds} anywhere in you template.
PS: for all the users who love statistics, the cloud tag can take other parameters than mine... just found the query and change it in function.php
:idea: :arrow: see here (http://www.4homepages.de/forum/index.php?topic=16812.msg94128#msg94128) to find how to do this tag cloud with categories
-
... Excellent MOD ... :D
... it works perfect ... thanks ch€ri{Bi}² ...
... moved to Mods & Plugins (Releases & Support)
-
nice mod!
thank you very much!
-
Joli coup, messire ch€ri{Bi}² !
Adopté d'office. Mille mercis.
-
It works ;-) Looks really nice.
-
Yeah, this mod is looking good, and working really good :)
Thx for this mod!
I see that, the colors are random, how can i change them to light colors?
I have a dark site, and dark (for ex. brown) colors are barely visible...
Thx for teh mod! :)
-
@ drastx
... for light colors change the rgb color code ...
... change all "0" to e.g. "100" ... or try another value ...
color:rgb('.mt_rand(0, 255).', '.mt_rand(0, 255).', '.mt_rand(0, 255).');
-
Great work!
-
Super Job!
hier ein beispiel wie man es einsetzten kann (auf unserem testsystem)
http://newshuttle.pictureshuttle.com/ (http://newshuttle.pictureshuttle.com/)
gruss sascha
-
I always get these errors when trying to install this mod?
[07-Mar-2007 17:02:40] PHP Parse error: syntax error, unexpected T_STRING in /Applications/MAMP/htdocs/includes/functions.php on line 1725
[07-Mar-2007 17:24:45] PHP Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /Applications/MAMP/htdocs/includes/page_header.php on line 373
Any suggestions? It looks really cool and I'd really like to get it working :D
-
nevermind, i got it working!
-
I thank you so much! I've been looking ages for this [MOD] !
It works perfectly with my 4images Version: 1.7.4 .
Thanks a lot!
FunnyUser
-
Great mod ch€ri{Bi}², thanks !!!
-
hello all. thanks for nice mod :)
But turkish ü, Ü, ö, Ö, i, İ
letter,
wrong display: ue
example: ueniversitesi to üniversitesi
example: koy to köy
example: irmak to ırmak
how to fix.?
my gallery charset: iso-8859-9 turkish
db collation : latin1-swedish
demo gallery
(http://www.lavinya.net/galeri/)
more info turkish letters
http://en.wikipedia.org/wiki/Turkish_alphabet
-
Hello ch€ri{Bi}²
This is a wonderfull MOD. And with Mawenzi's Tip not so colorfull :-) Great work.
Thanks a lot...
Ingo
-
great mod ^^thanks a lot
-
excellent and simple to add!
-
But turkish ü, Ü, ö, Ö, i, İ
letter,
wrong display: ue
example: ueniversitesi to üniversitesi
example: koy to köy
hi
your problem is not related to this mod...
but try his code to replace accentuated or special characters in some text :
function clean_text($text)
{
$clean_text= strtr($text,
"ÀÁÂÃÄÅàáâãäåÒÓÔÕÖØòóôõöøÈÉÊËèéêëÇçÌÍÎÏìíîïÙÚÛÜùúûüÿÑñ",
"aaaaaaaaaaaaooooooooooooeeeeeeeecciiiiiiiiuuuuuuuuynn");
return $clean_text;
}
you can add some new character...
-
hmmm thanks ch€ri{Bi}²
-
After editing the functions.php, page_header.php and langfiles, I get this error on the top of my 4images homepage . Any suggestions ??
Warning: array_values() [function.array-values]: The argument should be an array in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1744
Warning: Wrong parameter count for max() in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1744
Warning: array_values() [function.array-values]: The argument should be an array in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1745
Warning: Wrong parameter count for min() in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1745
Warning: Invalid argument supplied for foreach() in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1757
-
After editing the functions.php, page_header.php and langfiles, I get this error on the top of my 4images homepage . Any suggestions ??
Warning: array_values() [function.array-values]: The argument should be an array in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1744
Warning: Wrong parameter count for max() in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1744
Warning: array_values() [function.array-values]: The argument should be an array in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1745
Warning: Wrong parameter count for min() in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1745
Warning: Invalid argument supplied for foreach() in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1757
same here
-
for all the errors, check this part of the code in functions.php after the first sql query:
while ($row = $site_db->fetch_array($result)) {
$tags[$row['word_text']] = $row['quantity'];
}
:?: can you say it returns an array?
afer the last code, insert this (for debug):
print_r($tags);
it will show you if $tags is an array or not...
:arrow: because all the code is based on the query result... so if there is no result or if the query fails... it will show noting...
-
Is possible to change the mod for show any basic info of the image instead of the keywords ?. I wanna show in the cloud the image name, author, description....
-
But turkish ü, Ü, ö, Ö, i, İ
letter,
wrong display: ue
example: ueniversitesi to üniversitesi
example: koy to köy
hi
your problem is not related to this mod...
but try his code to replace accentuated or special characters in some text :
function clean_text($text)
{
$clean_text= strtr($text,
"ÀÁÂÃÄÅàáâãäåÒÓÔÕÖØòóôõöøÈÉÊËèéêëÇçÌÍÎÏìíîïÙÚÛÜùúûüÿÑñ",
"aaaaaaaaaaaaooooooooooooeeeeeeeecciiiiiiiiuuuuuuuuynn");
return $clean_text;
}
you can add some new character...
where i must add this code ?
-
place the code in functions.php
and after this, you can apply it on any text (let's say $some_text is your text with special characters) by using : $some_text = clean_text($some_text);
-
this is a great mod and fairly simple too!
-
Can this mod be used to automatically categorise images?
Let's say I have a category called "cars", and the user is uploading the photo, and he chooses "cars" from say a dropdown, or something, can it automatically be put in the correct category?
-
hi,
this is a little modification : it shows a cloud of your categories (random categories by hits).
in the original mod (http://www.4homepages.de/forum/index.php?topic=16812.msg89877#msg89877) , in STEP2, replace the code in functions.php by this one :
//---[ [MOD] Tag Cloud]
function get_tag_clouds() {
global $site_db, $site_sess, $lang;
$output = "";
$max_to_show = 10 // 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 cat_id, cat_name, cat_hits
FROM ".CATEGORIES_TABLE."
ORDER BY RAND()";
$result = $site_db->query($sql);
while ($row = $site_db->fetch_array($result)) {
$tags_hits[$row['cat_id']] = $row['cat_hits'];
$tags[$row['cat_id']] = $row['cat_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 .= ' <a href="'.$site_sess->url(ROOT_PATH."categories.php?cat_id=".$key).'" style="font-size:'.$size.'%;color:'.$css_color.';font-family:Arial, sans-serif;" title="'.$lang['category'].' '.$value.' / Hits: '.$tags_hits[$key].' ">'.$value.'</a> ';
$i++;
}
}
return $output;
}
//---[/[MOD] Tag Cloud]
that's all folks ! :wink:
:idea: and now... for all those who asked (or will ask) how to show this and how to show that :
take the sql part of the code:
$sql = "SELECT cat_id, cat_name, cat_hits
FROM ".CATEGORIES_TABLE."
ORDER BY RAND()";
$result = $site_db->query($sql);
while ($row = $site_db->fetch_array($result)) {
$tags_hits[$row['cat_id']] = $row['cat_hits'];
$tags[$row['cat_id']] = $row['cat_name'];
}
and change the part in red to display the id/name/hits you want and don't forget to change the link :wink:
-
place the code in functions.php
and after this, you can apply it on any text (let's say $some_text is your text with special characters) by using : $some_text = clean_text($some_text);
what does that mean - apply? How can I parse all those previously entered keywords?
In Russian it also spoils several characters, changing it to "ue" :?
-
I think that the problem is inside this mod, because in details page all those keyword are displayed properly, without those "ue" :(
And the links in detais page look like:
/search.htm?search_keywords=%D5%E0%F0%FC%EA%EE%E2
and not:
/search.htm?search_keywords=Харueков
like in output of your MOD.
:|
Is it possible to parse it likewise the details page do? With corerect symbols etc :?:
-
Is it possible to parse it likewise the details page do? With corerect symbols etc :?:
try this (i can not test it because i don't have problems with the characters or symbols)
in the original mod (http://www.4homepages.de/forum/index.php?topic=16812.msg89877#msg89877), find this code in functions.php:
$output .= '<a href="'.$site_sess->url(ROOT_PATH."search.php?search_keywords=".$key.((!empty($mode)) ? "&mode=".$mode : "")).'" style="font-size:'.$size.'%;color:rgb('.mt_rand(64,128).', '.mt_rand(64,128).', '.mt_rand(0,255).');font-family:Arial, sans-serif;" title="'.$value.' '.$lang['tagged_with'].' '.$key.'">'.$key.'</a> ';
and replace it by this one :
$output .= '<a href="'.$site_sess->url(ROOT_PATH."search.php?search_keywords=".urlencode($key).((!empty($mode)) ? "&mode=".$mode : "")).'" style="font-size:'.$size.'%;color:rgb('.mt_rand(64,128).', '.mt_rand(64,128).', '.mt_rand(0,255).');font-family:Arial, sans-serif;" title="'.$value.' '.$lang['tagged_with'].' '.format_text($key, 2).'">'.format_text($key, 2).'</a> ';
:arrow: Tell me if it works !
-
:arrow: Tell me if it works !
Thanx for trying to help, but after thanging this line the problem didn`t disappear... :cry:
I still see "пueяниoeы" instead of "пЬяниЦы" :(
-
/search.htm?search_keywords=Харueков
like in output of your MOD.
do you use a mod to show the link? because i did not use search.htm in this mod :?
-
/search.htm?search_keywords=Харueков
like in output of your MOD.
do you use a mod to show the link? because i did not use search.htm in this mod :?
I have this mod installed: http://www.4homepages.de/forum/index.php?topic=6613.0
It just changes search.php into search.htm in this particular case and obviously doesn`t have any effect on this problem :)
-
After the last Your change in the code the URLs look like: /search.htm?search_keywords=%D3%EB%E8oe%E0
but none the less those wrong symbols remain there: oe, ae, ue... :(
-
we can sort (alphabetical sequence) the tags to a-z or z-a?
you can do this in functions.php.
:arrow: find & modify the second line in the code below to sort the tags in reverse alphabetical order (z-a):
//uncommentnext line to sort the tag array in reverse order (+ => -)
//arsort($tags);
:!: or to sort the tags in alphabetical order (a-z) modify the second line with this code : asort($tags);
:wink:
-
I`ve noticed only these cyrillic symbols are replaced by those annoying "ae", "oe", "ue":
In my case these are Russian: ц, д, ч, ь, Ъ, ы, я.
Maybe someone have any ideas? :cry:
-
but this asort (tag) does not run :!:
the tags is not sortet
oh sorry! my last response shows how to sort the keywords from the less to the more...
:arrow: if you want to get the real alphabetical order, change this in the sql query : find ORDER BY RAND() and replace it by ORDER BY i.word_text ASC ( => a-z).
Same thing with ORDER BY i.word_text DESC ( => z-a)
2) when the wordmatch and wordlist table ist empty/clear
comes follow error messages
these warning messages are normal : see the end of this reply (http://www.4homepages.de/forum/index.php?topic=16812.msg91809#msg91809)...
why do you want to make a cloud tag with keywords if there is no keyword on your gallery? :?
-
Any solutions for non-latin symbols bug? :(
-
It seems to me there`s no any :|
-
Hi,
great mode but I have one small problem... in my tags you can find so many insult words :)
Do you know how can I censored them?
-
Schöner Mod. Mir ist aber aufgefallen, das mir falsche Werte angezeigt werden, wenn ich mit der Mause über die Schlüsselworte gehe. Es wird mit z.B. angezeigt 1 Bild, sind dann aber, wenn ich auf das Schlüsselwort klicke 3 Bilder. Kommt zu 80 % zahlenmäßig nicht hin. Woran liegt das?
-
Great Mod! Thanks!
-
After editing the functions.php, page_header.php and langfiles, I get this error on the top of my 4images homepage . Any suggestions ??
Warning: array_values() [function.array-values]: The argument should be an array in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1744
Warning: Wrong parameter count for max() in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1744
Warning: array_values() [function.array-values]: The argument should be an array in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1745
Warning: Wrong parameter count for min() in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1745
Warning: Invalid argument supplied for foreach() in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1757
same here
Same errors for me... :(:(
i really need this mod.. any sol for this??
-
Does not seem to be general prob. What is your PHP, mySQL, 4images version ? May be not compatible for PHP 5 ...
-
Does not seem to be general prob. What is your PHP, mySQL, 4images version ? May be not compatible for PHP 5 ...
I am using PHP Version 4.4.7 :roll:
-
What is your 4images version ?
-
Its v1.7.4 :)
-
Ok so from includes/functions.php file, post from line: 1740 to 1760.
-
thunderstrike, for me error is from line 1856 - 1869 and the error is:
Warning: array_values() [function.array-values]: The argument should be an array in /home/xxxxx/public_html/xxxxx/includes/functions.php on line 1856
Warning: Wrong parameter count for max() in /home/xxxxx/public_html/xxxxx/includes/functions.php on line 1856
Warning: array_values() [function.array-values]: The argument should be an array in /home/xxxxx/public_html/xxxxx/includes/functions.php on line 1857
Warning: Wrong parameter count for min() in /home/xxxxx/public_html/xxxxx/includes/functions.php on line 1857
Warning: Invalid argument supplied for foreach() in /home/xxxxx/public_html/xxxxx/includes/functions.php on line 1869
So below is the code from my functions.php from line 1850-1870
//uncommentnext line to sort the tag array in reverse order (+ => -)
//arsort($tags);
$max_size = 250; // max font size in %
$min_size = 50; // min font size in %
// largest and smallest array values
$max_qty = max(array_values($tags));
$min_qty = min(array_values($tags));
// 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);
// loop through the tag array
foreach ($tags as $key => $value) {
// calculate font-size
Thanks a lot for your kind help thunderstrike :D
-
There almost no validations on there ... no wonder lots of errors.
-
There almost no validations on there ... no wonder lots of errors.
So, i think .. this mod is not for me :x
-
Did tried the modification here:
http://www.4homepages.de/forum/index.php?topic=16812.msg94128#msg94128
?
-
Just tried and now its just show this error. nothing else:
Parse error: syntax error, unexpected T_VARIABLE in /home/xxxxx/public_html/xxxxxx/includes/functions.php on line 1841
and in functions.php on line 1841 is:
$max_size = 300; // max font size in %
Here's the code from 1840-1845
$max_size = 300; // max font size in %
$min_size = 70; // min font size in %
$max_qty = 0;
$min_qty = 0;
Thanks thunderstrike for your help and suggestions :)
-
Error line seem to report wrong. Please post attachment file of functions.php file. Will look.
-
check your PM thunderstrike
-
Done.
$max_to_show = 10 // max items to display
replace into:
$max_to_show = 10; // max items to display
;)
-
Working now :D:D
Can you please modify the main code (on page 1) also ??
Thanks for your great help :D
-
I cannot. I am user. Not moderator (or created this MOD). Happy knowing it works for you. 8)
-
I cannot. I am user. Not moderator (or created this MOD). Happy knowing it works for you. 8)
na na.. i was just saying if you can please check the code on first page also, as i mentioned back its also not working for me. I am not asking to modify the post!
(frankly i also wana try the keywords based tag cloud once.)
-
Please, help with Russian alphabet.
Nice MOD (!), but Russians cant work with it because of bad encording of 7 letters of Russian alphabet. The same problems have many webmasters from other countries with non-Latin alphabet.
Thanx in advance.
-
I no Russian but ... which Russian chars it show and which one you wish to see in place (for correction) ?
-
I`ve noticed only these cyrillic (Russian) symbols are replaced by those annoying "ae", "oe", "ue" English double letters:
ц, д, ч, ь, Ъ, ы, я.
So, this 4homepages MOD can't work with these Russian letters :-(
-
hi guys...
great mod!
i installed it and i noticed that my site slowed down. really down. when it loaded a new site, it took me 2 sec. i uninstalled the mod again and everything was fast like before.
anyone else noticed this? or is the problem just on my site?
-
This is a great mod! Thx!
I installed it, but I experience a strange problem.
Everytime I reload the page, the tags get completely changed. So it seems he randomly pulls keywords from the database.
Can anyone help me.
Here you can see the problem: http://photoforum.istria.info (just press F5 and see what happens). Thx!
-
After editing the functions.php, page_header.php and langfiles, I get this error on the top of my 4images homepage . Any suggestions ??
Warning: array_values() [function.array-values]: The argument should be an array in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1744
Warning: Wrong parameter count for max() in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1744
Warning: array_values() [function.array-values]: The argument should be an array in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1745
Warning: Wrong parameter count for min() in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1745
Warning: Invalid argument supplied for foreach() in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1757
same here
Same errors for me... :(:(
i really need this mod.. any sol for this??
if you remove the instruction : "WHERE keys_match > 0" it run ;)
-
Hello,
It would be very nice if we can put the tag cloud on an custum page (cloud.html/php) with all the keywords.
I mean on the main page you have for example 10 keywords and next you have a link (More tag cloud?) to to CLOUD.PHP).
Can someone realize this MOD?
Many thanks in advance,
Cruxy
-
Can someone realize this MOD?
... yes ...
... here (http://klick.kl.funpic.de/keyword_cloud.php) my test version ...
... I will post the code of this version ...
-
Waaw! great work mawenzi. I can not wait!
Please do not let us wait long. :wink:
-
... the [MOD] Keyword Tag Cloud (on custom page) is now available ... !
... here ... http://www.4homepages.de/forum/index.php?topic=19157.0 ...
-
professional work mawenzi! Respect :wink:
-
hi,
where can i change the table with of the tags?
When i make a table and put in the variables {lang_keyword} and {show_tag_clouds} , i can not fixed a width.
the box for the tag cloud shoudn´t be wider than 130px.
thanks for helping
-
kann mir jemand sagen was ich im code ändern muss um alle tags in der gleichen definierbaren farbe zu haben?
-
@osnapicture
... bereits beschrieben ... hier ...
... http://www.4homepages.de/forum/index.php?topic=16812.msg89898#msg89898
-
@mawenzi: ja, das hatte ich schon probiert. das hilft mir aber nicht. damit verändert sich nur die allgemeine tonlage. ich möchte aber alle tags in einem hellen grau haben. kann man nicht irgendwo den genauen farbwert hinschreiben, der für alle tags gelten soll?
-
@osnapicture
... dann hast du offensichtlich nicht richtig probiert ... denn es hilft doch ... ;)
... du wünscht für alle Tags ein helles Grau ... z.B. ... HTML : C2C2C2 ... entspricht RGB : 0,0,194 ...
... dann müsste deine Codezeile so aussehen ...
color:rgb('.mt_rand(0, 0).', '.mt_rand(0, 0).', '.mt_rand(194, 194).');
... oder gleich einfacher, da du keine Zufallsfarben mehr wünscht ...
color:rgb(0, 0, 194);
-
oh danke, das hilft :)
-
I love this mod - it's so pretty :mrgreen:
Joanne
-
Hi,
great mode but I have one small problem... in my tags you can find so many insult words :)
Do you know how can I censored them?
Am I the only one with this problem?
-
Hi Lucifix,
... not tested, but try this ...
1. in ACP -> General -> Comment settings ... edit your badword list with the "insult words" ...
2. in ACP -> General -> Comment settings -> Characters to replace badwords ... delete " * " ... so there is nothing in this field ...
3. in includes/functions.php find ...
$keywords .= (($keywords != "" ) ? ", " : "")."<a href=\"".$site_sess->url(ROOT_PATH."search.php?search_keywords=".urlencode($val))."\">".format_text($val, 2)."</a>";
... and replace by ...
$keywords .= (($keywords != "" ) ? ", " : "")."<a href=\"".$site_sess->url(ROOT_PATH."search.php?search_keywords=".urlencode($val))."\">".format_text($val, 1, 0, 1)."</a>";
... so the "insult words" as keywords and in the description will not shown on your details pages ...
3. in [MOD] Tag cloud code find ...
foreach ($tags as $key => $value) {
... and replace by ...
$tags = format_text($tags, 1, 0, 1);
foreach ($tags as $key => $value) {
... I hope this will work ... ;)
-
Sadly it doesn't, looks like there is a problem with code (below) because of it doesn't show anything:
$tags = format_text($tags, 1, 0, 1);
foreach ($tags as $key => $value) {
-
I don't know but doesn't this solve the problem:
after:
foreach ($tags as $key => $value) {
add:
$key2 = replace_badwords($key);
and within $output replace
'.$key.'
with
'.$key2.'
:roll:
-
very nice MOD, thank you!! ;-)
In action: http://www.birdgallery.eu/statistics.php (http://www.birdgallery.eu/statistics.php)
But how to get it in english, if user choose english language on home.html.
I can put an extra {lang_select} in statistics.html, but must be work without this too?
Or: How to translate German: "Statistik" to English: "Statistics" in user_logininfo and in user loginform?
Chris.
-
Suuuper!!! Einfach und gut!
-
Very GREAT MOD !!!
Thank you very much !!!
ProDez
-
Hallo,
der Einbau klappte perfekt, aber immer wenn ich irgendwas über die search.php öffne, zeigt er mir eine komische Fehlermeldung. Kann mir da einer helfen?!
Notice: Undefined index: tagged_with in /var/www/xxxxxxxx/bilder/includes/functions.php on line 1776
EDIT: Hab es hinbekommen. hatte das Sprachpaket nicht komplett!!! *schäm*
Habe aber ne andere Frage: Wie schaffe ich es, auf einer neuen Seite ALLE Tags anzeigen zu lassen? Also auch in versch. Grössen und Farben; aber eben ALLE Tags der Galerie...
-
I did everything of the first post but don't show the tags
Don't show anything
Can you help me
-
I`ve noticed only these cyrillic symbols are replaced by those annoying "ae", "oe", "ue":
In my case these are Russian: ц, д, ч, ь, Ъ, ы, я.
Maybe someone have any ideas? :cry:
A year passed - maybe any solution appeared?
I cant believe nobody using russian language uses this MOD so far... :(
-
Läuft Prpblemlos unter 1.7.6.
Nice and Thanks! Great MOD
-
i have a problem with this mod on some Arabic letters
can anyone help me ? :(
-
:cry: any help !!
-
a little tip: describe the problem and if possible provide a screenshot ;)
-
8) the problem is that some Arabic letters are shown in the tags as a latin letters which is not right :cry: ..
could u tell me how can i fix it ..
or just tell me from which file ?
here is a screenshot :mrgreen:
thank's alot
-
in includes/search_utils.php find:
function convert_special($text) {
Insert below: return $text;
It wont fix the problem right the way, because the latin letter in your keywords are already saved into the database, so you'll need manually edit database and fix these keywords (if you manually add keywords to each image, you can edit image and fix keywords there).
P.S.
I can't guaranty that it will work properly, but you also can try this before you manually edit database:
in includes/functions.php find:function get_tag_clouds() {
Insert above:function _convert_special($text) {
return strtr(
$text,
array(
"AE" => "Ä",
"OE" => "Ö",
"UE" => "Ü",
"ae" => "ä",
"oe" => "ö",
"ue" => "ü",
"ss" => "ß"
)
);
}
find: $tags[$row['word_text']] = $row['quantity'];
Insert above: $row['word_text'] = _convert_special($row['word_text']);
-
:D thank's alot V@no i have try it and it work,
thank u very much ..
-
nice mod, thnk
-
hello all,
1st at all: THANK YOU for this wonderfull gallery software!
2nd: my question to this MOD:
i'm using name_match instead of keys_match in the cloud query
is it possible only to show words with chars from a-z and A-Z, without the numbers?
means tag clouds like wallpaper should be show, clouds like 0012 or wallpaper58 should be excluded.
thank you in advance!
wallp.ape.rs freak :)
-
Hello and welcome to 4images forum.
in includes/functions.php find:
$tags[$row['word_text']] = $row['quantity'];
Insert ABOVE:
if (preg_match("#[^a-zA-Z]#", $row['word_text'])) continue;
-
Hello V@no thank you for your answer!
nope that will not work like i wanted.
with preg_match "number" tags will be hidden. means from mysql query with example limit 20, 16 tags will be visible on the site
i found something else for mysql query to exclude "number" tags:.
WHERE name_match > 0 AND i.word_text REGEXP '[a-zA-Z]'
and it works up to 99,99% like i wanted.
i see still 330i or M3 but no matter, due this are BMW "words" ;)
Thank you again!
-
Yes, you are right.
This should add 0.01% to your 99.99% ;)
WHERE keys_match > 0 AND i.word_text NOT REGEXP '[^a-zA-Z]'
-
hi V@no,
Nope it does not worked.
You dont have to search for solution. I like the way how it is work rightnow.
Thank you again for your time!
-
still have problems . I have installed select Language Mode (with different templates). The default works ok for this Mod . The problem is when switching to another . I have receive the follow
Notice: Undefined index: vote_between in /public_html/includes/functions.php on line 1006
Notice: Undefined index: vote_between in /public_html/includes/functions.php on line 1009
Notice: Undefined index: vote_between in /public_html/includes/functions.php on line 1048
on the top of page .
What could be the problem ? Thanks
-
The problem is absolutely not related to this mod, but to [Mod] Ajax Starrating for details + thumbs (http://www.4homepages.de/forum/index.php?topic=17829.0) instead.
Your language pack missing some language string(s) from step 8.
-
The problem is absolutely not related to this mod, but to [Mod] Ajax Starrating for details + thumbs (http://www.4homepages.de/forum/index.php?topic=17829.0) instead.
Your language pack missing some language string(s) from step 8.
Thanks V@no . It's working .
-
Nice MOD but i've got a little prob:
the mod is working great so far but i want to include it in my "user_box" (user_loginform.html) and it doesn't work.
So its just shown no tags.
Any idea?
Thanks a lot!
-
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.
-
i m testink and i wiil back
-
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.
-
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 ;)
-
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
-
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?
-
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.
-
did you try this (http://www.4homepages.de/forum/index.php?topic=16812.msg121848#msg121848) code?
-
Yes Vano after i try this mode site is broken. and i change search_until php a new search_until.php but not.
-
Цифры убрал, от мода по поиска по цветам, только кирилицу выводить совсем не хочет флеш облако. Пустые ссылки крутятся... Что подправить, подскажите...
-
Is there any way to increase the number of keywords included in cloud? IT seems that its leaving out a lot of keywords,
-
I understand you can adjust it in the code from the commented section, however Im not sure the exact syntax...
-
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
-
Как поставить фильтр на категории? Если доступ к категории закрыт, то кликнув по тэгу из облака, все равно туда попадешь?
-
Why can not I make the tags to the names? Help please!
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 .= ' <a href="'.$site_sess->url(ROOT_PATH."details.php?image_id=".$key).'" >'.$value.'</a> ';
$i++;
}
}
return $output;
}
-
Can someone please tell me clearly how to make sure this keyword cloud pulls keywords from all images in all categories, and where exactly I can set the limit ..... in plain exact terms with an example?
Right now it seems the keyword return is very limited and I would like to increase the number. Thanks....
-
After editing the functions.php, page_header.php and langfiles, I get this error on the top of my 4images homepage . Any suggestions ??
Warning: array_values() [function.array-values]: The argument should be an array in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1744
Warning: Wrong parameter count for max() in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1744
Warning: array_values() [function.array-values]: The argument should be an array in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1745
Warning: Wrong parameter count for min() in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1745
Warning: Invalid argument supplied for foreach() in /home/tsahu/public_html/netbaazigar/showoff/includes/functions.php on line 1757
same here
Warning: array_values() [function.array-values]: The argument should be an array in E:\wamp\www\4images\includes\functions.php on line 1753
Warning: Wrong parameter count for max() in E:\wamp\www\4images\includes\functions.php on line 1753
Warning: array_values() [function.array-values]: The argument should be an array in E:\wamp\www\4images\includes\functions.php on line 1754
Warning: Wrong parameter count for min() in E:\wamp\www\4images\includes\functions.php on line 1754
Warning: Invalid argument supplied for foreach() in E:\wamp\www\4images\includes\functions.php on line 1766
-
Just a short modification if you want to show popular tags from last week / months or year:
Modify STEP2 from:
//---[ [MOD] Tag Cloud]
function get_tag_clouds() {
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 20";
$result = $site_db->query($sql);
while ($row = $site_db->fetch_array($result)) {
$tags[$row['word_text']] = $row['quantity'];
}
//uncommentnext line to sort the tag array in reverse order (+ => -)
//arsort($tags);
$max_size = 250; // max font size in %
$min_size = 50; // min font size in %
// largest and smallest array values
$max_qty = max(array_values($tags));
$min_qty = min(array_values($tags));
// 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);
// loop through the tag array
foreach ($tags as $key => $value) {
// 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 + (($value - $min_qty) * $step));
$output .= '<a href="'.$site_sess->url(ROOT_PATH."search.php?search_keywords=".$key.((!empty($mode)) ? "&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.'</a> ';
}
return $output;
}
//---[/[MOD] Tag Cloud]
To:
//---[ [MOD] Tag Cloud]
function get_tag_clouds() {
global $site_db, $lang, $site_sess, $mode;
$output = "";
$sql = "SELECT w.word_id, w.word_text, c.image_id, i.image_date, COUNT( c.word_id ) AS quantity
FROM ".WORDLIST_TABLE." w
LEFT JOIN ".WORDMATCH_TABLE." c ON w.word_id = c.word_id
LEFT JOIN ".IMAGES_TABLE." i ON c.image_id = i.image_id
WHERE keys_match >0
AND i.image_date >= ".(time() - 60 * 60 * 24 * 7)." // 7 means 7 days, if you want to show popular tags from last months replace 7 with 30, for last year 365
GROUP BY w.word_text
ORDER BY quantity DESC
LIMIT 20";
$result = $site_db->query($sql);
while ($row = $site_db->fetch_array($result)) {
$tags[$row['word_text']] = $row['quantity'];
}
//uncommentnext line to sort the tag array in reverse order (+ => -)
//arsort($tags);
$max_size = 250; // max font size in %
$min_size = 80; // min font size in %
// largest and smallest array values
$max_qty = max(array_values($tags));
$min_qty = min(array_values($tags));
// 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);
// loop through the tag array
foreach ($tags as $key => $value) {
// 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 + (($value - $min_qty) * $step));
$output .= '<a href="'.$site_sess->url(NUKE_PATH."search&search_keywords=".$key.((!empty($mode)) ? "&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.'</a> ';
}
return $output;
}
//---[/[MOD] Tag Cloud]
Note: AND i.image_date >= ".(time() - 60 * 60 * 24 * 7)." // 7 means 7 days, if you want to show popular tags from last months replace 7 with 30, for last year 365
-
hi Lucifix,
thank you for that.. but a little correction.. those are not popular tags.... ;)
this are the tags from pictures, as in your example, which are added last 7 days.
-
Hey Nicky!
Why not popular tags? :) Let say that in summer many users will tag their pictures with tags like: summer, beach, sea, sunny etc. This modification will show you tags within last week - and for me those are popular tags :) :roll:
And of course you can interpreted this modification otherwise ;)
-
Hi
Thank you for this great mod
but
as some other post (arabic, cyrillic) he don't work with utf8 data... for me is with french and chinese
after long time to try to understand :
this mod use the words of word_text from wordlist
this words are created by the function add_searchwords() and all this belonging functions as prepare_searchwords()
for example :
the word entrée (in utf8 in image_keywords from images ) : displayed with iso encoding must be entrée
after transformation by add_searchwords()
the word entrée is corrupt (bad utf8 in word_text from wordlist) : displayed with iso encoding is entrã©e with utf8 entr�e
That means the add_searchwords() and all this belonging function as prepare_searchwords() don'work properly with utf8.
So i have find some solution to fixe it. (for example strtoupper($key) but this correct only few characters...)
But until now not enought to work in any situation especially with th search engine...have to find a global methode...
I continue to work by disable some function and make some analysis.
If somebody have more idees ??
Many thanks
Jean Pierre
-
I have a problem when using this mod together with the search by color mod... On the 200 word keyword page I am seing the color codes show up as key words in the cloud....
Since I can no longer find the search by color mod thread I am unsure what to do... Any help would be appreciated...
I just remembered if you ad this AND c.colorsearch_colors_match = 0
to this
WHERE keys_match > 0
it fixes the problem in the flash keyword mod....
And it fixes the error with this page too... !
-
Ich dachte bisher ich sei für mein Alter ziemlich versiert was Webseiten angeht... Aber bei 4images hört es anscheinend auf :(
Ich bekomme nicht mal so einen einfachen Mod wie diesen hier zum Laufen!
Oder liegt es an der neuen Version 1.7.6?? Wenn ja - woher bekomme ich die alten Versionen?
Grüße, Stefan
edit: kann mir vielleicht jemand die veränderten dateien hochladen? Am Besten das komplette "4images" mit allen Mods installiert - kaputt machen geht leichter als zu installieren :oops:
-
This is my first try on 4images MOD ..view it http://jdmmod.com (http://jdmmod.com)
-
Thank you for this nice mod.
is there a way, i could leave out some categories and not show them in the tag cloud?
-
For seo do this find
$output .= '<a href="'.
replace with
$output .= '<a rel="nofollow" href="'.
-
can anybody confirm if its working with v1.7.7 I applied the code and also debug it
$max_to_show = 10 ;// max items to display
but after adding the 2 tags {lang_keyword} and {show_tag_clouds} .
The field is blank and nothing is displayed , any suggestions ...
-
Hallo zusammen
Ich setzte diesen klasse Mod auf meiner Webseite ein und bin eigentlich auch sehr zufrieden damit.
Ich habe allerdings ein kleines Problem. Ein teil meiner Keywords sind in folgender Syntax geschrieben
[Orchis_militaris]. In der Detailpage werden die Keywords auch korrekt angezeigt.
In der Tag Cloud steht dann nur noch orchismilitaris.
Kann man das ändern das die Keywords in der Tag Cloud identisch angezeigt werden ?
Falls das hier schon irgendwo beantwortet worden sein sollte, bitte ich um Entschuldigung, mein English ist miserabel.
Helge
-
im using 1.7.6
the same is working fine
tks
-
I'm using this MOD with v 1. 7. 7 on mobile server. It works perfect!
Many thanks for the great work!
Dirk
-
in includes/search_utils.php find:function convert_special($text) {
Insert below: return $text;
It wont fix the problem right the way, because the latin letter in your keywords are already saved into the database, so you'll need manually edit database and fix these keywords (if you manually add keywords to each image, you can edit image and fix keywords there).
How i understand with this decision we said: didn't use function convert_special anywhere(not only in tag cloud). I am afraid that this functions used in some another places and if i didn't use it then i will have errors.
V@no, could you tell me what kind of operation to check? or you think that all will be work?
P.S.
I can't guaranty that it will work properly, but you also can try this before you manually edit database:
in includes/functions.php .....
This decision have one error: if i use English words for search, they will be changed too. For example, word "endless" will be "endleя"
-
Hallo miteinander,
ich habe den Mod erfolgreich installiert und er funktioniert auch zu meiner Zufriedenheit. Nun habe ich leider festgestellt, dass in der Detailansicht {image_keywords} unter Schlüsselwörter die originären keywords nicht mehr angezeigt werden.
Das wäre aber wichtig, da nur diese keywords einen Zusammenhang zum Bild herstellen.
Gibt es da ein Lösung?
Viele Grüße
Habs gefunden:
Im Array für die Templates hat der Eintrag "image_keywords" => $keywords, gefehlt. Jetzt gehts.
-
User who enters your page "red books" tag page. Random tags within the page to remove it immediately instead of "red" like to see die tag table header labels with %red% red labels get out. Meaningless tags, different content labels will go boots.in this way, if you would be more useful. Root words associated with the labels, visit bots better.
$tag = $ _GET [q];
Let us assign labels for $ get'ine tag on the page. If you create 2 or 3 word labels, so let's parts.
$bol = explode(' ', $tag); //I chose to separate the space.
$first_word=$bol[0];
$first_word I received word sql line;
WHERE baslik LIKE '%$first_word%' order by rand() desc limit 0,1
How can be done?
I hope you able to provide you describe. My English is bad.
-
Good afternoon, prompt, what is necessary, that letters were one colour? :oops:
-
@igor3000 ...
... here the answer : http://www.4homepages.de/forum/index.php?topic=16812.msg89898#msg89898 ...
-
Hi,
danke für diesen MOD :thumbup:
EDIT:
Wenn man die Cloud auf Basis von Image Namen möchte muss die SQL Abfrage:
WHERE keys_match > 0
geändert werden:
WHERE name_match > 0
wenn es die Beschreibung sein soll:
WHERE desc_match > 0
Greetz X23
-
Verry nice mod... but on my server makes verry much load... After my server upgrade i was tried again the mod and was the same for my page. Also i have more other mods installed.
this is querry with 250 query /sec
SELECT i.word_id, i.word_text, COUNT( c.word_id ) AS quantity
FROM 4images_wordlist i
LEFT JOIN 4images_wordmatch c ON i.word_id = c.word_id
WHERE keys_match >0
GROUP BY i.word_text
ORDER BY RAND( )
LIMIT 30
-
yeah, it slows down the site. On my (weak) test system all queries are quicker than 0.044 sec, this one takes 3.3 sec :(
I am no SQL wizard so I don't really know how to make it quicker (if at all possible) but this one "only" takes 2.8 sec (and I hope it does the same):
SELECT COUNT(c.word_id) AS quantity, i.word_
FROM 4images_wordmatch c, 4images_wordlist i
WHERE keys_match > 0 and i.word_id = c.word_id
GROUP BY c.word_id
ORDER BY RAND()
LIMIT 20
To use it I'm thinking about putting it into a separate file and loading it via ajax after the rest of the page has loaded.
-
test it:
SELECT COUNT(c.word_id) AS quantity, i.word_id, i.word_text
FROM 4images_wordmatch c, 4images_wordlist i
WHERE keys_match > 0 and i.word_id = c.word_id AND length(word_text) > 5
GROUP BY c.word_id
ORDER BY RAND()
LIMIT 20
-
heloo evry one
i'm useing 1.7.8
and when i use this mod
I have no Tag cloud
all i have is the word array
-
...this is a version of the tag clouds 8) for 4images...
Works perfect in 1.7.10 version :thumbup:
-
Hi, I want to display only the most commonly used words. How do I?
-
I upgraded to version 1.7.11 and ran the Migrate Keywords tool and now my tag cloud is broken.
The tag cloud used to separate the keywords in a post. Now, it is grouping them all together.
For instance, the tags: "car, park, parking" used to all be single keywords, now it is showing up as one big keyword, "car park parking"
You can see an example here: http://www.threadbombing.com/index.php
Can anybody help me fix this? Thanks!
-
Hi!
I upgraded to version 1.7.11 and ran the Migrate Keywords tool and now my tag cloud is broken.
...
I do not think that it's the Mod.
in ACP/plugins, start the "rebuild_searchindex" but first empty the search index.
mfg Andi
-
I do not think that it's the Mod.
in ACP/plugins, start the "rebuild_searchindex" but first empty the search index.
mfg Andi
Thanks, that fixed it! 8)
-
whats wrong
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
-
whats wrong..
Ist vielleicht die wordlist, wordmatch tabelle leer?
ich nehme mal an du meinst diese Modifikation: http://www.4homepages.de/forum/index.php?topic=19157.0
-
Nein, in beiden steht was drin.
Die Fehlermeldung habe ich in beiden Modifikationen
-
so.. gerade diesen Mod hier getestet, funktioniert.
mfg Andi
-
Kann es sein, weil ich es local in xampp am laufen habe?
-
Hello,
nice MOD and working great!
currently I'm using the modified MOD for categories as provided by ch€ri{Bi}² (see: http://www.4homepages.de/forum/index.php?topic=16812.15 (http://www.4homepages.de/forum/index.php?topic=16812.15)).
Tag cloud is showing (separate) Categories but all in one line.
This way the tag cloud is stretched and my template gets too wide.
How can I show the categories on multiple lines so my template keeps its width?
Thanks!
-
Ich habe den Fehler wie viele andere auch.
Wordlist ist voll
-
Suche:
$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 20";
Ersetze mit
$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
GROUP BY i.word_text
ORDER BY RAND()
LIMIT 20";
Dann sollte der Fehler weg sein.
Es wurde lediglich folgendes entfernt
WHERE keys_match > 0
oder ändern in "WHERE keys_match >= 0"
-
Danke, hat funktioniert!