Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Tag Cloud on Forumdisplay Details »»
Tag Cloud on Forumdisplay
Version: 0.6, by Lynne Lynne is offline
Developer Last Online: Oct 2022 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 4.0.x Rating:
Released: 12-03-2009 Last Update: 10-21-2010 Installs: 160
Uses Plugins Template Edits Auto-Templates
Re-useable Code Translations  
No support by the author.

This mod was originally written by ThorstenA. The original thread is here.

I have permission to release this upgraded version of the mod from the author here:
Quote:
Originally Posted by ThorstenA View Post
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). 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

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



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)

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

PHP 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)

Download Now

File Type: zip Forum Tags 0.5.zip (87.0 KB, 420 views)
File Type: zip Forum Tags 0.4.zip (47.4 KB, 63 views)
File Type: zip Forum Tags 0.6.zip (87.3 KB, 587 views)

Screenshots

File Type: png forum_tags_vb4-05.png (39.6 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
elsa23, mohammadxxx

Comments
  #52  
Old 08-15-2010, 03:47 PM
fritz_0815 fritz_0815 is offline
 
Join Date: Jul 2008
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #53  
Old 08-15-2010, 08:04 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by fritz_0815 View Post
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.
Reply With Quote
  #54  
Old 08-15-2010, 08:54 PM
Dutch_Boy Dutch_Boy is offline
 
Join Date: Dec 2007
Location: The Netherlands
Posts: 214
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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.
Reply With Quote
  #55  
Old 08-15-2010, 11:33 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dutch_Boy View Post
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.
Reply With Quote
  #56  
Old 10-16-2010, 10:17 AM
James T Brock James T Brock is offline
 
Join Date: Sep 2004
Posts: 273
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #57  
Old 10-16-2010, 02:36 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by James T Brock View Post
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.
Reply With Quote
  #58  
Old 12-01-2010, 04:59 PM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #59  
Old 12-01-2010, 05:09 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Alfa1 View Post
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.
Reply With Quote
  #60  
Old 12-01-2010, 09:16 PM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
The tags are forum specific. You can see the query in the forumdisplay_start hook.
That makes this very interesting.

Quote:
Originally Posted by Lynne View Post
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.
Reply With Quote
  #61  
Old 12-01-2010, 11:29 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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. :/
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:20 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08317 seconds
  • Memory Usage 2,362KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (8)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete