I was able to come up with a solution for this myself. It works nicely because the user is oblivious to it. Even if the user types in 'Japan', it won't show up in the cloud. However, the tag still works when you do a search and it's still in the tag list under each title, just as the user would expect.
Tested in version 9.8.2
1. Open libs/tags.php
2. Locate this line:
Code:
$max = max($db->get_var("select count(*) as words $from_where order by words desc limit 1"), 2); 3. Change it to this (note the changes in red):
Code:
$max = max($db->get_var("select count(*) as words $from_where order by words desc limit 1, 1"), 2); What that does is it gets the second most popular tag and uses it as the max limit for the font size.
4. Locate this line:
Code:
foreach (array_keys($words) as $theword) { 5. Wrap the statements within the for loop in an if statement like this:
Code:
foreach (array_keys($words) as $theword) {
if($theword != 'japan') {
$tag_number[$tagnumber] = $tagnumber;
$tag_name[$tagnumber] = $theword;
$tag_count[$tagnumber] = $words[$theword];
$tag_size[$tagnumber] = $tags_min_pts + ($tag_count[$tagnumber] - 1) * $coef;
if(isset($time_query)){
$tag_url[$tagnumber] = getmyurl('tag2', urlencode($tag_name[$tagnumber]), $from_time);
} else {
$tag_url[$tagnumber] = getmyurl('tag', urlencode($tag_name[$tagnumber]));
}
$tagnumber = $tagnumber + 1;
}
} Change 'japan' to the tag you want to hide.
6. Upload libs/tags.php and you're done.
Note that the above will only hide the most popular tag. If you want to hide the top 2 tags you'll need to edit the above like this (untested!):
Code:
$max = max($db->get_var("select count(*) as words $from_where order by words desc limit 2, 1"), 2); Code:
if(($theword != 'japan') || ($theword != 'japanese')) { I hope some people find this helpful.