Log in

View Full Version : Add-On Releases - CMS Widget Tag Cloud Ver 1.2


Dev.Sun
02-09-2010, 10:00 PM
Someone like me. Want to display Tag Cloud at the forum slidebar out Widget Page Content . I did and rewriting. What you want you can use. If it's useful, then press installed

Features
+ Show TagCloud at CMS Content Page such as Forum Home
+ Total Tags.
+ Link More Tags.

Live demo: http://vnwds.com/content/1-home

ScreenShot:
https://vborg.vbsupport.ru/attachment.php?attachmentid=113178&stc=1&d=1267254689

Step 1
Go to yoursite/admincp and select vBulletin CMS ~~> Widgets
Press Create New Widget

At Widget Type select PHP Direct Execution
At Title type: CMS Tag Cloud (or something if you want)
Save


Step 2 - Configure Widgets
Select CMS Tag Cloud and click Configure.
Clear all text at Textarea
Copy and paste PHP code below and then save config


require_once(DIR . '/includes/functions_cms_tagcloud.php');
$output = fetch_cms_tagcloud('usage') ;


Step 3
Go to yoursite/admincp and select vBulletin CMS ~~> Layout Manager
Select your layout (eg: Default Layout)
Edit ~~> Go

At Widgets Select CMS Tag Cloud and Add to the right (>) (where column you want show this tag cloud)

Step 4
Upload file includes/functions_cms_tagcloud.php
to yoursite/includes/

Step 5
yoursite/admincp/Plugins & Products
Manage Products ~~> [Add/Import Product]
Import product at attachment.

** IF ALL TAG IS THE SAME FONT
Go to Admincp/Style Manager
Search vbcms_page
Find:
<link rel="stylesheet" type="text/css" href="{vb:raw vbcsspath}vbcms.css,postbit-lite.css,postlist.css,lightbox.css" />

Replace
<link rel="stylesheet" type="text/css" href="{vb:raw vbcsspath}vbcms.css,postbit-lite.css,postlist.css,lightbox.css,tagcloud.css" />


Change log
Icon Legend
+ : Add
- : Remove
* : Update
=================================
Change log version 1.1.2 to 1.2
* file product xml
* Total Tags at widget template

Fix bug all tag is the same font at vBulletin version 4.0.2 PL1
=================================

Change log version 1.1 to 1.1.2
+ php code at widget template
* file product xml
+ file functions_cms_tagcloud.php

In this version, I change php code (function fetch_cms_tagcloud) in product to php file.
To fix bug create article at content or promote to article at forum
=================================
Change log version 1.0 to 1.1
- php code at widget template
+ php code to product
* Link "more tag"
=================================


Manual
To manager number of tag show on cloud.
The same with tag cloud on forumhome slidebar

Setting Option:
Go to admincp/Setting/Options
Select Tagging option

Manager
Admincp/Tag

Tag Cloud: Number of Tags - The maximum number of tags to display in the tag cloud.
Tag Cloud: Number of Levels - The number of levels to be shown in the tag cloud.
Use it if you have Merger tag as synonyms (Admincp/Tag)
......
That All.

Neptun
02-10-2010, 08:58 PM
looks great - but in your live demo the text is outside of the widget with the biggest text size - is there a possibility to fix this ?! then i would like to install this great idea ;)

Dev.Sun
02-10-2010, 09:06 PM
i used css of vB default style. You can edit at template tagcloud.css (admincp/Styles & Templates ~~> Search in Templates and type tagcloud.css)

Neptun
02-10-2010, 09:25 PM
ok perfect - i have installed it - but is there a possibility to put a max. number of tags in the cloud ?! i have there at the moment 200 tags inside .... 50 are enough i think *g*

Dev.Sun
02-10-2010, 09:39 PM
You need merger some tag have save info (eg: PHP, PHP 5, PHP 5.3 to a tag group PHP 5.x)
admincp/tag ~~> checked tag and select Merger selected tag as Synonyms

I'll addition a link called "More tag" in next version :)

