PDA

View Full Version : Add-On Releases - Custom Tag Cloud for Forums, Threads, vbAdvanced & Social Groups


vbboarder
01-13-2009, 10:00 PM
If you only have VB 3.7.x, then download this mod: 2.0 Version (VB 3.7+ required) (https://vborg.vbsupport.ru/showthread.php?t=190759)
This mod adds 8 features to VB?s tag cloud:

NEW FEATURES: Social Group Tag Cloud (VB 3.8.0 or higher required)

1. A tag cloud for social group categories can be displayed anywhere in the site homepage (vbAdvanced) or forum homepage (forumhome). Similar to the forum tag cloud, the social group cloud resides in a collapsible box and the links can be custom styled to draw focus to specific groups (ie: if you have a new group that you want to promote).

2. Both the forum tag cloud and social group cloud can now be positioned in the left, right, or center blocks (download the VBA xml files). In earlier versions, the tag cloud could only be hooked to the adv_portal template.

Version 2.0 features:
1. It allows you to display the tag cloud in forum related pages in any location you want. You can display tag clouds in forumhome, forumdisplay, and showthread, and hook it to any $template_hook or HTML comment. Instead of installing 3 different mods to accomplish this, you can install this mod to do all 3. Plus you can specify if you want to not display the tag cloud in certain pages.

2. It allows you to show the tag cloud in your site?s home page in any location you want if you have vbAdvanced installed (optional).

3. When viewing forumdisplay or showthread (pages listing threads or posts), you can specify custom styles for tags that belong to the active forum or thread being viewed so that users will know which tags are relevant to that forum or thread.

4. It allows you to specify preferred tags that you want to have custom styles so that they will be noticed more. For example, if your site just started a forum about cars with tags like ?Lexus? ?Infinity?, you can specify those tags as preferred to draw attention to the new forum.

5. The tag cloud resides in a collapsible box and has a legend for the custom styles.

6. When viewing a thread (in showthread), this mod will move the thread?s tag box below the tag cloud. The tag box and tag cloud are different: the tag box shows tags specific to its thread, whereas the tag cloud shows tags from all threads. Currently, the tag box is shown at the very bottom of the thread, which can be easily ignored by readers. Moving it next to the tag cloud will make the tag box more visible.

Installation
1. Download the product-forum_vba_tag_clouds.xml file. Go to Manage Products > Add/Import Product, upload that xml file, set ?allow overwrite? to yes, and click Import.

2. Go to VB Options > Forum VBA Tag Clouds to set the tag cloud locations, specify preferred tags & special groups, and set custom tag styles.

3. Optional: to display the tag cloud in vbAdvanced, go to VBA CMPS > Default Settings > Main Options > add to ?Portal Output Global Variables?:
tag_cloud
group_cloud
.
If you want the tag clouds to show in the left/ right/ center blocks instead of being hooked to adv_portal: go to VBA CMPS > Download / Upload Modules > in ?Module to Upload?, select ?forumtagcloud.xml? or ?socialgroupstags.xml? (download these files below), and click ?Submit?.

Important: The tag clouds can use 3 different types of hooks. You can read this thread?s 2nd post for further examples, instructions, and tips. If you still do not understand, just use the default hooks ?cause I can not elaborate any further?.

Update:
1. Reimport the new product xml file and allow overwrite.
2. Optional: upload the VBA modules and set ?Portal Output Global Variables? via vbAdvanced AdminCP (read ?Install? instruction #3 above for further details).
3. See the 2nd post for template hook selection tips.

Versions:
2.5.0 Initial VB 3.8 Release.
2.5.5 Optimized code to create tag links. Created preselected hooks for forumhome.
2.6.0 Fixed a potential conflict with other mods.

Notes:
1. I read all posts for this mod so feel free to post any comments or suggestions.
2. You will be notified by e-mail for future updates if you click ?Marked as Installed.? If you find this mod useful, remember to click ?Nominate for MOTM.?

Things to notice about the tag cloud screenshots:
1. Tag clouds are in ?what?s going on box? in forumhome (you can move it anywhere you want).
2. Button to collapse the tag cloud & tag legend are at the right corner.
3. ?Uploaded? is styled red because it?s set as a preferred tag.
4. ?Hobbies? is styled lime because it?s set as a special group.
5. ?Test? & ?xml? are styled aqua because they are active/ present in the thread being viewed (for a forum, all tags in its threads will be custom styled).

MAKE SURE TO CLICK INSTALL;) (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=201692)

vbboarder
01-14-2009, 01:07 AM
Template Hook Selection Tips:
1. You can find and place hooks in adv_portal, FORUMHOME, FORUMDISPLAY, & SHOWTHREAD templates. The hook must be $navbar, $template_hook, or a HTML comment (ie: $template_hook[place] or <!-- comment -->).

Example: This means that you go the VB Styles > Edit Templates > then review either the adv_portal (for vbAdvanced), FORUMHOME, FORUMDISPLAY (for pages listing threads), or SHOWTHREAD (for pages listing posts) for hooks that you can use.
As stated, the hook must be $navbar or something that starts with “$template_hook” or an html comment (which starts with <!-- and ends with -->). Examples are: $template_hook[forumhome_wgo_pos1] and <!-- what's going on box --> These are forumhome hooks so they won't work in the other pages (you must select different hooks for those pages).

2. If you set the hook to a nonexistent $template_hook or HTML comment, then the tag cloud will not show. Also, if you don’t specify a hook location then it will not show.
3. If you set the hook to a nonvalid value (ie: $test, test, <td>, etc.), then the tag cloud will show below the navbar by default.
4. If the hook occurs multiple times within the template, then the tag cloud will also appear multiple times.
5. If you’re familiar with the template, you can add your own $template_hook or HTML comment to place the tag cloud where you want.

6. The tag cloud will not show if you choose a hook located within an <if> condition that evaluates to false.
7. Hooks located in a table must be located within a <td> cell, otherwise the table layout may be messed up. Caution: forumhome’s template hooks are not located in <td> cells.
8. Hooking the tag cloud in the middle of a form can potentially disable the form. For example, in SHOWTHREAD if you use <!-- controls above postbits --> as a hook, then the inline moderation & tag editing will not function!

yingzhou
01-14-2009, 01:22 AM
I want to display tag cloud in the bottom of Forum home, which one I have download? Will this support to 3.7.5 version?

Rene Kriest
01-14-2009, 01:28 AM
Will this support to 3.7.5 version?
Well this is the 3.8 section... ;)

