Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons

Reply
 
Thread Tools
Tag Cloud on Forumdisplay Details »»
Tag Cloud on Forumdisplay
Version: 0.03, by ThorstenA ThorstenA is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 3.7.2 Rating:
Released: 07-28-2008 Last Update: 08-23-2008 Installs: 92
Uses Plugins Auto-Templates
Re-useable Code  
No support by the author.

vbulletin 4 version




What does this product do?
It displays a tag cloud of all tags used within actual forums on top of FORUMDISPLAY. If a user clicks on tags, only threads within actual forums are displayed then.

How to install?
Just import product. Done.

Optional: To also only show threads within actual forums once a user clicks on a tag on showthread, change template tagbit to
Code:
<a href="tags.php?$session[sessionurl]tag=$tag_url<if condition="THIS_SCRIPT == 'showthread'">&forumid=$threadinfo[forumid]</if>">$tag</a>

How to uninstall?
Just deinstall product. Done.

How to change location of tag cloud box?
  • Replace this code from manage plugins > plugin forumdisplay_start (Forum Tags)
    Code:
    $vbulletin->templatecache['FORUMDISPLAY'] = str_replace('$navbar','$navbar'.fetch_template('tag_cloud_headinclude').'$cloud_html' .'<br />',$vbulletin->templatecache['FORUMDISPLAY']);
    with
    Code:
    $vbulletin->templatecache['FORUMDISPLAY'] = str_replace('$navbar','$navbar'.fetch_template('tag_cloud_headinclude'),$vbulletin->templatecache['FORUMDISPLAY']);
  • Put $cloud_html in FORUMDISPLAY style 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 automaticely placed below navbar template
  • Tag links are altered to let tags be searchable by forum
  • Tag.php has a new option forumid to only show tags from specific forums
  • If you click on a tag, only topics within actual forum are displayed
  • Tag size is dependent on how many threads are tagged only within actual forum
  • Adds 1 query to forumdisplay
Version history
  • 30.7.08 version 0.1
  • 31.7.08 version 0.2 Templates are cached
  • 24.8.08 version 0.3 Pagenav bug resolved
  • 9.1.09 New description how to change location of tag cloud box (solved bug)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 07-30-2008, 08:15 AM
sinucello sinucello is offline
 
Join Date: Apr 2006
Location: dutch-german border
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,
Quote:
Originally Posted by ThorstenA View Post
I am looking forward to make an option where to place this mod.
thanks for picking up our suggestions. What I meant is more functionality related and not just the position.

It would be cool if the user could not only choose a tag but also combine them with other filters like prefix, date and sorting.

Maybe it`s even already possible. But even if it would be possible, I`m not sure if it is transparent for the user that he can combine your forum tag cloud with the filter bar to get more specific results. This is why I think it might be better to include another input or select-field for tags into the filter bar instead of displaying the cloud.

Hm, thinking about it, this could/should maybe done in another hack.

Well, I`m just sharing my thoughts here and will try your mod this evening.

thanks for listening,
Sacha
Reply With Quote
  #23  
Old 07-30-2008, 08:30 AM
ThorstenA's Avatar
ThorstenA ThorstenA is offline
 
Join Date: Nov 2004
Posts: 669
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Interesting idea. I think these are good suggestions for a new product, as this product here uses
  • tag cloud template
  • and search results are done with tag.php
Your integrated approach would
  • use forumdisplay template standard filters
  • therefore search results are done with forumdisplay.php

It would be also grow into a bigger product as then you need some new styles for integration. The easy thing now is that we do not do anything more than just show standard tag cloud below navbar with only changes that only threads within actual forum are displayed.

On another side it is hard to explain to our users what tags are and then it is hard to differentiate between prefixes and tags. So it would be easier to tell them "Tags are something you can add to every topic. There is always a tag cloud, you click on it and get all threads tagged with this tag"
Reply With Quote
  #24  
Old 07-30-2008, 09:03 AM
Artes_Marciales Artes_Marciales is offline
 
Join Date: Jun 2007
Posts: 278
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This mod add 4 queries : (
1 queri the mod + 3 for uncached templates...

Page generated in 0.61688 seconds with 33 queries (3 queries for uncached templates) [Server Loads: 4.52 3.80 : 2.79]
Uncached templates: tag_cloud_box (1)
Uncached templates: tag_cloud_headinclude (1)
Uncached templates: tag_cloud_link (47)

Please solve that or I will have to uninstall : (

Regards!
Reply With Quote
  #25  
Old 07-30-2008, 09:39 AM
ThorstenA's Avatar
ThorstenA ThorstenA is offline
 
Join Date: Nov 2004
Posts: 669
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll look into that.
Reply With Quote
  #26  
Old 07-30-2008, 09:49 AM
ThorstenA's Avatar
ThorstenA ThorstenA is offline
 
Join Date: Nov 2004
Posts: 669
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I took care into uncached templates. There's a new version 0.2 out there now. Could you testify that again and post your statistics once more? I'll look into query performance later.
Reply With Quote
  #27  
Old 07-30-2008, 10:09 AM
Artes_Marciales Artes_Marciales is offline
 
Join Date: Jun 2007
Posts: 278
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ThorstenA View Post
I took care into uncached templates. There's a new version 0.2 out there now. Could you testify that again and post your statistics once more? I'll look into query performance later.
With the new versi?n templates are chached!!
Nice work, only 1 query is good for my : )

Thanks!
Reply With Quote
  #28  
Old 07-30-2008, 04:28 PM
ThorstenA's Avatar
ThorstenA ThorstenA is offline
 
Join Date: Nov 2004
Posts: 669
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For confirmation: This product now needs only 1 query.
Reply With Quote
  #29  
Old 07-30-2008, 09:11 PM
BWJ BWJ is offline
 
Join Date: Aug 2005
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sinucello View Post
It would be cool if the user could not only choose a tag but also combine them with other filters like prefix, date and sorting.
Super idea!
Reply With Quote
  #30  
Old 07-31-2008, 07:43 AM
ThorstenA's Avatar
ThorstenA ThorstenA is offline
 
Join Date: Nov 2004
Posts: 669
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sinucello View Post
It would be cool if the user could not only choose a tag but also combine them with other filters like prefix, date and sorting.
I rethought of that and it could be done with tags.php, not only with forumdisplay.php. This would then be all possible once tag search results would have clickable top column (last post, forum ...). This is best done with another modification. This modification can adopt these features.
Reply With Quote
  #31  
Old 08-02-2008, 12:15 AM
vbboarder's Avatar
vbboarder vbboarder is offline
 
Join Date: Jun 2008
Location: Silicon Valley, CA
Posts: 417
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this cool mod! Look forward to the search integration suggested by sinucello & you. Suggestion: you may want to change the title of this thread to something more descriptive so people can more easily discover this useful mod - something like "Exclude Forums from Tag Cloud" would help
Reply With Quote
Reply

Thread Tools

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 12:58 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.05945 seconds
  • Memory Usage 2,312KB
  • Queries Executed 25 (?)
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
  • (3)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete