I have a problem viewing my Taggly block from IE. But no problems from FireFox.

This really is weird.

Anyone has an idea?

Thanks

Morten E

CommentFileSizeAuthor
#4 taconomycloud.patch2.2 KBMaver77

Comments

erik seifert’s picture

They make wrong code . IE is completly forgotten in this code.

Version 1.0

@see from line 235

	      $content .=	'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'.$width.'" height="'.$height.'" id="taggly" align="middle">
					    <param name="allowScriptAccess" value="sameDomain" />
						<param name="allowScriptAccess" value="sameDomain" />
						<param name="allowFullScreen" value="false" />
					    <param name="flashvars" value="'.$flashVars.'" />		
						<param name="movie" value="'.$base.$tagcloudUrl.'/taggly.swf" />
						<param name="quality" value="high" />
					    <param name="scale" value="showall" />
					    <param name="bgcolor" value="#ffffff" />
					    <param name="menu" value="false" />
				<embed src="'.$base.$tagcloudUrl.'/taggly.swf" menu="false" flashvars="'.$flashVars.'" quality="high" scale="showall" bgcolor="'. $background .'" wmode="'.$wmode.'" width="'.$width.'" height="'.$height.'" name="taggly" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
			</object>';
jamesmcd’s picture

Same problem, I've set Taggly as a header on my homepage and in Firefox, Camino & Safari it fits the page as I set it to do (900px)
However with Internet Explorer it only fills half the header, and its height has increased dramatically. The main issue is also that the flash does not play, even though all computers tested had the latest version of flash installed.

Which areas of the code need correcting here? Does anyone know?

Many thanks

Maver77’s picture

Replace the function theme_taggly_contents() with the one below. I have added more corrections for the backgroundand wmode and removed the duplicated parameter.

function theme_taggly_contents() {

	  $base=base_path();
      
      //parameters for swf
      $result_parameter=db_query('SELECT * FROM {tagcloud}');
      while($row_parameter=db_fetch_array($result_parameter))
      {
      	$background=$row_parameter['background'];
      	$foreground=$row_parameter['foreground'];
      	$vid=$row_parameter['vocab_id'];
		$height=$row_parameter['height'];
      	$width=$row_parameter['width'];
      	$wmode=$row_parameter['wmode'];
      }
      //
      
      if($vid)
      {
      $tags .= '<root>';
      	$terms=taxonomy_get_tree($vid);
		$base=base_path();
		foreach ($terms as $term)
		{
				$tags .= "<content name='".$term->name."' url='". $base ."taxonomy/term/".$term->tid ."' />";
		}
		$tags .= '</root>';
	      
	      $tagcloudUrl=drupal_get_path('module','taggly');

	      $flashVars="bgcolor=0x$background&fontcolor=0x$foreground&tagglycontent=$tags";
	      
	      $content .=	'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'.$width.'" height="'.$height.'" id="taggly" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
	<param name="allowFullScreen" value="false" />
    <param name="flashvars" value="'.$flashVars.'" />		
	<param name="movie" value="'.$base.$tagcloudUrl.'/taggly.swf" />
	<param name="quality" value="high" />
    <param name="scale" value="showall" />
	<param name="bgcolor" value="'. $background .'" />
    <param name="menu" value="false" />
	<param name="wmode" value="'.$wmode.'" />
    	
		<embed src="'.$base.$tagcloudUrl.'/taggly.swf" menu="false" flashvars="'.$flashVars.'" quality="high" scale="showall" bgcolor="'. $background .'" wmode="'.$wmode.'" width="'.$width.'" height="'.$height.'" name="taggly" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
	</object>';
	return $content;

      }
    else 
    return null;
}
Maver77’s picture

StatusFileSize
new2.2 KB

I have put this into a patch

excaliburst’s picture

Does anyone know when it will be available in the Dev version of Cumulus/Taxonomy Cloud/Taggly.

david1409’s picture

Hum, I tried the fix and it just crashed my entire site, on IE8.

Is this module being supported any more? nothing seems to have changed for months.

Dave

excaliburst’s picture

Wow this was embarassing.

I just neded a Flash player installed. Now everything runs honky-dory!

Thanks

M

excaliburst’s picture

Status: Active » Closed (fixed)