yingzhou
01-14-2009, 01:36 AM
I will try it for 3.7.5. Thanks. :D

alqloob alsahya
01-14-2009, 01:46 AM
thank"s man good jop :)

vbboarder
01-14-2009, 04:32 PM
I want to display tag cloud in the bottom of Forum home, which one I have download? Will this support to 3.7.5 version?
You need to download the 3.7.x version, which does not have the social groups cloud:
https://vborg.vbsupport.ru/showthread.php?t=190759

dmknights
01-21-2009, 10:09 AM
this may sound silly, but what is a tag cloud actually for?

unknownix
01-21-2009, 10:36 AM
thank you. installed :P

PtitLu
01-29-2009, 08:20 AM
I have a weird problem with this mod. The tag cloud is perfect on the forum home & in the forums. But in the thread, all the tags have the same size.
Here are two screenshots, one in a forum and the second, in the thread. Did anyone have this problem ?

vbboarder
01-29-2009, 03:33 PM
I have a weird problem with this mod. The tag cloud is perfect on the forum home & in the forums. But in the thread, all the tags have the same size.
Here are two screenshots, one in a forum and the second, in the thread. Did anyone have this problem ?
The template that controls the size of the tags is tag_cloud_headinclude, which is a default VB template that's used by this mod. Check to see if you have that template included in your page source.
If it's there, then your custom CSS style in this mod's settings may be conflicting with VB's tag cloud CSS. Try a simple style like: style="color: red"
If it's not there, then your custom template modifications or another mod may be replacing that template with another one - try reverting the showthread template and see if the problem persists.

PtitLu
01-29-2009, 09:13 PM
If it's not there, then your custom template modifications or another mod may be replacing that template with another one - try reverting the showthread template and see if the problem persists.That's it. I switched off one product at a time and found it :
https://vborg.vbsupport.ru/showthread.php?t=199100 is guilty :D

I now have to try to correct it because i need this image resizer. Thanks for the tip.

vbboarder
02-06-2009, 11:14 PM
New version 2.5.5: Optimized code to create tag links. Created preselected hooks for forumhome.

