PDA

View Full Version : Forum Display Enhancements - Tag Cloud on Forumdisplay


Lynne
12-03-2009, 10:00 PM
This mod was originally written by ThorstenA (https://vborg.vbsupport.ru/member.php?u=68464). The original thread is here (https://vborg.vbsupport.ru/showthread.php?t=186662).

I have permission to release this upgraded version of the mod from the author here (https://vborg.vbsupport.ru/showpost.php?p=1924859&postcount=98):
I'd be very glad if you would publish your changed mod in the vb 4 section. (I wrote that this mod is completely free already here (https://vborg.vbsupport.ru/showpost.php?p=1916241&postcount=87)). I am not interested in being named as the author, having the functionality - so that it works with vb4 - is far more important to me :D


What does this product do?
It displays a tag cloud of all tags used within actual forums on top of FORUMDISPLAY.

https://vborg.vbsupport.ru/attachment.php?attachmentid=111135&stc=1&d=1264530115

How to install?
Just import product. Done.

How to uninstall?
Just deinstall product. If you did either template edit below, then undo the template edit.


Optional: To also only show threads within actual forums once a user clicks on a tag on showthread: (removed since not possible in 4.x).


How to change location of tag cloud box?

1) Find this code from manage plugins > plugin forumdisplay_start (Forum Tags)

$find = '<div id="above_threadlist" class="above_threadlist">';
$vbulletin->templatecache['FORUMDISPLAY'] = str_replace($find,$cloud_html.$find,$vbulletin->templatecache['FORUMDISPLAY']); and replace with this code:

vB_Template::preRegister('FORUMDISPLAY', array('cloud_html' => $cloud_html));2) Put {vb:raw cloud_html} in FORUMDISPLAY where you want to show tag cloud.


Details

* no options available yet
* uses standard tag options made in admincp > tags
* Does not add phrases, templates.
* It uses standard tag cloud template, but shows it on FORUMDISPLAY
* Tag cloud is only shown in actual forum when tags were used
* threads tagged within subforums are not shown
* Tag cloud is automatically placed above the threadlist
* Tag links are altered to let tags be searchable by forum (not possible in 4.x)
* Tags.php has a new option forumid to only show tags from specific forums (not possible in 4.x)
* If you click on a tag, only topics within actual forum are displayed (not possible in 4.x)
* Tag size is dependent on how many threads are tagged only within actual forum
* Adds 1 query to forumdisplay

Version history

2009-12-04 - version 0.4 - First release that works with vB4 by Lynne (pre 4.0.1)
2010-01-26 - version 0.5 - Fixed problem with tags having single apostophes in them. Created a new template to display the tag cloud at the top of forumdisplay (looks the same as bottom templates and will collapse). Fixed issue where css is stored as a file. (4.0.1)
2010-10-22 - version 0.6 - Modified template due to changes in 4.0.8 (4.0.8)

Zaiaku
12-04-2009, 02:30 AM
Great work as always.

Dr.osamA
12-04-2009, 03:47 AM
installed

thanxxxx man
________
Lesbian Aggressive (http://www.++++tube.com/categories/718/aggressive/videos/1)

ThorstenA
12-04-2009, 10:08 AM
Many thanks for releasing!

Lynne
12-04-2009, 01:41 PM
Many thanks for releasing!
I glad you gave permission to upgrade this. I love this mod and am glad to have users continue to use it on their upgraded boards. :)

VonDoom
12-04-2009, 02:05 PM
haha now i know that im not messing up template edits. my forum just doesnt seem to want to take anything considered "addon"

Lynne
12-04-2009, 02:41 PM
haha now i know that im not messing up template edits. my forum just doesnt seem to want to take anything considered "addon"
Are you installing them correctly? Are you getting errors when you try to install them? Are they showing up in the Product Manager list? Adn they are shown as Active there (no line through them)?

VonDoom
12-04-2009, 02:59 PM
Can you install a plugin wrong? ;)

Im sure im doing everything right. its just my live forum, my test board installs plugins fine, and also takes my template edits without issue. Something buggy about that particular board.

lol if you ever saw my primary forum youd know i have tons and tons of expierance installing plugins and making template edits. ;)

Lynne
12-04-2009, 03:15 PM
Can you install a plugin wrong? ;)

Im sure im doing everything right. its just my live forum, my test board installs plugins fine, and also takes my template edits without issue. Something buggy about that particular board.

lol if you ever saw my primary forum youd know i have tons and tons of expierance installing plugins and making template edits. ;)
I can never remember how experienced everyone is. And yes, I have known of people to install plugins wrong! They will try to install a plugin in the product page or as a style (!?!) or install a product from the plugin page or style page, or think you just ftp the file to somewhere on the server, or.... believe me, I've seen users do all sorts of things 'wrong' when trying to install a product or plugin!

Very weird that your live site won't take (any?) plugins. Are you getting anything in your error_logs?

VonDoom
12-04-2009, 03:22 PM
Sorry Lynne i didn't intentionally try to come off as difficult. no biggie really was just commenting that i was happy it wasn't my ability's and something with the forum. ;) its brand new and i have nothing to lose if i have to start from scratch. And i guess i was exaggerating. it takes some hacks and doesn't want to show others. no errors they just simply dont show. If its a plugin. and if its a template edit it will whack out whatever template im editing. its always a 50/50 gamble on that particular board. hmmm havent looked at the logs. but its still w3c compliant. ;)

Lynne
12-04-2009, 03:26 PM
I didn't think you were being difficult, I was just saying I can't always remember a user's experience.

I do find that issue to be weird. I hope you can figure it out.

Entonadoscl
12-04-2009, 07:42 PM
You can insert this in the box is going?????

Lynne
12-04-2009, 07:46 PM
You can insert this in the box is going?????
I don't understand your question, sorry.

Entonadoscl
12-05-2009, 12:17 PM
I don't understand your question, sorry.
sorry my english..


I want to put the tag cloud here

http://i49.tinypic.com/2hxvrjo.png

it could, or even no?

ThorstenA
12-05-2009, 12:44 PM
I want to put the tag cloud here
This product shows the tag cloud only on Forumdisplay. You want to show the tag cloud on Forumhome. There may be other products available to do that. This product only shows the tag cloud on Forumdisplay.

Entonadoscl
12-05-2009, 04:14 PM
This product shows the tag cloud only on Forumdisplay. You want to show the tag cloud on Forumhome. There may be other products available to do that. This product only shows the tag cloud on Forumdisplay.
oh thanks...

SİMAR
12-06-2009, 01:28 PM
thanks man

VonDoom
12-06-2009, 09:41 PM
Hey Lynne it just started working out of the blue today. ;) lol

Lynne
12-06-2009, 09:43 PM
Hey Lynne it just started working out of the blue today. ;) lol
Servers.... https://vborg.vbsupport.ru/external/2009/12/13.gif

Glad you got it working.

VonDoom
12-07-2009, 06:55 PM
lol and then gone again. lol at least i know its there.

Lynne
12-07-2009, 07:00 PM
lol and then gone again. lol at least i know its there.
:erm:

Is it all your mods that just come and go or just this one?

VonDoom
12-07-2009, 07:05 PM
Just this one.

Lynne
12-07-2009, 07:25 PM
Just this one.
Are you using a modified style? Perhaps it is the automatic template edit that isn't working for you. You can try the manual method and see if then it always shows.

Alecsmith
12-24-2009, 10:17 AM
Working fine :)

linuxututs
01-01-2010, 04:44 PM
Works Great for me.

Thanks,

ciaba
01-08-2010, 01:52 PM
it works great, thanks!

3DUInc
01-19-2010, 11:05 PM
Where do you actually go to import please in admin?

And where is 2 located?

2) turn ON the plugin labeled "Make showthread tag only show tags in that forum (optional)" (it is off by default)


I do not see 2 option in plugins anyplace.

Thanks for your help :)

Im seriously lost in vb4

3DUInc
01-19-2010, 11:24 PM
I have found everything Thanks it is working great!!!

Thank you very much. :)

Jackie1
01-20-2010, 12:59 AM
but how i can auto tag for my forum?

Lynne
01-20-2010, 03:34 AM
but how i can auto tag for my forum?
I do not know. That isn't what this mod is about.

WxP
01-25-2010, 02:28 PM
i got this error on this modul can you help me?!

Parse error: syntax error, unexpected T_STRING in /public_html/includes/class_core.php(4029) : eval()'d code on line 65

Lynne
01-25-2010, 03:06 PM
i got this error on this modul can you help me?!

Parse error: syntax error, unexpected T_STRING in /public_html/includes/class_core.php(4029) : eval()'d code on line 65
I don't suppose you have tags with apostrophes in them? Yesterday I discovered a bug in this when that happens and I should hopefully post a fix for it today.

4nawadir.com
01-25-2010, 03:31 PM
Nice work ...
Installed
== How to change number of tags without admincp (manually)
Because in tags.php i need to show 100 tags
and in FORUMDISPLY i need to show 10 ...

Lynne
01-25-2010, 03:57 PM
Nice work ...
Installed
== How to change number of tags without admincp (manually)
Because in tags.php i need to show 100 tags
and in FORUMDISPLY i need to show 10 ...
Probably just add at the top of the plugin "Forum Tags" at hook location forumdisplay_start:
$vbulletin->options['tagcloud_tags'] = 10;

4nawadir.com
01-26-2010, 09:06 AM
Thanks... DonE

Lynne
01-26-2010, 04:27 PM
I've updated this to version 0.5:
- Fixed problem with tags having single apostophes in them.
- Created a new template to display the tag cloud at the top of forumdisplay (looks the same as bottom templates and will collapse).
- Fixed issue where css is stored as a file.

This update is only for those running 4.0.1 .

BBR-APBT
01-28-2010, 12:56 AM
Hey Lynne, How hard do you think it would be to convert this to show this on forum home?

Edit I made my own version from a older mod.

Lynne
01-28-2010, 04:21 AM
Hey Lynne, How hard do you think it would be to convert this to show this on forum home?

Edit I made my own version from a older mod.
I was gonna say, I think there was one before and this one was pretty easy to convert so I would guess any other would also be pretty easy to convert.

ashley76
02-01-2010, 10:43 AM
Lynne, is there a way to do this for a widget in CMS?

Lynne
02-01-2010, 01:50 PM
Lynne, is there a way to do this for a widget in CMS?
I would guess so. You can make php widgets, so I would guess you could take this code and make a php widget with it.

RedFoxy
02-01-2010, 04:09 PM
there is a way to have tags on the CMS?

Lynne
02-01-2010, 06:42 PM
there is a way to have tags on the CMS?
I would guess so. Tags are created by just doing a query. So, you write a php widget with a query in it that spits out a bunch of tags.

ashley76
02-01-2010, 10:25 PM
Wow is this something you are planning to do (hint, hint, wink, wink) :)

Lynne
02-01-2010, 11:28 PM
I am not, no. I don't have time at the moment to write any new mods.

DivineMessenger
02-19-2010, 06:39 PM
I completed all of the steps but no tag cloud. I even enabled it and added the code in the forumhome file... could it be because I have no posts yet? lol

Brew
02-19-2010, 08:10 PM
Your mod is working great :)

But the cloud only shows in alphabetical order. I know this is a vB thing, but can you tell me how to make it display most used?

Thanks!

Lynne
02-19-2010, 09:14 PM
Your mod is working great :)

But the cloud only shows in alphabetical order. I know this is a vB thing, but can you tell me how to make it display most used?

Thanks!
It does display the most used tags in that forum. There is a sort line further in the code that sorts them in the plugin using the forumdisplay_start hook location:
uksort($tags, 'strnatcasecmp');

You can try removing it and see if you get what you want then.

cagbaazee
06-24-2010, 06:50 PM
Thanks, will check it and post my review here.

Dutch_Boy
08-15-2010, 02:46 PM
Working without problems :)

Sorry for saying its not working.

Lynne
08-15-2010, 02:53 PM
Not working for 4.0.6 :( It wont install at all.
I just installed it on my 4.0.6 test site and it installs and works just fine.

fritz_0815
08-15-2010, 03:47 PM
Hello
How do I get the Tag cloud in the footer (either above or below symbol legend) of the forum rather than as now under the logo
many thanks

Lynne
08-15-2010, 08:04 PM
Hello
How do I get the Tag cloud in the footer (either above or below symbol legend) of the forum rather than as now under the logo
many thanks
I think you would have to modify the plugin that uses the hook location "forumhome_start" to do that - probably just the $find/$replace variables at the end if you can find a unique bit of code to find/replace.

Dutch_Boy
08-15-2010, 08:54 PM
I just installed it on my 4.0.6 test site and it installs and works just fine.

Sorry about saying its not working. I was wrong.

Im trying to add it on the home page but its not really working at the moment.

Lynne
08-15-2010, 11:33 PM
Sorry about saying its not working. I was wrong.

Im trying to add it on the home page but its not really working at the moment.
It is for the forumdisplay page only.

James T Brock
10-16-2010, 10:17 AM
The vb3 version of this mod is unusable on large forums, has anything been done with this script to make it less server intensive? Why does the query need to be done every-time someone views the page, why can't it be cached for an hour or day or whatever?

Lynne
10-16-2010, 02:36 PM
The vb3 version of this mod is unusable on large forums, has anything been done with this servers to make it less server intensive? Why does the query need to be done every-time someone views the page, why can't it be cached for an hour or day or whatever?
No, nothing has been done. It's marked as reusable code, so if you want to rewrite the code to cache the information, then you are welcome to do so and then share that version. Some users who were using the 3.x version asked to have it upgraded to work with 4.x and so I did so with Thorsten's permission.

Alfa1
12-01-2010, 04:59 PM
It would be interesting to see this in a forum widget.

Do I understand it correctly that this shows ALL tags, not only the tags used in the forum/subforum where the tag cloud is displayed?

Lynne
12-01-2010, 05:09 PM
It would be interesting to see this in a forum widget.

Do I understand it correctly that this shows ALL tags, not only the tags used in the forum/subforum where the tag cloud is displayed?
The tags are forum specific. You can see the query in the forumdisplay_start hook. Widgets don't have forumids (are not forumid specific), so you couldn't make this a widget or block.

Alfa1
12-01-2010, 09:16 PM
The tags are forum specific. You can see the query in the forumdisplay_start hook.That makes this very interesting.

Widgets don't have forumids (are not forumid specific), so you couldn't make this a widget or block.
I hardly see the use of widgets without them being forum specific. I guess I need forum widgets to have forumids then.

Lynne
12-01-2010, 11:29 PM
What I actually meant was you can't just have this Tag Cloud as a widget unless you had one for every forum you want a tag cloud for. You can't just put this into a widget and have it work since the cms has no forumid. You'd have to modify the query to point to a specific forum. I know what I mean, I'm just saying it badly. :/

Alfa1
12-02-2010, 12:22 AM
You said it quite clearly actually. I ran off to post a feature request here:
http://tracker.vbulletin.com/browse/VBIV-10460

sivaganeshk
12-02-2010, 11:45 AM
how can I post to individual thread ?

Lynne
12-02-2010, 01:58 PM
how can I post to individual thread ?
Sorry, I don't understand the question. The tag cloud gets shown on the forumdisplay page, not the showthread page.

fluidswork
12-02-2010, 02:59 PM
Really great ............

qubed
02-22-2011, 10:22 AM
I have this setup on vb4.1.2 and I turned on the plugin and made the tagbit alteration as well. Visually the tag cloud is working fine, however I am receiving the:

"you do not have permission to access this page. This could be due to one of several reasons:"

when I click on one of the tags in the cloud.

Any idea what I need to allow permission wise, if anything at all? I am the admin, so I figured there shouldn't be anything limiting being able to view tag searches after clicking on a tag in the cloud.

UDATE: Working fine - for those with similar issue, go to admincp--->vb options----->tagging options----->Enable Thread Tagging and make sure it is on.

BadgerDog
03-15-2011, 12:01 PM
Installed 0.5 on vBulletin 4.04pl1 for testing with thanks ... :up:

Version 0.6 would not appear in forumdisplay, whereas 0.5 does ... :confused:

Also made change to template and turned ON addtional plugin ...

However, perhaps I'm misunderstanding the purpose of the above option because it doesn't seem to alter the display of threads.

My interpretation was that if I activated that option and a user clicks on a tag displayed within a forum that ONLY threads from that specific forum would be displayed? For us, it still shows threads from ALL forums where that tag appears?

I've checked the "tagbit" template twice and also made sure the plugin is ON, but still it doesn't seem to narrow the search at all?

Thanks for any feedback ... :)

Regards,
Doug

Lynne
03-15-2011, 04:21 PM
On my default 4.1.2 test forum, clicking on a tag in the showthread page when that plugin is on or off, now seems to only show tags within that forum. That is not how it used to be. Just like if I click on advanced search while in a forum, the Search Tag Cloud on the bottom of the page only shows tags from the forum I was in. I'm not sure when this changed.

BadgerDog
03-15-2011, 05:01 PM
On my default 4.1.2 test forum, clicking on a tag in the showthread page when that plugin is on or off, now seems to only show tags within that forum. That is not how it used to be. Just like if I click on advanced search while in a forum, the Search Tag Cloud on the bottom of the page only shows tags from the forum I was in. I'm not sure when this changed.

Interesting ... :)

I get the opposite on 4.04 where I always see threads from ALL forums for any tag I click, even though it displays at the top different sets of tags for individual forums ...

Regards,
Doug

BadgerDog
03-15-2011, 06:25 PM
Also ... :)

We don't want the vbCMS Comments to show during the Tag Search ....

Someone gave us a variable replacement for the search for NEW posts that looks like this..

do=getnew&exclude=143,x,x,x where x = forum ID's

Would you know how we can use something similar for Tag Search, or alternatively, another method (or mod?) for turning OFF the output of any results for the vbCMS Comments forum?

Thanks for any guidance .. much appreciated .. :)

Regards,
Doug

x2002x
03-15-2011, 07:03 PM
thank you alot

marius25
03-16-2011, 12:12 PM
Hi

I want to delete the forumID from the URL when clicking on a tag.. How can I do this? I searched all tag cloud templates but can not find this "&forumID=" from the tag URL to delete it.

Lynne
03-16-2011, 04:46 PM
Hi

I want to delete the forumID from the URL when clicking on a tag.. How can I do this? I searched all tag cloud templates but can not find this "&forumID=" from the tag URL to delete it.
Undo the change to the tagbit template that you did in step 1.

BadgerDog
03-19-2011, 05:57 PM
Also ... :)

We don't want the vbCMS Comments to show during the Tag Search ....

Someone gave us a variable replacement for the search for NEW posts that looks like this..

do=getnew&exclude=143,x,x,x where x = forum ID's

Would you know how we can use something similar for Tag Search, or alternatively, another method (or mod?) for turning OFF the output of any results for the vbCMS Comments forum?

Thanks for any guidance .. much appreciated .. :)

Regards,
Doug

Anyone able to help with this?

Thanks .. :)

Regards,
Doug

Lynne
03-19-2011, 07:26 PM
On my default 4.1.2 test forum, clicking on a tag in the showthread page when that plugin is on or off, now seems to only show tags within that forum. That is not how it used to be. Just like if I click on advanced search while in a forum, the Search Tag Cloud on the bottom of the page only shows tags from the forum I was in. I'm not sure when this changed.

Anyone able to help with this?

Thanks .. :)

Regards,
Doug
Sorry, I take back what I wrote up there. I was queuing my search results while testing so the new test tags I was adding weren't showing up in the test. Testing right now, I see it does shows tags from all forums and it no longer takes the forumid as a variable to use in the tag search. So, the results of a click will get all the tags in any forum and I don't know how to limit that without actually modifying the code (function prepare_tagcloud in functions_search.php, if you want to do so).

BadgerDog
03-24-2011, 06:27 PM
Sorry, I take back what I wrote up there. I was queuing my search results while testing so the new test tags I was adding weren't showing up in the test. Testing right now, I see it does shows tags from all forums and it no longer takes the forumid as a variable to use in the tag search. So, the results of a click will get all the tags in any forum and I don't know how to limit that without actually modifying the code (function prepare_tagcloud in functions_search.php, if you want to do so).

Thanks Lynne ... :)

Too bad it doesn't just show both the tags and then the search, staying within the SAME forum ...

That would save our research site users a lot of time ....

Appreciate your feedback ....

Regards,
Doug

sweetguy2004
03-25-2011, 10:02 PM
I have a tag issue on my board when i try to open advance search page where the tag cloud is present it takes too much time to load that page & when i installed this mod now its happening same with forum display i have a big board please help me to solve this issue

Thanks

gyancentral
06-12-2011, 05:48 AM
is it possible to make it animated

d19rnyxx
06-30-2011, 08:04 AM
for some weird reason, manually inserting the tag cloud does not work for me, is there an issue with vb 4.1.4?

archet1337
07-23-2011, 05:24 AM
for some weird reason, manually inserting the tag cloud does not work for me, is there an issue with vb 4.1.4?

I just manually inserted the tag cloud on my 4.1.4 board.

Placed it after {vb:raw template_hook.forumdisplay_below_threadlist} in FORUMDISPLAY. (http://www.radioctrl.com/f4/)

Great mod!

8thos
07-23-2011, 06:50 AM
Dumb question but what's the point of a tag cloud?

vip_inc200
07-30-2011, 04:48 PM
thank you very much

RobbieZ
07-30-2011, 05:02 PM
Dumb question but what's the point of a tag cloud?

I guess it depends on the board and how the members use tags.

example if you were to run a sports forum and you used tags on all your threads, 'football', 'rugby', 'tennis', 'cricket', 'running' etc etc

These tags would appear in the cloud, If I was only interested in football then I would click the tag and look at all threads with that tag steering me clear from tennis and cricket and so on..

8thos
07-30-2011, 06:07 PM
Oh okay cool makes sense to me.

Mauro79
09-17-2012, 06:58 PM
you could do the same for forumhome mod?
and the option to put in the footer?
thanks

Taurus1
05-27-2013, 06:06 PM
Is it possible to edit the font size of this? I would like to increase this, but only for this.

Thanks Lynne!

Lynne
05-27-2013, 08:40 PM
You can do that via CSS. Just preface them all with the id, like #forum_tags a.level1, #forum_tags a.level2 , etc.