Neptun
02-10-2010, 09:40 PM
ok that means at the moment i cant do something against it until your next version ?

but for the moment its fine - i hope you will release this soon ;) because its a great idea with this widget

Dev.Sun
02-10-2010, 10:38 PM
ok perfect - i have installed it - but is there a possibility to put a max. number of tags in the cloud ?! i have there at the moment 200 tags inside .... 50 are enough i think *g*

Updated Version 1.1.
Manual for you problem.
add link "more tag"

Neptun
02-10-2010, 10:50 PM
thanks you are great



but after installing the version 1.1. i have the same tags there nothing less - is there a possiblity to say max. tags should be 50 oder 30 oder 70 ?!

like in the vb-forum sidebar tag cloud - there is the option for how many tags ;)

sorry *G* ;)

Dev.Sun
02-10-2010, 11:35 PM
yes, this cms tag cloud and slidebar tag cloud is same. We don't need more option for 2 tag clouds. It's difficult to manage.

Neptun
02-11-2010, 08:52 AM
i have seen this later that this is the same - but in your hack there is no possibility to manage the number of tags - i displays all the tags what i have :(

Dev.Sun
02-11-2010, 04:00 PM
no possibility to manage the number of tags - i displays all the tags what i have
possibility to manage is admincp~~>setting~~>option~~>Tagging

You can test with Tag Cloud: Number of Tags = 2
You Reload content page or forum home. You'll see 2 tag show on cloud

In my site, I setup Tag Cloud: Number of Tags is 30
and Time Cache is 15

Neptun
02-11-2010, 06:47 PM
ok i understand it is linked directly with the main tagging of the system and has no seperat option to set the numbers of tags ...

thx

Forum Lover
02-13-2010, 05:38 AM
Is there any way to call tags from blogs? Tagged.

way2xtreme
02-13-2010, 09:01 AM
Hi, I got this when I tried to promote a post to an article. Once the product disabled thing went back to normal.

Any suggestions?

This is a great mod!

Fatal error: Cannot redeclare fetch_cms_tagcloud() (previously declared in /home/content/mysite/html/bz/packages/vbcms/controller/content.php(82) : eval()'d code:2) in /home/content/mysite/html/bz/packages/vbcms/controller/content.php(82) : eval()'d code on line 175

Dev.Sun
02-13-2010, 10:59 AM
Is there any way to call tags from blogs? Tagged.

I'll development later. See in next version.

Hi, I got this when I tried to promote a post to an article. Once the product disabled thing went back to normal.

Any suggestions?

This is a great mod!
Fatal error: Cannot redeclare fetch_cms_tagcloud() (previously declared in /home/content/mysite/html/bz/packages/vbcms/controller/content.php(82) : eval()'d code:2) in /home/content/mysite/html/bz/packages/vbcms/controller/content.php(82) : eval()'d code on line 175


Fatal error: Cannot redeclare fetch_cms_tagcloud()
You try remove product and Widget. After that install again.
Remember. Use file xml version 1.1

If you got error again. Try disable some another mod.
Plz, show me a screen shot of error.

Neptun
02-13-2010, 03:34 PM
i have a big problem with your mode - after installing of your mode i get always this error when i try to add a new articel .....

please fix this ... i want to use the tag cloud ...

Fatal error: Cannot redeclare fetch_cms_tagcloud() (previously declared in /home/.sites/web/packages/vbcms/controller/content.php(84) : eval()'d code:73) in /home/.sites/web/packages/vbcms/controller/content.php(84) : eval()'d code on line 246



i have the info that the problem is with your hack only ..... when i remove your hack everythings works - with the hack the fatal error ....

please fix it ;) thxxxxxxxxx

way2xtreme
02-13-2010, 09:51 PM
Hi, I have also found another bug after pressing "save changes" after editing a forum post. Got a system error msg saying there is a security token missing, please inform administrator..
Thanks

Neptun
02-13-2010, 10:00 PM
very buggy ..... is there no possibility to use the code from the forum sidebar and import this to a widget ?!

Dev.Sun
02-15-2010, 12:18 AM
Fixed this bug in version 1.1.2.
If you know any more bugs please reply.Thank everybody.

way2xtreme
02-15-2010, 08:33 AM
Hello,
Is it possible to set a class for the "More" link? Where do I find it in the template? I'd like to set it to different font, align to right... etc
Thanks

Neptun
02-15-2010, 08:33 AM
great work - i will test it soon if it works perfect now ;)

Dev.Sun
02-15-2010, 09:03 AM
Hello,
Is it possible to set a class for the "More" link? Where do I find it in the template? I'd like to set it to different font, align to right... etc
Thanks
Please click installed for support.
You can search and edit template cms_tag_cloud
You can add more css to tagcloud.css

great work - i will test it soon if it works perfect now ;)

Thank you!

Neptun
02-15-2010, 10:42 AM
perfect looks good now ;) the bug with the article is gone now - thats very good ;)

