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

Dieter_be - June 2, 2007 - 17:38
Project:Tagadelic
Version:6.x-1.x-dev
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

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

#1

jurgenhaas - September 6, 2007 - 13:50

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

leafish_paul - February 11, 2008 - 23:36
Version:5.x-1.x-dev» HEAD
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

leafish_paul - February 12, 2008 - 00:06

(Ignore me)

#4

Bèr Kessels - February 19, 2008 - 09:10

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

#5

add1sun - March 16, 2008 - 16:21

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

#6

Bèr Kessels - May 1, 2008 - 13:38
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

cpugeniusmv - May 1, 2008 - 17:10

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

leafish_paul - May 25, 2008 - 21:37
Version:HEAD» 6.x-1.x-dev
Status:postponed (maintainer needs more info)» needs work

Bumping.

#9

Bèr Kessels - August 14, 2008 - 19:18

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

#10

leafish_paul - August 18, 2008 - 13:41
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

Bèr Kessels - August 18, 2008 - 13:53
Status:needs review» reviewed & tested by the community

looks good.

#12

jstoller - October 11, 2008 - 03:13

+1

#13

Bèr Kessels - November 13, 2008 - 11:45
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

System Message - November 27, 2008 - 11:53
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.