PDA

View Full Version : vBulletin CMS Widgets - Animated Flash Tags Widget , Flash Tag Cloud


ngcoders
03-05-2010, 10:00 PM
Flash Tag Cloud

Released 6/3/2010
By Vikas - http://www.ngcoders.com
Demo - http://www.roboticsindia.com , Look at left sidebar

Installation


Goto Admincp->vBullietin CMS->Widgets->Create New Widget
Choose PHP Direct Execution as Widget's Type
Place a Title. eg Upcoming Events. Keep it short as this is what will appear as title on your pages.
Click Save
Click Configure on the right of the new created widget.
Remove the default code that appears. Be sure to not leave behind even a single letter.
Copy and Paste the code that you can find below.
Leave the template name as is (vbcms_widget_execphp_page)
Click Save
Goto Admincp->vBullietin CMS->Layout Manager
Click Go on the Default Layout
Add the Widget to your Layout
Click Save
Download the attached tagcloud.zip and extract it.
Upload tagcloud.swf to root directory of your vbulletin install
That's all !!


PHP Code



$flashWidth = 330;
$flashHeight = 330;
$flashPath = 'tagcloud.swf';
$flashBackgroundColor = 'ffffff';
$tagCount = 30;
$tagMaxSize = 16;
$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=',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['homeurl'].'/'.$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))?'':'&amp;';
$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;




It is based on WP-Cumulus , to change settings please refer to this page -

http://www.roytanck.com/2009/03/11/how-to-use-wp-cumulus-shortcodes/

dihuta
03-06-2010, 12:09 PM
Great! But some characters doesn't display.

I found an arcticle which explain how to embed more characters (utf-8, other languages) into WP-Cumulus, but This vbulletin tagcloud version may different. Could you please give us the source code version?

Thank you very much.

is_it_me
03-06-2010, 12:54 PM
Loving it. :)

Any way for this newbie to be able to get it to work as a 'forum block' too?

denman75
03-06-2010, 01:16 PM
lol its nice ,tnx for this

haXan
03-06-2010, 02:05 PM
Like at Wordpress tag cloud...

Thanks...

ngcoders
03-06-2010, 02:05 PM
The source is available at WP-Cumulus wordpress page, I have modified it. Can you tell which character are causing issues.

ericgtr
03-06-2010, 03:17 PM
Great mod here, installed!

Candostum
03-06-2010, 03:51 PM
Great mod thanks installed.

GiveMeABreak
03-06-2010, 05:50 PM
with cyrillic errors in charset...

DjEddie
03-06-2010, 09:41 PM
hi i get this error once everythings been installed and checked ..



Warning: array_values() [function.array-values]: The argument should be an array in [path]/packages/vbcms/widget/execphp.php(177) : eval()'d code on line 35

Warning: Wrong parameter count for max() in [path]/packages/vbcms/widget/execphp.php(177) : eval()'d code on line 35

Warning: array_values() [function.array-values]: The argument should be an array in [path]/packages/vbcms/widget/execphp.php(177) : eval()'d code on line 36

Warning: Wrong parameter count for min() in [path]/packages/vbcms/widget/execphp.php(177) : eval()'d code on line 36

Warning: Invalid argument supplied for foreach() in [path]/packages/vbcms/widget/execphp.php(177) : eval()'d code on line 47


any help ?

thank you :)

WNYorker
03-06-2010, 09:53 PM
When i click a tag it takes it to a dead link.

For example, i click "Clown" and it takes me to mysite.com/clown.

Any help?

dihuta
03-06-2010, 11:18 PM
The source is available at WP-Cumulus wordpress page, I have modified it. Can you tell which character are causing issues.

I need to embed these characters so tagcloud.swf can display my language properly (vietnamese).
Character set: ???????????????ĂĐĨŨƠ???????????????ăđĩũơƯĂẠẢẤẦẨẪẬẮ ẰẲẴẶẸẺẼỀỀỂ ưăạảấầẩẫậắằẳẵặẹẻẽềềểỄỆỈỊỌỎỐỒỔỖỘỚỜỞỠỢỤỦỨỪễệỉịọỏốồổỗ ộớờởỡợụủứừỬỮỰỲỴ?ỶỸửữựỳỵỷỹ

(Open source file, click textbox and click Character Embedding... button. Paste that characters in to Include these characters and click Auto Fill.)

Could you please help me embed these?

with cyrillic errors in charset...
This case you need embed all cyrillic charset (see bellow screenshot). We may need a seperate version of tagcloud.swf for each specific language.