This is not a critical update, but it will speed up creating tag links a little. Also, if you are having trouble selecting hooks for the tag clouds in forumhome, you should update since preselected hooks are now included for forumhome.

KevinL
02-06-2009, 11:29 PM
This is going to sound really stupid since I had this working before without a hitch...but..

If I want this in a vba sideblock which one do I download now? Also in showthread & forumdisplay will it still show the different tags?

Thanks :o

vbboarder
02-06-2009, 11:32 PM
This is going to sound really stupid since I had this working before without a hitch...but..

If I want this in a vba sideblock which one do I download now? Also in showthread & forumdisplay will it still show the different tags?

Thanks :o
Download all 3 xml files to if you want the tag clouds in VBA blocks.

Active tags will still be highlighted in showthread & forumdisplay.

KevinL
02-06-2009, 11:35 PM
haha I knew it was going to be some very easy answer. :)

I need all 3 even if I don't want anything on forumhoome?

vbboarder
02-06-2009, 11:56 PM
haha I knew it was going to be some very easy answer. :)

I need all 3 even if I don't want anything on forumhoome?
The VBA xml's will not work without the main product xml, version 2.5+

Theater
02-16-2009, 12:04 AM
Hello vbboarder,

Thank you for the modification. I was wondering though what it would take to make this work at the footer of the board, and thus throughout the entire site. I want to remake my footer into a Wordpress-like theme so that say I have links in the left column, tags in the middle column, and the copyright info in the right column.

Thank you in advance for any recommendations you may lend,
-TT

testbot
02-28-2009, 12:56 PM
is there a way to exclude certain words?

some clever users think it's funny to add a dumb tag to every post so it's huge on the main page. it's funny but i still want the control of a tyrant.

thx :D

vbboarder
02-28-2009, 08:00 PM
is there a way to exclude certain words?

some clever users think it's funny to add a dumb tag to every post so it's huge on the main page. it's funny but i still want the control of a tyrant.

thx :D
Good idea, I'll try to implement that feature within the next month.... no guarantees though ;)

testbot
03-01-2009, 02:11 PM
Good idea, I'll try to implement that feature within the next month.... no guarantees though ;)

THANKS!

vbboarder
03-04-2009, 04:01 PM
is there a way to exclude certain words?

some clever users think it's funny to add a dumb tag to every post so it's huge on the main page. it's funny but i still want the control of a tyrant.

thx :D
Actually, I won't be implementing this feature since it's not really needed. If you go to AdminCP > Threads & Posts > Tags, you can merge, rename, or delete any tag. Do you still need to hide a tag instead of renaming or deleting it?

intelgio2
03-04-2009, 06:06 PM
I am running VB 3.8.1 and am not able to find where to activate the tags for Social Groups... I am also still pretty new to the app. Any help here would be greatly appreciated! :)

vbboarder
03-05-2009, 03:57 PM
I am running VB 3.8.1 and am not able to find where to activate the tags for Social Groups... I am also still pretty new to the app. Any help here would be greatly appreciated! :)
You need to: 1. add categories to your social groups via adminCP > social groups > add new social group category,
2. add social groups to those categories by editing each group
3. go to VB Options > tag cloud (forum vba groups) > select your preferred location for the group tag cloud in forumhome, and if you use vbAdvanced, specify the template hook for the group tag cloud in VBA or upload the socialgroupstags.xml via VBA CMPS > add module (see 1st post for detailed install info).

intelgio2
03-06-2009, 03:07 AM
You need to: 1. add categories to your social groups via adminCP > social groups > add new social group category,
2. add social groups to those categories by editing each group
3. go to VB Options > tag cloud (forum vba groups) > select your preferred location for the group tag cloud in forumhome, and if you use vbAdvanced, specify the template hook for the group tag cloud in VBA or upload the socialgroupstags.xml via VBA CMPS > add module (see 1st post for detailed install info).

Thanks! I have installed everything. My main question is; when I am entering a new discussion to a Social Group that i have created, where would I enter the tags related to the post? I have no Tag line like I do in the forums....

testbot
03-22-2009, 01:37 PM
Actually, I won't be implementing this feature since it's not really needed. If you go to AdminCP > Threads & Posts > Tags, you can merge, rename, or delete any tag. Do you still need to hide a tag instead of renaming or deleting it?

yes because i don't want to remove their tags i just don't want some of them to show up in the tag cloud. my users have fun with tags by making fun of users and other stuff. i know it's not the intended use of tags but if they like it i don't care what they do but i don't want the word "butt" or something being huge on the forum index cloud.

i understand if you don't implement it but maybe you can help me make the modification to my code.

thanks again for your reply!

Mondi
03-23-2009, 02:15 AM
Outstanding Mod - and installed.

Apologies upfront if this question falls below par intellectually but... how can I resize the tags?

Some of the most popular tags come up just a bit too large for my liking so I'd like to reduce their size.

Thanks for help upfront.

vbboarder
03-24-2009, 05:01 PM
yes because i don't want to remove their tags i just don't want some of them to show up in the tag cloud. my users have fun with tags by making fun of users and other stuff. i know it's not the intended use of tags but if they like it i don't care what they do but i don't want the word "butt" or something being huge on the forum index cloud.

i understand if you don't implement it but maybe you can help me make the modification to my code.
thanks again for your reply!

You can hide specific tags but you'll lose the ability to custom style other tags - there's no other way without modifying the code. To hide specific tags, you'll need to specify those tags as preferred tags separated by commas in VB Options > Tag Clouds (Forum VBA Groups). Then you need to specify the preferred tag style as:
style="display:none".

Outstanding Mod - and installed.
Apologies upfront if this question falls below par intellectually but... how can I resize the tags?

Some of the most popular tags come up just a bit too large for my liking so I'd like to reduce their size.
Thanks for help upfront.

You can resize specific tags but you'll lose the ability to custom style other tags - there's no other way without modifying the code. To resize specific tags, you'll need to specify those tags as preferred tags separated by commas in VB Options > Tag Clouds (Forum VBA Groups). Then you need to specify the preferred tag style as:
style="font-size:small"Note: you can also use: x-small, xx-small

Ohiosweetheart
03-30-2009, 02:51 PM
Just what I was looking for.


EDIT - I'm trying to import the forumtagcloud.xml, but get an error saying that this is an invalid file?

Edit - nevr mind, the code for this breaks my xhtml validation. GREAT mod tho! :)

vbboarder
04-01-2009, 03:55 PM
Updated: version 2.6.0 was just released. Fixed a potential conflict with other mods. You do not need to reinstall the VBA modules if you’re using them. It is recommended that you install this update.

valendono
04-07-2009, 02:00 AM
but everyday its only same tag, its not like random forum tag ?

MindStar
04-08-2009, 02:04 PM
Hi, nice MOD :)

I've searched through the options, but but I can't find where to specify "Preferred Tags" :confused:

Would you consider changing the Auto-Tagging preferences so that the Auto-Tagger defaults to not auto-tagging every forum?

We have a lot of forums on our board and would rather focus auto-tagging on a couple of key forums that are directly related to the forum, rather than including all the other incidental chat / support forums.

I've hacked my copy of your code to change the excluded_forums to be interpreted as included_forums; forums are not auto-tagged by default, you have to list them in "excluded forums" to have the auto-tagger active in them.

In functions_autotagger.php, edit line 163 to read

if (in_array($thread['forumid'], $excludedForums) && !in_array($thread['postuserid'], $excludedUsers))i.e. remove the ! from if (!in_array

vbboarder
04-08-2009, 02:52 PM
@MindStar: the "Preferred Tags" is an option for my mod, located at VB Options > Custom Tag Clouds.

The auto tagging feature is from another mod.... probably Phalanyx's.

MindStar
04-08-2009, 08:51 PM
Sorry, I posted in the wrong mod thread, I meant to post in the Auto Tagger Mod thread.

godofwar2
10-01-2009, 03:52 PM
Thanks, works fine in VB 3.8.4.

gmerin
10-29-2009, 02:42 PM
any ideas on how to limit the usergroups that can see the tag cloud (besides my hacking the code...the Series is consuming my after work availability this week). i'd like to prevent the unregistered masses from reading them until after they register and log in.

motorola
10-29-2009, 08:49 PM
Invalid File Specified when I try to import the forumtagcloud

What happens?

vbboarder
10-30-2009, 04:27 PM
@gmerin: limiting tag cloud viewing to certain usergroups is not a feature right now. If more users request it, then I can implement it.

vbboarder
10-30-2009, 04:35 PM
@motorola: the forumtagcloud is a VBA plugin file to show the forum tag cloud in VBAdvanced pages. If you want this, then you need to fully follow step #3. To install the mod itself, you need to install the "product" xml file and do steps #1 & 2 above. Remember to click "Install" to receive further help.

mandingo
11-01-2009, 05:09 PM
Invalid File Specified when I try to import the forumtagcloud

What happens?
nvrmnd

mandingo
11-01-2009, 05:28 PM
I cannot get this to work with vbseo,the tag links become http://yoursite.com/forums/tags/sampletagword.html and link (obviously) to a page that doesn't exist. Not sure where to fix this,tried to disable vbseo on my index.php but that didn't work,any suggestions?

vbboarder
11-01-2009, 07:46 PM
I cannot get this to work with vbseo,the tag links become http://yoursite.com/forums/tags/sampletagword.html and link (obviously) to a page that doesn't exist. Not sure where to fix this,tried to disable vbseo on my index.php but that didn't work,any suggestions?
Don't know why your links are mislinking (I don't use vbseo) - this mod uses VB's tag function to build the tag cloud.

