vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   vBulletin CMS Widgets - Animated Flash Tags Widget , Flash Tag Cloud (https://vborg.vbsupport.ru/showthread.php?t=237643)

s_cocis 11-14-2012 10:19 AM

4.2.0
ok!

Neptun 11-21-2012 01:27 PM

is this Widget working without problems on
vb 4.1.10 ?!

Thank you

DoumDoum5058 12-27-2012 07:35 AM

Hi,

This widget is working on VBulletin 4.2
The PHP code is :

PHP Code:

$flashWidth  = '275px'; 
$flashHeight = '275px'; 
$flashPath = 'tagcloud.swf'; 
$flashBackgroundColor = 'ffffff'; 
$tagCount = 35; 
$tagMaxSize = 18; 
$tagMinSize = 8; 

// Colors are in hex 
$data['tcolor'] = '0x000000'; 
$data['tcolor2'] = '0x336699'; 
$data['hicolor'] = '0x000000'; 
$data['speed'] = 100; 
$data['distr'] = 'true'; 
$data['mode'] = 'tags'; 

$contentTypes = array(2=>'tags.php?tag=',18=>'tags.php?tag=',15=>'blog.php?tag=');

/* No Editing Below This Line*/ 

global $vbulletin; 

// %d 

$query = sprintf("SELECT Tag.tagid, Tag.tagtext, TagContent.contenttypeid, COUNT( TagContent.tagid ) AS count FROM ".TABLE_PREFIX."tag AS Tag LEFT JOIN ".TABLE_PREFIX."tagcontent AS TagContent ON ( Tag.tagid = TagContent.tagid ) GROUP BY TagContent.tagid ORDER BY count DESC LIMIT %d",$tagCount);

$qtags = vB::$db->query_read($query); 

while($tag = vB::$db->fetch_array($qtags)) { 
    $tags[] = $tag; 
    $tagSize[$tag['tagtext']] = $tag['count']; 


// largest and smallest array values 
$maxQty = max(array_values($tagSize)); 
$minQty = min(array_values($tagSize)); 

$spread = $maxQty - $minQty; 
if ($spread == 0) { 
        $spread = 1; 


$step = ($tagMaxSize - $tagMinSize) / ($spread); 

// make the tag cloud 
$tagsHTML  = ""; 
foreach ($tags as $tag) 

    $size = round($tagMinSize + (($tag['count'] - $minQty) * $step)); 
    $text = $tag['tagtext']; 

    $url = $vbulletin->options['bburl'].'/tags/'.$contentTypes[$tag['contenttypeid']].urlencode($tag['tagtext']);
    $tagsHTML .= "<a href='$url' style='$size'>$text</a>"; 


$data['tagcloud'] = '<tags>'.$tagsHTML.'</tags>'; 

$flashVars = ""; 

foreach($data as $var=>$val) 

    $flashVars .= (empty ($flashVars))?'':'&'; 
    $flashVars .= "$var=".urlencode($val); 


ob_start(); 
?> 
<embed width="<?php echo $flashWidth;?>" height="<?php echo $flashHeight;?>" flashvars="<?php echo $flashVars;?>" wmode="transparent" allowscriptaccess="always" quality="high" bgcolor="#<?php echo $flashBackgroundColor;?>" name="vbCloudFlash" id="vbCloudFlash" style="" src="<?php echo $vbulletin->options['homeurl'].'/'.$flashPath;?>" type="application/x-shockwave-flash"/> 
<?php 

$content 
ob_get_contents(); 
ob_end_clean(); 

$output $content;

Thank you for your work ngcoders

marccap 01-23-2013 12:12 PM

Works on 4.2 but its not centered

screen cap - http://gyazo.com/3b14b2d220b3a57bb36ea1c76469c6b0

fxdigi-cash 01-29-2013 11:24 PM

I tried it on vb.4.2 pl3 English and none English versions, but not working at all.

There is some issue going on on displaying....

any idea how to get around that?

john7911 03-17-2013 11:45 AM

Thank you ;)

Bubble #5 08-31-2013 06:43 PM

Using 4.2.1

Was doing fine until I got to this part:

Quote:

? Goto Admincp->vBullietin CMS->Layout Manager
? Click Go on the Default Layout
? Add the Widget to your Layout
? Click Save
There is no default layout. What should we choose?

Thanks.

davidg 09-03-2013 03:28 PM

Quote:

Originally Posted by marccap (Post 2398930)
Works on 4.2 but its not centered

screen cap - http://gyazo.com/3b14b2d220b3a57bb36ea1c76469c6b0

change from this:
Code:

$flashWidth  = 330;
$flashHeight = 330;

to:
Code:

$flashWidth  = 250;
$flashHeight = 250;


Poker Face 09-14-2013 11:59 PM

Does Not Work with 4.2.1, Blank Widget on CMS, made all changes throughout this entire thread to no avail...

Marked as; Installed & Uninstalled

< Removed >

Too Bad, I Like It!

K4GAP 09-23-2013 12:17 AM

Everything works great on 4.2.1 but, the flash object is not centered in the widget. How can I correct this?

My widget is set at 300px wide.

I tried decreasing the object width but that did not help.


All times are GMT. The time now is 01:04 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01255 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete