Download & Extend

Don't show "more tags" when all tags are already shown

Project:Tagadelic
Version:6.x-1.x-dev
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

When all available terms (tags) are already shown, there is no use for the "more tags" link in the bottom right corner

Comments

#1

I have patched the tagadelic.module by replacing

$blocks['content'] .= theme('tagadelic_more', $voc->vid);//add more link

with

if (count($tags) == variable_get('tagadelic_block_tags_'. $delta, 12)) {
   $blocks['content'] .= theme('tagadelic_more', $voc->vid);//add more link
}

This works really nice.

#2

Version:5.x-1.x-dev» master
Status:active» needs review

Features into HEAD, I guess? Patch for suggestion attached, not tested on my side.

AttachmentSize
tagadelic_readmore_fix.patch 1.06 KB

#3

(Ignore me)

#4

First priority is a DPL6 release.
Then I will open up head for development on new features and bugfixes.

#5

Just reporting back that this patch applies with fuzz against 6x-1.0 and works as expected.

#6

Status:needs review» postponed (maintainer needs more info)

I recall having duscussed this before, but fail to find that thread:
Why do you check

<?php
if (count($tags) == variable_get('tagadelic_block_tags_'. $delta, 12)) {
?>
and not
<?php
if (count($tags) => variable_get('tagadelic_block_tags_'. $delta, 12)) {
?>

I would say that the *more* must show in case there are the same, or more tags in the cloud then shown in the block. Is that correct?

#7

I think he used == because $tags will never have more than 12 (or whatever the setting contains) elements (the query uses db_query_range to limit the number of results).

That works fine, but I think >= is more readable and unambiguous.

#8

Version:master» 6.x-1.x-dev
Status:postponed (maintainer needs more info)» needs work

Bumping.

#9

Leafish, can you summarise what work needs to be done still?

#10

Status:needs work» needs review

Well, both the patch above and the one attached here work - this one uses ">=" for the reasons in #7. I'm currently using this patch on a single Drupal 6 blog site and its doing the trick.

AttachmentSize
tagadelic_148793-2.patch 1.07 KB

#11

Status:needs review» reviewed & tested by the community

looks good.

#12

+1

#13

Status:reviewed & tested by the community» fixed

Committed to DRUPAL-6-1.
Is not in the DRUPAL-6--1-1 release, though, that was released yesterday.
Will be in the next bugfix release and off course in the -dev version.

Also merged into HEAD.

#14

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.