Hi,

There seems to be a problem with how magic_tabs handles the drupal theme function. For example, I am trying to display a users interests tag cloud inside of a tab, using the interest and tagadelic modules respectively. Here is the function i'm using inside of my custom callback:

function dload_profile_tags_tab($uid,$account) {
	$result = db_query("SELECT i.counter AS count, t.tid, t.name, t.vid, t.weight FROM {interests} i, {term_data} t WHERE t.tid = i.tid AND i.uid = '%s' ORDER BY t.name DESC", $uid);
	$tags = tagadelic_build_weighted_tags($result, $steps = 6);
	$output = theme('tagadelic_weighted', $tags);
	$output .= '[+]';
	return $output;

If I remove the '$output .= '[+]';', inserted to fix the problem, magic_tabs doesn't expand properly to encapsulate the content. I noticed this with views_tagadelic too, so come to think of it, this may be related to the combined use of magic_tabs/tagadelic (or its use of theme()/CSS).

Best regards,
.

Comments

yhager’s picture

Status: Active » Postponed (maintainer needs more info)

This looks to me like a CSS issue (otherwise, I cannot see how adding a '[+]' to the display fixes the problem).

Can you create a page that demonstrates the problem and send a link?
If not, try to look at the generated HTML and find the offending CSS definition (e.g. using firebug on firefox).

d0t101101’s picture

My site is under heavy development and not accessible outside of the LAN. I'll dig further into the CSS and will definitely let you know how it goes.

Best regards,
.

d0t101101’s picture

Status: Postponed (maintainer needs more info) » Fixed

The latest release (v1.1) resolved this,

Thanks!
.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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