http://photo.tinhte.com/?id=209464&d=1267924621&f=199962&uid=1&n=Screen shot 2010-

ngcoders
03-07-2010, 05:19 AM
@DjEddie - I think the sql query is not returning tags in your case , are are posts tagged in your site.

@ NYorker - I belive tags returned are for some contenttypeid which i dont know about , this will need you to change $contentTypes array and put in the correct url for it.

Dr.osamA
03-07-2010, 06:34 AM
thanx man

but i think this mod don't work in Arabic forums

can use other Character
________
YAMAHA QY10 (http://www.yamaha-tech.com/wiki/Yamaha_QY10)

Diablotic
03-07-2010, 07:14 AM
Tagged for future use when all characters are displayed correctly

STORMS
03-07-2010, 10:25 AM
Is it possible to display this tag cloud on the Vbulletin Side Bar, on my forum home?

ngcoders
03-07-2010, 12:14 PM
@STORMS

add a where to the query - WHERE TagContent.contenttypeid = 2

And it should work fine, itll only access forum tags.

STORMS
03-07-2010, 10:31 PM
@STORMS

add a where to the query - WHERE TagContent.contenttypeid = 2

And it should work fine, itll only access forum tags.

I'm uncertain how that works.

Also, when I use this on the Vb CMS, all it reads is "Ponder." I'm not sure how I can change that either.

DjEddie
03-08-2010, 10:55 AM
@DjEddie - I think the sql query is not returning tags in your case , are are posts tagged in your site.

@ NYorker - I belive tags returned are for some contenttypeid which i dont know about , this will need you to change $contentTypes array and put in the correct url for it.

its a new site .. so no tags have been made yet. ... so am i guessin right that those errors that I got is because no tags have been created? .. and if topics had the tags those errors would go away?

darren1981
03-08-2010, 11:09 AM
Great mod :)

I wonder is this is SE Friendly tho ?

ngcoders
03-08-2010, 01:11 PM
@DjEddie ... Yep , ur right
@darren1981 ... Currently no , but can be made very easily

Doctor Death
03-08-2010, 01:39 PM
I put this onto my 4.0.2 install and it remained a blank frame. The install was by the book. Anyone else have that issue?

Thanks!

Mastermaik
03-08-2010, 02:16 PM
Same Problem as the doc.


No activity shown...... :(

nextslit
03-08-2010, 02:29 PM
Nice mod , thanks : )

ngcoders
03-08-2010, 05:36 PM
If its showing blank , it means you have no tags in your system. Please check if you have tagged threads / blog posts.

ThorstenA
03-08-2010, 07:53 PM
An integration with the Tag Cloud on Forumdisplay (https://vborg.vbsupport.ru/showthread.php?t=229475) product would be very nice !

pilotxx
03-08-2010, 08:02 PM
i found the problem.
the code option[homeurl] did not get the full path. it take it without the "HTTP://".
the same problem is with the links.
can you fix it?

LuckyNeo
03-08-2010, 10:30 PM
I'd like to have a cloud of tags for the forum! I would be very grateful if such a hack!

kho91
03-09-2010, 03:46 PM
th's don't word with internet explorer

pilotxx
03-09-2010, 03:55 PM
Hii

one more problem. my site is in hebrew and i get the hebrew tag as gibrish.
where can i change it to unicode?

Bouncer222
03-14-2010, 05:21 AM
I don't use the default CMPS, but use vbadvanced, how to implement it with that?

Jabong82
03-14-2010, 08:51 AM
What exactly does this do?

Is this for like search engine optimization?

Dennis Kaczor
03-14-2010, 02:35 PM
Hello all, installed this and it seems to be working with the exception when you click on the Tag Cloud link it goes to a black page see below.

http://www.XXXXXXXXX.com/tags.php?tag=hdr+images+cherry+beach

This should be for my forum:
http://wwwXXXXXXXXX.com/forums/tags.php?tag=hdr+images+cherry+beach.

What code would I need to change in order for this to work.

Thanks in advance

Dennis

ngcoders
03-15-2010, 07:02 AM
Hello all, installed this and it seems to be working with the exception when you click on the Tag Cloud link it goes to a black page see below.

http://www.XXXXXXXXX.com/tags.php?tag=hdr+images+cherry+beach

This should be for my forum:
http://wwwXXXXXXXXX.com/forums/tags.php?tag=hdr+images+cherry+beach.

What code would I need to change in order for this to work.

Thanks in advance

Dennis

replace

$vbulletin->options['homeurl']

with

$vbulletin->options['homeurl'].'/forums/'

Dennis Kaczor
03-15-2010, 01:36 PM
replace

$vbulletin->options['homeurl']

with

$vbulletin->options['homeurl'].'/forums/'

This looks so simple, yet it does not seem to go to my forums. Is this correct with adding the forums in this area?

Here is the change


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

I get this error message on the Home Screen, when I made the changes below

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/XXXXXXXXX/www/www/forums/packages/vbcms/widget/execphp.php(177) : eval()'d code on line 52

Das UndergrounD
03-17-2010, 05:21 AM
as I do for version 3.8?

DaanLT
03-17-2010, 10:36 AM
Only English chars, big minus. We need international chars support.

sKippah
03-17-2010, 03:24 PM
Thanks for this, very nice one. Works fine.

Selcor
03-17-2010, 04:19 PM
When I add the widget, shows the error:

Warning: array_values() [function.array-values]: The argument should be an array in [path]/packages/vbcms/widget/execphp.php(177) : eval()'d code on line 35

Warning: Wrong parameter count for max() in [path]/packages/vbcms/widget/execphp.php(177) : eval()'d code on line 35

Warning: array_values() [function.array-values]: The argument should be an array in [path]/packages/vbcms/widget/execphp.php(177) : eval()'d code on line 36

Warning: Wrong parameter count for min() in [path]/packages/vbcms/widget/execphp.php(177) : eval()'d code on line 36

Warning: Invalid argument supplied for foreach() in [path]/packages/vbcms/widget/execphp.php(177) : eval()'d code on line 47

:s

Dennis Kaczor
03-19-2010, 03:12 PM
This looks so simple, yet it does not seem to go to my forums. Is this correct with adding the forums in this area?

Here is the change


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

I get this error message on the Home Screen, when I made the changes below

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/XXXXXXXXX/www/www/forums/packages/vbcms/widget/execphp.php(177) : eval()'d code on line 52

Never mind, found how to solve this....

ecky
03-23-2010, 01:06 PM
Never mind, found how to solve this....

I'm having exactly the same problem. Would you mind sharing your solution?

Dennis Kaczor
03-23-2010, 02:29 PM
I'm having exactly the same problem. Would you mind sharing your solution?

Sure can share this

['homeurl'].'/forums/''/'.$contentTypes[$tag

The above was what I was given to get this to work, but it gave me errors, so I changed this code to the following an it worked.

['homeurl'].'/forums/'.$contentTypes[$tag

It was that simple.

Dennis

ecky
03-23-2010, 03:49 PM
Thanks Dennis. I had already tried this but still have an empty white widget on vb 4.0.2. Very nice mod if I could make this work. Uninstalled it for now.

Doctor Death
03-24-2010, 05:47 PM
I too get an empty white widget box. Sure would like to see this work on my 4.0.2 install.

alashram
03-25-2010, 06:34 PM
I think it doesn’t work with 4.0.2 :(

nkumaran
03-27-2010, 08:36 AM
Thank You.

is_it_me
03-27-2010, 08:54 AM
I too get an empty white widget box. Sure would like to see this work on my 4.0.2 install.

I think it doesn?t work with 4.0.2 :(

I have it installed and working on 4.02 - see bottom left of the homepage on the link in my signature.

ecky
03-27-2010, 09:39 AM
I have it installed and working on 4.02 - see bottom left of the homepage on the link in my signature.

I stand corrected, it clearly does work on 402. It must be another mod conflicting and I also use the /forum/ subfolder. Would I have to clear the CMS cache every time I do a code edit to make this work?

alashram
03-27-2010, 04:07 PM
I have it installed and working on 4.02 - see bottom left of the homepage on the link in my signature.

I should mention that I don?t assign tags on CMS, I only promote articles directly from the forums which are tagged already but on CMS (Front page) they are not tagged I think I have to tag them again, perhaps that?s the reason why it didn?t work for me. Can this widget also list tags from the forums?

woffie
03-28-2010, 05:36 PM
Looks nice. It would be cool if it worked.

kyle
03-31-2010, 07:20 PM
yes it is a great looking and usfull hack. any updates on this working?

kyle
03-31-2010, 07:22 PM
anyopne know if theirs any other Tag Cloud hacks we could use for side bar?

jpwilliams
04-04-2010, 02:09 AM
I'm having a problem with broken links in my tag cloud. The weird thing is, one link in the cloud works perfectly, but the rest are broken.

My site is www.blickees.com. If you click on the "donovan mcnabb" tag it goes to:

http://www.blickees.com/tags.php?tag=donovan+mcnabb

However every other tag goes to:

http://www.blickees.com/<tag>

Any ideas?

jpwilliams
04-04-2010, 02:34 AM
I'm having a problem with broken links in my tag cloud. The weird thing is, one link in the cloud works perfectly, but the rest are broken.

My site is www.blickees.com. If you click on the "donovan mcnabb" tag it goes to:

http://www.blickees.com/tags.php?tag=donovan+mcnabb

However every other tag goes to:

http://www.blickees.com/<tag>

Any ideas?

Fixed this problem by changing:

$url = $vbulletin->options['homeurl'].'/'.$contentTypes[$tag['contenttypeid']].urlencode($tag['tagtext']);

TO:

$url = $vbulletin->options['homeurl'].'/'.'tags.php?tag='.urlencode($tag['tagtext']);

kyle
04-13-2010, 04:14 PM
When I add the widget, shows the error:

Warning: array_values() [function.array-values]: The argument should be an array in [path]/packages/vbcms/widget/execphp.php(177) : eval()'d code on line 35

Warning: Wrong parameter count for max() in [path]/packages/vbcms/widget/execphp.php(177) : eval()'d code on line 35

Warning: array_values() [function.array-values]: The argument should be an array in [path]/packages/vbcms/widget/execphp.php(177) : eval()'d code on line 36

Warning: Wrong parameter count for min() in [path]/packages/vbcms/widget/execphp.php(177) : eval()'d code on line 36

Warning: Invalid argument supplied for foreach() in [path]/packages/vbcms/widget/execphp.php(177) : eval()'d code on line 47

:s

I am getting the same error, where could be the problem? Can you help me resolve this? my vb version is 4.0.2

Antiblank
04-13-2010, 11:03 PM
Works just fine out of the box on 4.0.2

Thanks for the work.

Kingdombuilder
04-14-2010, 05:00 AM
Did not work on my 4.0.2 either, I use tags on the forum and on the CMS page. Noting showed up in the widget accept the date.

Bob_R
04-17-2010, 01:26 PM
Will check this out later. Looks cool. :up:

Bob_R
04-17-2010, 02:39 PM
What else needs to be done to ensure it shows on the forums and not on the CMS? Do you still have to create the widget as if it'll be a CMS widget?

Here's my error:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/xxxxxxxxx/public_html/talkclassicrock.com/forums/packages/vbcms/widget/execphp.php(177) : eval()'d code on line 3

Bob_R
04-17-2010, 08:31 PM
Listed below are the instructions given for this mod to work on your CMS page.

What must one do differently as per the instructions to get it as a forum sidebar?

Thanks!!

Installation

* Goto Admincp->vBullietin CMS->Widgets->Create New Widget
* Choose PHP Direct Execution as Widget's Type
* Place a Title. eg Upcoming Events. Keep it short as this is what will appear as title on your pages.
* Click Save
* Click Configure on the right of the new created widget.
* Remove the default code that appears. Be sure to not leave behind even a single letter.
* Copy and Paste the code that you can find below.
* Leave the template name as is (vbcms_widget_execphp_page)
* Click Save
* Goto Admincp->vBullietin CMS->Layout Manager
* Click Go on the Default Layout
* Add the Widget to your Layout
* Click Save
* Download the attached tagcloud.zip and extract it.
* Upload tagcloud.swf to root directory of your vbulletin install
* That's all !!

Bob_R
04-21-2010, 03:28 PM
Is there an answer in our future?

When I go to put it in the forums block, if I even have to do that like I said the instructions don't clearly explain how to put it in your forums, the template reads block_html whereas to put in the CMS it's vbcms_widget_execphp_page

What must one do differently as per the instructions to get it as a forum sidebar?

Thanks

Bob_R
04-25-2010, 02:14 AM
Uninstalled.

OK. I suspected I was right that it didn't work on the forum page and the silence has confirmed it.

I also checked a poster's site in this thread who was asking about getting it to work on the forum and he said he did. But, if you check his site it's on the CMS not the forum.

Videx
04-26-2010, 01:27 AM
It does seem darn silly to have a list of forum tags that can't even go on the forum!

But I don't know that tags are even being updated, as I don't see any kind of scheduled task doing it. And I know my users aren't manually adding any tags anyway.

NashChristian
05-13-2010, 08:25 AM
Great Mod! Thanks!

It is pulling content fine from both the Forums and CMS, I'm not sure what everyone is talking about.

Functionally, the mod is working fine for me. I do however have 3 SMALL display issues, which I'm hoping you can help me with (NGCoders). I checked your demo site (roboticsindia.com) and I noticed that your site doesn't have any of the 3 display problems, so I'm guessing you must have found a way to correct them on your site. Please share with us how you fixed them, so I can do the same.

First of all, my widget isn't in a fixed width column, so sometimes it will be wider than 330px, and other times it will be narrower than 330px (the same as on your site). To help compensate for this, I wrapped the <embed> tag with a <center> tag. That is the ONLY change I made to your original code.

Here are two screen shots of the widget on my site:

Narrower than 330px:

http://nashvillechristian.com/images/support/tag_cloud_narrow.jpg

Wider than 330px:

http://nashvillechristian.com/images/support/tag_cloud_wide.jpg

Here are my 3 display issues:

On the narrower width widget, the cloud does not stay in the CENTER of the widget, it favors the right side.
On the narrower width widget, the cloud text is overlapping the widget padding on the right side.
On the wider width widget, the tags are CLIPPING-OFF on the far right and left sides (see the right edge of "freedom").


DEMO (http://nashvillechristian.com)

Can you please share with us how you fixed these three issues on your site? I don't see any of the same problems on your site at all.

Thanks for the mod and thanks in advance for the help!
:) Jeff

sKippah
05-13-2010, 02:05 PM
@NashChristian: U have to play around a bit with this part

$flashWidth = 330;
$flashHeight = 330;
$flashPath = 'tagcloud.swf';
$flashBackgroundColor = 'ffffff';
$tagCount = 30;
$tagMaxSize = 16;
$tagMinSize = 8;

I dont know anymore where to find the code on the original page. coz there was written what is what for.

As i was searching a bit i saw some of these flash Clouds with colored tags. is this possible here too in any way???

Bob_R
05-13-2010, 02:17 PM
Great Mod! Thanks!

It is pulling content fine from both the Forums and CMS, I'm not sure what everyone is talking about.

Functionally, the mod is working fine for me.

Then please post the code that you used to make it work on the forum.

Correction. Forget it. I checked your site. I too have it on my forum. I'm speaking of putting it on the forum with animation. That cannot be done with this mod. For the animation it must be on the CMS

ngcoders
05-14-2010, 07:09 AM
Try changing the following -



$flashWidth = '100%';
$flashHeight = '100%';

NashChristian
05-21-2010, 03:13 PM
Try changing the following -



$flashWidth = '100%';
$flashHeight = '100%';



Hello,

Thanks for the feedback.

Is that the only change you made to the code listed in this mod, for your personal site: http://www.roboticsindia.com? Did you not need to use any code to CENTER it?

The biggest bummer I see with setting this to 100%, is when you have a wider screen resolution and a wider widget, the text in the cloud still stays tiny. Here are a couple screen shots:

http://nashvillechristian.com/images/support/tag_cloud_330px.jpg
(This is at a fixed 330 px width.)


http://nashvillechristian.com/images/support/tag_cloud_100.jpg
(This is at 100% width and height.)


Do you know of a way to make the cloud larger, without screwing up the display? Do you have access to the source .FLA file, where the height and width could be increased?

This is cool! It just needs some tweaking.

Thanks for your help.
:D Jeff

NashChristian
05-21-2010, 03:40 PM
Alright, a little bit better, but still not perfect:

I figured out that you can force the height to a certain dimension and stretch the .swf, while leaving the width at 100% so not to break the widget padding.

Here's what I'm using now:

$flashWidth = '100%';
$flashHeight = '275px';

The only down side, is if you use a (narrow) low resolution monitor, it will still force the widget to be 275 px high. So if it is 150px wide, it is STILL going to be 275px high. (Which doesn't look too good.) But at least for the rest of the world with wider monitors, it looks a lot better than tiny text.

Hope that helps someone.

If ANYONE knows of a BETTER way to enlarge this without screwing up the display at different resolutions, please let me know.

Thanks!
Jeff

hendri
05-21-2010, 10:32 PM
how to change the cloud to links that i want to put inside ? any idea ?

chuckhodson
05-29-2010, 03:58 AM
Looks cool but does not work 4.0.3

ged
06-08-2010, 05:59 PM
How can I change its charset? We're a Turkish forum and some characters don't show up correctly.

caciocode
08-10-2010, 06:04 PM
Can this be added to the Forums section

morrow
09-08-2010, 12:43 AM
Doesn't work on 4.0.6... at least not for my site.

bandare
09-11-2010, 07:14 PM
Works fine for me but if I click on one of the tags that is linked to an article, I get a 404 error. If its a tag that relates to forum posts it works.... or blogs... just not articles

Mr_Running
09-15-2010, 12:36 PM
[QUOTE=bandare;2096851]Works fine for me but if I click on one of the tags that is linked to an article, I get a 404 error. If its a tag that relates to forum posts it works.... or blogs... just not articles[/QUOTE

Not on articles...this is my finding too.
When using the tag in a search (ie google) found and works but not from the tag cloud.

wombycat
09-19-2010, 10:59 AM
has anyone got this working in 4.0.7? I am just getting a blank widget. I have tags in blogs, forums and cms. what am i doing wrong?

sticky
10-08-2010, 07:23 AM
has anyone got this working in 4.0.7? I am just getting a blank widget. I have tags in blogs, forums and cms. what am i doing wrong?

I'm on 4.0.2 but have a blank widget as well.

sticky
10-08-2010, 07:31 AM
I'm on 4.0.2 but have a blank widget as well.

Ok, duh, didn't have the .swf uploaded.

Works, but for some reason it isn't centered.

sticky
10-08-2010, 07:54 AM
Got it centered by using 100% for width but can't seem to get the proportions to look like they do in the screen shot.

myco
11-08-2010, 02:24 PM
works fine in 4.08
Thank you

gokhansancar
11-16-2010, 03:33 PM
Thanks, it is working just perfect

caciocode
11-16-2010, 03:59 PM
Does this work in .8

gokhansancar
11-16-2010, 06:07 PM
yes it is working, check it out on my website
devteacher.com

Baf_Jams
11-16-2010, 07:03 PM
Great Mod
Works a treat took some figuring out as when i clicked on one of the tags it took me to a 404 page :(
had to follow instructions from post 34 to sort it out
replace

$vbulletin->options['homeurl']

with

$vbulletin->options['homeurl'].'/forums/'

dcuellar
11-16-2010, 11:25 PM
I'd like to know how to get it on a forum block. I've seen others ask for it but no one has posted a solution yet. Any help?

asylum119
12-07-2010, 12:23 PM
Thanks
Works just fine, Bloooody Brilliant

Can any one alter the code so it displays search tags ? pleeeease

If any one could do this can you please post it here or email me asylum119 at hotmail dot com

asylum119
12-10-2010, 11:13 AM
I'd like to know how to get it on a forum block. I've seen others ask for it but no one has posted a solution yet. Any help?

Hope this helps

upload tagcloud.swf to root

admin > forums and moderations > forum blocks manager > add block (see attached image and insert code into content)

Done, Might want to play with the following to suit (located in content code)

$flashWidth
$flashHeight
$tagMaxSize
$tagMinSize

If you want a 4.1.0 Patch Level 2 demo visit my sig

luciano99999
12-11-2010, 12:05 AM
[QUOTE=bandare;2096851]Works fine for me but if I click on one of the tags that is linked to an article, I get a 404 error. If its a tag that relates to forum posts it works.... or blogs... just not articles[/QUOTE

Not on articles...this is my finding too.
When using the tag in a search (ie google) found and works but not from the tag cloud.

For articles

replace line 17

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

with

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


$flashWidth = 330;
$flashHeight = 330;
$flashPath = 'tagcloud.swf';
$flashBackgroundColor = 'ffffff';
$tagCount = 30;
$tagMaxSize = 16;
$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['homeurl'].'/'.$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))?'':'&amp;';
$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;


:D

webmaster74
12-31-2010, 12:52 AM
I would love to see this mod as a fully mature product able to display arabic and french characters correctly.

If it is also SEO - friendly, (add the texts and links in the alt tags of the flash), I'd pay money for that.

dealzoid
01-03-2011, 01:03 PM
as the title states, tag cloud in sidebar, animated, forum page, getting tags from threads.
I hope others find this useful.

www.dealzoid.com

webmaster74
01-03-2011, 01:53 PM
as the title states, tag cloud in sidebar, animated, forum page, getting tags from threads.
I hope others find this useful.

www.dealzoid.com (http://www.dealzoid.com)

yes, but only using ascii chars......... :(

webmaster74
01-03-2011, 02:28 PM
dealzoid wrote : just curious, what do you want it to display?

well non-ascii characters.... such as : J'aime la langue de Moli?re ? ? ? ? ? ? ? ? ? ? ?

trophyrider
01-27-2011, 02:32 AM
You can add this as a forum block as seen on my website:
http://www.sporttouring.us

Go to forum block manager in admincp, add a forum block, paste the php code into the block, make sure php/direct execution is ticked, save. Upload the swf file to your vb root directory.

SSG.D
02-24-2011, 12:18 AM
Works as is out of the box on 4.0.8 Thank you for your work. http://www.masterofwar.net/content.php All I had to do was adjust the size from 330 to 200

Just on 4.1.0 and up I get all the errors . But then again that's building a site from scratch with not much of any tags to draw from.. So I will give it another go on 4.1.2 after I build more content with tags.

Thanks again for your work and to the crew that made the swf file!

SSG.D
02-24-2011, 11:12 AM
Update: The Number of tags you have associated with your forum is everything and can produce many types of errors. So if your building a new forum adjust your tag count, as your forum grows and tags grows you can always adjust it up. See tagCount below

$flashWidth = 200;
$flashHeight = 200;
$flashPath = 'tagcloud.swf';
$flashBackgroundColor = 'ffffff';
$tagCount = 8;
$tagMaxSize = 16;
$tagMinSize = 8;

This Mod works just fine with VB 4.1.1 and 4.1.2

Remember you may need to clear your CMS cache and Clear your Browser History after you make adjustments. This Prevents Hair Loss ;)

WNYorker
03-14-2011, 09:56 PM
Thanks jpwilliams! Worked for me 2.

cuocsongso
04-08-2011, 07:58 AM
It's blank.
When I right click on flash. It say "movies not loaded".
What happen. I use 4.1

amd2010
04-08-2011, 01:48 PM
thanx man

but i think this mod don't work in Arabic forums

can use other Character

nick221
04-08-2011, 09:42 PM
Any sites that have this on that I could take a look at? Thanks

YkudzA
04-18-2011, 06:54 PM
dont work
$contentTypes = array(2=>'tags.php?tag=',15=>'blog.php?tag=');
When I`m clicking to a tag, it redirected me to mysite.com/XXX , but not mysite.com/tags.php?tag=XXX

:(

amd2010
04-20-2011, 11:23 AM
dont work

mysite

http://www.docskings.com/forum/content.php

xcitezone
05-10-2011, 12:03 AM
Hi,

I tried to install it, but got this error :

Fatal error: Class 'vB' not found in /home/content/67/7675167/html/xcitezone/forum/modules/vbcms_widget_execphp_page.php on line 37

Any clues ? I am using VB 4.0.8.

xcitezone
05-12-2011, 06:32 AM
Nobody replied :(

shakirulqadree
05-15-2011, 11:29 AM
installed but not working with Arabic/Urdu forums

persianpros
05-19-2011, 09:06 AM
it's not working on my forums

vb 4.1.3

and i don't have php direct execution option in block manager

mist2
06-08-2011, 02:49 AM
it's not working on my forums

vb 4.1.3

and i don't have php direct execution option in block manager

Should be widget type = php direct execution

Its working on mine. VB 4.1.3

voter
06-08-2011, 06:19 PM
WP-Cumulus Dosn't work with non latin utf-8 charters. http://wordpress.org/support/topic/wp-cumulus-and-utf-8-characters.

gyancentral
06-12-2011, 05:46 AM
is it possible to make the tag cloud horizontally and place it below the forums instead of sidebar..if possible then how

shrimpca
07-10-2011, 10:33 AM
Works fine for me but if I click on one of the tags . I get a 404 error. If its a tag that relates to forum posts it not works.... or blogs... just articles

weave
07-17-2011, 06:55 PM
I got the same thing I have seen 2 others post about and do not see the suggested fix.

Warning: array_values() [function.array-values]: The argument should be an array in [path]/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 35

Warning: Wrong parameter count for max() in [path]/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 35

Warning: array_values() [function.array-values]: The argument should be an array in [path]/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 36

Warning: Wrong parameter count for min() in [path]/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 36

Warning: Invalid argument supplied for foreach() in [path]/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 47

mrt12345
08-10-2011, 11:11 AM
Same here i got all these errors but i am running 1.1.5 but this version has affected other widgets


Warning: array_values() [function.array-values]: The argument should be an array in [path]/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 35

Warning: Wrong parameter count for max() in [path]/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 35

Warning: array_values() [function.array-values]: The argument should be an array in [path]/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 36

Warning: Wrong parameter count for min() in [path]/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 36

Warning: Invalid argument supplied for foreach() in [path]/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 47 :(

Panosz
08-23-2011, 12:13 PM
I've seen some guys using it on a WP page ...how do they do that???

espkaruna
08-24-2011, 02:55 AM
I have been trying to get this to work with VBAdvanced CMPS with no positive results, anyone have any experience / success stories on getting this to work?

misericorde
09-13-2011, 04:16 AM
it's not working on my forums

vb 4.1.5

MoDz
09-14-2011, 08:53 PM
Mark as installed. Works perfect. Thank you!

misericorde
10-11-2011, 08:53 PM
Hy,

It s' working for 4.1.7

Nice !!!!

tele955848
10-15-2011, 03:33 PM
Was mache ich falsch?
The requested URL /tags.php was not found on this server.

Muß ich hier was ändern?
$contentTypes = array(2=>'tags.php?tag=',15=>'blog.php?tag=');

Doctor Death
10-19-2011, 05:59 PM
Doesnt work for me on 4.1.7, wish it did.

jack-d
11-21-2011, 11:10 PM
I had this working with no issues on 417 but after upgrading to 418 the cloud is off center to the right and rolling on to the center column. Any way to center this in the side widget.

Regards

karlm
11-26-2011, 12:15 AM
Doesn't work with tags created on CMS only.. but works on 4.1.8 with forum made tags.

CMS tags simply go to the homepage with the tag appended.
i.e. www.mydomain.com/some-tag

whereas the forum made tags use...
www.mydomain.com/tags.php?tag=some-tag

Wild Bronco
12-07-2011, 09:05 AM
Doesn't work with tags created on CMS only.. but works on 4.1.8 with forum made tags.

CMS tags simply go to the homepage with the tag appended.
i.e. www.mydomain.com/some-tag

whereas the forum made tags use...
www.mydomain.com/tags.php?tag=some-tag


Same error here in CMS

chq
01-07-2012, 11:46 AM
I just installed the tag cloud as per the instructions and uploaded to my root directory but am getting the following 404 not found error when i click on one of the tags?? :mad::mad:

-------------------------
Not Found

The requested URL /homicide+squad was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
--------------------------

Can anyone help me fix this error?

The forum tag cloud works fine.

Many Thanks

thecore762
01-08-2012, 07:02 AM
Can someone update this plugin?

sergarch
01-12-2012, 06:46 PM
Can someone update this plugin?

It should be good!

Please update it!

alhidaya
02-15-2012, 10:46 AM
Warning: array_values() expects parameter 1 to be array, null given in [path]/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 35

Warning: max() [function.max]: When only one parameter is given, it must be an array in [path]/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 35

Warning: array_values() expects parameter 1 to be array, null given in [path]/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 36

Warning: min() [function.min]: When only one parameter is given, it must be an array in [path]/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 36

Warning: Invalid argument supplied for foreach() in [path]/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 47

I have a problem, my vbulletin is v.4.1.1.0

alhidaya
04-13-2012, 03:01 PM
Hello,

I reinstalled the tag cloud to update vbulletin 4.1.1.2 and it works now.

Thank you for this little product very nice and cute :)

It is installed but when I click on any word in the tag cloud, it does not direct me to the page.

mrt12345
04-21-2012, 02:26 PM
Hi !!! it is working on the 4.1.12 but it is not coming out like in the photo, it is off set more to the right off the framing, just off a little bit but still looks nice . Could anybody give me a tip for centering .and squaring off the box or frame.

thanks nice mod
:up:

cloferba
05-11-2012, 07:09 PM
Change
>options['homeurl'].'/'.$contentTypes[$tag['contenttypeid']].urlencode($tag['tagtext']);
$tagsHTML .= "<a href='$url' style='$size'>$text</a>";

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

Glockie
06-01-2012, 10:52 AM
Gutted, this no longer works for me on 4.2 :confused:

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 :

$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:

? 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
Works on 4.2 but its not centered

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

change from this:
$flashWidth = 330;
$flashHeight = 330;

to:
$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.

theorigin
10-03-2013, 01:13 PM
Is there any way to add style inheritance to the widget? I'm running multiple styles, some dark, some light and I want it to match each one.

MrD
07-22-2016, 11:05 AM
Hi,
is there an Option to make the widget work without flash?

RichieBoy67
07-22-2016, 12:37 PM
Hi,
is there an Option to make the widget work without flash?You just want a widget with tags? I believe there is one already built in.

I definitely would not recommend installing any flash these days.

MrD
07-22-2016, 01:57 PM
Hi,
no there are no Widget with Tags in a Cloud built in :)

RichieBoy67
07-22-2016, 02:11 PM
You want a cms widget for version 4? Yes, there is a tag cloud widget. Go to Create a widget and at the very bottom you should see it.

MrD
07-24-2016, 07:41 AM
The default one is not Animated :D

RichieBoy67
07-24-2016, 07:54 AM
You really shouldn't use flash any more anyways.

JARNAR
06-08-2017, 09:47 AM
Hello, how do install this plugin,so that it is visible in the forum?