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
  #32  
Old 01-25-2010, 02:28 PM
WxP's Avatar
WxP WxP is offline
 
Join Date: Dec 2005
Location: Albania
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #33  
Old 01-25-2010, 03:06 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 WxP View Post
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.
Reply With Quote
  #34  
Old 01-25-2010, 03:31 PM
4nawadir.com's Avatar
4nawadir.com 4nawadir.com is offline
 
Join Date: May 2009
Location: Algeria
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 ...
Reply With Quote
  #35  
Old 01-25-2010, 03:57 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 4nawadir.com View Post
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:
PHP Code:
$vbulletin->options['tagcloud_tags'] = 10
Reply With Quote
  #36  
Old 01-26-2010, 09:06 AM
4nawadir.com's Avatar
4nawadir.com 4nawadir.com is offline
 
Join Date: May 2009
Location: Algeria
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks... DonE
Reply With Quote
  #37  
Old 01-26-2010, 04:27 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 .
Reply With Quote
  #38  
Old 01-28-2010, 12:56 AM
BBR-APBT's Avatar
BBR-APBT BBR-APBT is offline
 
Join Date: Feb 2009
Location: Maryland
Posts: 946
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #39  
Old 01-28-2010, 04:21 AM
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 BBR-APBT View Post
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.
Reply With Quote
  #40  
Old 02-01-2010, 10:43 AM
ashley76 ashley76 is offline
 
Join Date: Jan 2008
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lynne, is there a way to do this for a widget in CMS?
Reply With Quote
  #41  
Old 02-01-2010, 01:50 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 ashley76 View Post
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.
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 12:52 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.05020 seconds
  • Memory Usage 2,351KB
  • 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
  • (3)bbcode_php
  • (5)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