Doctor Death
02-15-2010, 10:55 AM
The "MORE TAGS" link creates an error....

links to

http://www.xxxxxx.com/tags.php which doesnt exist.

Should link to

http://www.xxxxxx.com/forums/tags.php

How do we change this?

Nice mod.

Dev.Sun
02-15-2010, 01:59 PM
The "MORE TAGS" link creates an error....

links to

http://www.xxxxxx.com/tags.php which doesnt exist.

Should link to

http://www.xxxxxx.com/forums/tags.php

How do we change this?

Nice mod.

if you use forum. I think use should use slidebar for tag cloud
But you need change.
Go to admincp/Template & Style manager
Search template cms_tag_cloud

Find
<p align="left"><a href="{vb:raw vboptions.homeurl}/tags.php">More Tags</a></p>

Replace
<p align="left"><a href="{vb:raw vboptions.homeurl}/forums/tags.php">More Tags</a></p>

CORSO
02-16-2010, 01:05 AM
I too

Fatal error: Cannot redeclare fetch_cms_tagcloud() (previously declared in /home/c4atrero/public_html/packages/vbcms/controller/content.php(84) : eval()'d code:35) in /home/c4atrero/public_html/packages/vbcms/controller/content.php(84) : eval()'d code on line 208

Neptun
02-16-2010, 10:25 AM
have you done the update to the new version ?!

Doctor Death
02-18-2010, 03:26 PM
With the minor edit above, mine works great. Thanks for this.

I would love to see a CMS widget that has the "3d Globe" of tags. Can this be rendered to that type of output? Would be wonderful.

fer_75
02-21-2010, 09:07 AM
Why urls are not seo friendly if I have vbseo installed ? Is it possisble to make this compatible with vbseo?

Brew
02-21-2010, 11:19 PM
The tag cloud is just showing tags, without formatting

Any ideas?

Dev.Sun
02-23-2010, 12:56 AM
Why urls are not seo friendly if I have vbseo installed ? Is it possisble to make this compatible with vbseo?
Sorry, I don't use vbseo. At version 4.0 vBulletin has option friendly URLs.
I don't have idea to development product for vbseo. You can development it if you want.

The tag cloud is just showing tags, without formatting

Any ideas?
I don't have idea for your problem. All formatting like Slidebar at forum home. Because all css (at content page and forum home) is the same. Can you check your css again?

WNYorker
02-23-2010, 01:40 AM
I also have trouble with the formatting of the tag cloud. All the same size font.

Brew
02-24-2010, 01:11 AM
I don't have idea for your problem. All formatting like Slidebar at forum home. Because all css (at content page and forum home) is the same. Can you check your css again?

I haven't done anything with the CSS. This is a pretty new vb4 install.

The tag cloud works on forumhome, though it's not a part of your mod.

kingMOB
02-24-2010, 08:09 AM
The tag cloud is just showing tags, without formatting

Any ideas?

Same thing here, all tags are level 3 font size (that I think it's the default font size for my widgets). In the admin cp it's configured to the default 5 level font sizes.

BLykMik
02-25-2010, 04:13 PM
Hello. Thanks for sharing this mod!

I have three questions, if you'd be so kind...

1.) I'm having the same issue as the above posters where the tags are not showing as different sizes. They're all the same font size. (I've made sure that some tags are used more often, to confirm that they're not just all equally used.)

What controls the font sizing and how do I get that working?

2.) The "More" tag takes me to a non existent php page. (tags.php) I'm not sure what is supposed to be there, why it isn't, or what I can do to fix this.

3.) How can I just force this widget to use the default widget css styles? (A stepthrough would be good, as I'm a total beginner here)

Thanks again for making this mod!

Dev.Sun
02-26-2010, 05:52 AM
1.) I'm having the same issue as the above posters where the tags are not showing as different sizes. They're all the same font size. (I've made sure that some tags are used more often, to confirm that they're not just all equally used.)

What controls the font sizing and how do I get that working?


I just upgraded to version 4.0.2 PL1. I have seen this error. I will fix a soon as possible.


2.) The "More" tag takes me to a non existent php page. (tags.php) I'm not sure what is supposed to be there, why it isn't, or what I can do to fix this.


I don't know you can upload files or not enough because if you use vBulletin Publishing Suite will have this file. See to fix it at 3.)

Demo at vBulletin.com
http://www.vbulletin.com/forum/tags.php


3.) How can I just force this widget to use the default widget css styles? (A stepthrough would be good, as I'm a total beginner here)


Go to admincp and search template "cms_tag_cloud"
As you see at this template
<link rel="stylesheet" type="text/css" href="{vb:var vbcsspath}tagcloud.css" />
I'm include default css of vBulletin to show different font size in tagcloud.
At here, you can edit or translate link "More Tag"

if you want to edit default widget css style, I think you need edit at StyleVars and vbcms.css template.

P/S: I will fix tags are not showing as different sizes at vbulletin version 4.0.2 a soon as possible.

Thanks All!

Dev.Sun
02-26-2010, 08:53 AM
Mod version 1.2 for vbulletin 4.0.2 Pl1 is release.

Doctor Death
02-27-2010, 02:34 PM
This mod was working great until upgrade to latest version.

Now tag cloud is empty on CMS page.

Any ideas?

BLykMik
02-27-2010, 03:27 PM
This mod was working great until upgrade to latest version.

Now tag cloud is empty on CMS page.

Any ideas?
Yeah.... same thing. My cloud is empty too. :(

Doctor Death
02-27-2010, 05:05 PM
Dev.sun, are you here? Seems like your latest patch broke the system.

Please let us know you understand this else we have to uninstall (which I wouldnt want).

Thanks

Doc

Dev.Sun
02-28-2010, 05:04 AM
Can you reinstall plugin. (Remove and try install again).

and edit with step
** IF ALL TAG IS THE SAME FONT

This mod work good at my site.
I'll check code again.

BLykMik
02-28-2010, 02:01 PM
Can you reinstall plugin. (Remove and try install again).

and edit with step
** IF ALL TAG IS THE SAME FONT

This mod work good at my site.
I'll check code again.
I have uninstalled and reinstalled twice... The widget shows up with the total and more tags, but no tags are shown at all in the widget.

The tags do show up when I go to the tags.php page.

To uninstall, I:
- uninstalled the product
- deleted the php widget i created for it
- deleted the single file from the includes folder (functions_cms_tagcloud.php)

RedFoxy
02-28-2010, 07:29 PM
Really great mod but I must disable it...

When I've it active on my cms is generated in over in 70 seconds! (without only 1,6 sec)

I think that you need to cache the tag cloud and just update it every hour

Dev.Sun
03-01-2010, 08:19 AM
Really great mod but I must disable it...

When I've it active on my cms is generated in over in 70 seconds! (without only 1,6 sec)

I think that you need to cache the tag cloud and just update it every hour

This mod is template mod. It the same with tagcloud at forumhome
All setting option about cache you can go to admincp/Setting Option/Tagging Option

@BLykMik I'm so sorry. I checked my code, template, widget and I'm not found problem for your bug. As you see, this work good on my site.

RedFoxy
03-01-2010, 11:29 AM
This mod is template mod. It the same with tagcloud at forumhome
All setting option about cache you can go to admincp/Setting Option/Tagging Option


witch one option?

"Tag Cloud: Cache Time" is already 30 mins, but with your hack, I must wait, like that your mod checks all tags every time

kingMOB
03-02-2010, 12:27 AM
Seems like the size of the tag is controlled by how many times the same tag is attributed to different articles. Try putting the same tag on two different articles and the font size on the tag cloud should start working.

kingMOB
03-04-2010, 05:14 PM
Hi Dev. Sun,

when we click a tag in the widget, CMS will open the search results page for that tag. Did you see a way to build a widget that, when inserted in an article page will get the tags in that article and print a list of other articles from the CMS with the same tags? Like a related/similar articles widget? There's nothing like this for vBulletin yet =(

Dev.Sun
03-05-2010, 12:35 PM
Thanks for your idea. I'll development it if more member like it.

kingMOB
03-11-2010, 04:17 PM
Hi Dev.Sun,

there's a way to limit this widget to display only the tags for a specific section?

Dev.Sun
03-14-2010, 11:18 AM
This mod is template mod. I want show tag cloud at forum home to cms. All tag of section, article, post, thread will show on it.
I'm developing this mod to product with more function such as :
1 - select tags at special article or post or forum to show on tagcloud
2 - Option - choose show only tags's cms or blogs's tags or forums's tag
thinking more... ....

Dan Clark
04-09-2010, 04:04 AM
Excellent work! Thanks for the hard work!

Regards,

Dan.

joeman
08-31-2010, 06:12 PM
Installed and works very well thanks for doing this!

Trady
12-23-2010, 10:01 AM
Hello. Thanks for sharing this mod!

I have three questions, if you'd be so kind...

2.) The "More" tag takes me to a non existent php page. (tags.php) I'm not sure what is supposed to be there, why it isn't, or what I can do to fix this.

Thanks again for making this mod!

Hi, I had the same issue, you just need to check the URL you have in your vbulletin settings as the link simply uses that and then adds tags.php to the end of it.

Trady.

SM_Rob
12-30-2010, 04:14 PM
Hey Dev.Sun, good widget. :)

I've tweaked line 21 and 22 in "cms_tagcloud ver 1.2.xml" because of a 404 error from "Total tags" and "More tags" - It only affects users who have the home URL direct to their CMS page.

Instead of the code looking for the homepage URL it now looks for the forum URL:

Before:
<a href="{vb:raw vboptions.homeurl}/tags.php">Total Tags: {vb:raw cloud.count}</a><br />
<a href="{vb:raw vboptions.homeurl}/tags.php">More Tags</a></p>

After:
<a href="{vb:raw vboptions.bburl}/tags.php">Total Tags: {vb:raw cloud.count}</a><br />
<a href="{vb:raw vboptions.bburl}/tags.php">More Tags</a></p>

HTH anyone with the 404 errors.

Regards.

WreckRman2
01-27-2011, 07:31 PM
Nice thought but not pnp as we have all come to expect...

1. it was all blank as I created the widget as "Tag Cloud" instead of "CMS Tag Cloud".

2. after I got it to work the font sizes are all the same... can't find the line it says to replace in the intructions.

3. the links are wrong as mentioned in the post above.

I don't see how this has a 5 star rating with all these problems.

WreckRman2
01-27-2011, 07:33 PM
Not to mention the demo work doesn't work.

Dev.Sun
05-24-2011, 04:00 PM
vBulletin version 4.1.3 has Tag cloud in CMS Home page.
I think we don't need this mod. :)
Thanks for used.

Drache
08-22-2011, 04:47 AM
vb's 4.1.3 is still limited.

I am looking for a custom tag cloud. is it possible to exclude or include certain forum's tag cloud show up only?