mandingo
11-01-2009, 08:36 PM
Don't know why your links are mislinking (I don't use vbseo) - this mod uses VB's tag function to build the tag cloud.

I figured it out,I set vbseo to not rewrite tag urls,didn't see that option before,nice mod,thanks for the response.

Smitty
01-05-2010, 10:05 PM
Invalid File Specified when I try to import the forumtagcloud

What happens? Did you solve this problem? I'm trying to import it to test on a 3.4.8 PL2 testbed and I and getting the Invalid File Specified error.

I do not use vBSEO or any CMS.

ithelp.vn
01-11-2010, 02:43 AM
Mark as Installed, but what if I don't want to display the Social Group Tag Cloud ? I just want to display the Forum/thread Tag cloud.
(Please take a look at my forum: http://ithelp.vn from the bottom)
Thanks you.

masterweb
01-16-2010, 04:44 PM
Thanks for this mod, installed :D

sergioloporto
03-05-2010, 10:18 PM
Hello...
how to make the:
Template hook for tag cloud in posts listing pages (showthread):
Template hook for tag cloud in threads listing pages (forumdisplay):

to show in the bottom of the page, below the forums/threads instead that under the $navbar??

thanks

Kabel
03-26-2010, 11:52 AM
Thank you! Installed

Dutch_Boy
06-10-2010, 03:41 PM
Hello,

If installed the mod a long time ago. But i wanna change the location. I want it at the bottom of my forum but above my footer.

Can you give me the code so i can move it?

Kind regards,

Dutchboy.

Dutch_Boy
06-14-2010, 03:52 PM
4 days later no reply:(

Scandal
07-05-2010, 06:54 AM
Invalid File Specified when I try to import the forumtagcloud

What happens?
I have the same problem!

Any solution?:(

vbboarder
07-06-2010, 03:56 PM
I have the same problem!

Any solution?:(
You need to import the product-forum_vba_tag_clouds.xml (https://vborg.vbsupport.ru/attachment.php?attachmentid=97219&d=1238604631) file. The forumtagcloud is for VBA.

vbboarder
07-06-2010, 04:00 PM
Hello,

If installed the mod a long time ago. But i wanna change the location. I want it at the bottom of my forum but above my footer.

Can you give me the code so i can move it?

Kind regards,

Dutchboy.
If you want the cloud above the footer in forumhome, just select "below what's going on" in VB options > tag cloud (forum, vba, groups) options.

If you want the cloud above the footer in forumdisplay or showthread, you need to customize your template, which I can't support.

Dutch_Boy
07-06-2010, 07:34 PM
If you want the cloud above the footer in forumhome, just select "below what's going on" in VB options > tag cloud (forum, vba, groups) options.

If you want the cloud above the footer in forumdisplay or showthread, you need to customize your template, which I can't support.

Do you know the code i have to us? I us the default template of vbulletin so its easy i think :)

vbboarder
07-08-2010, 05:59 PM
Do you know the code i have to us? I us the default template of vbulletin so its easy i think :)
You can try adding:
<!-- tag cloud -->
above $footer in the forumdisplay and/or showthread templates.

Also, you must add that same phrase to the "template hooks" settings in the Tag Cloud options.