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

Reply
 
Thread Tools
Global Tag Cloud in Side Bar or Anywhere Details »»
Global Tag Cloud in Side Bar or Anywhere
Version: 1.03, by lafsunlmtd lafsunlmtd is offline
Developer Last Online: Jul 2013 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.7.x Rating:
Released: 04-27-2008 Last Update: 07-16-2008 Installs: 139
Uses Plugins Template Edits
Re-useable Code Translations  
No support by the author.

What this plugin does

This plugin lets you call the tag cloud on any page. We wanted a tag cloud in a side column on our forum, and also the freedom to call it from within any template.

Live Demo

You can view the plugin in action on AdminFusion

Installation Instructions

1. Login in to the AdminCP -> Plugins and Products -> Manage Products
2. Click the Add/Import Product link at the bottom of the page and browse to the plugin's xml file.
3. Add the following variable where ever you want the tag cloud to appear:

Code:
$vbcloud
4. If you want to display just the cloud (i.e. without the category) open up the tag_cloud_search template and replace everything with the code below:

Code:
 
<if condition="THIS_SCRIPT != tags">
$cloud[links]
<else />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
	<td class="tcat">
		<div class="smallfont" style="float:$stylevar[right]"><phrase 1="$cloud[count]">$vbphrase[these_are_the_x_most_used_thread_tags]</phrase></div>
		$vbphrase[tag_cloud]
	</td>
</tr>
<tr>
	<td class="alt1" style="text-align:justify">$cloud[links]</td>
</tr>
</table>
</if>
Version Information:
1.01 -- Updated to make compatible with Vbulletin Blog
1.02 -- Script rewrite. Fixed time stamp issue, blog issue and other minor problems.
1.03
Now returns the most popular tags as opposed to the most searched for tags.
Some minor optimizations made.
Instructions revised (uses tag_cloud_box template instead of tag_cloud_search)

Show Your Support

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

Comments
  #112  
Old 04-16-2009, 08:16 PM
dethfire dethfire is offline
 
Join Date: Feb 2003
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

within seconds of enabling this hack mysql uses 700% of the CPU
Reply With Quote
  #113  
Old 04-27-2009, 02:18 AM
slinky slinky is offline
 
Join Date: Dec 2001
Posts: 202
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by M.C. View Post
Hi! What side bar you use? And will it work with vBadvanced?
Yes and no. This is a great tag cloud but I'm looking for how URLs are generated because vb advanced pages will use the wrong url. It must be hardcoded base. Not vb advanced's fault at all.
Reply With Quote
  #114  
Old 06-27-2009, 01:27 PM
khalled khalled is offline
 
Join Date: Apr 2007
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

when i test it i on vb 3.8.2 i found that it consume most of server resources
Reply With Quote
  #115  
Old 09-10-2009, 10:59 AM
MagicThemeParks's Avatar
MagicThemeParks MagicThemeParks is offline
 
Join Date: Sep 2009
Posts: 850
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jase2 View Post
Updated thanks.

How do I remove These are the 25 most used thread tags
Tag Cloud


?

http://www.techsupportteam.org/forum/

-- Jason
To remove the phrase, simply go to admincp>>styles & templates>>style manager>>tag templates>>tag_cloud_box and then remove the phrase (remove from <phrase> to </phrase>) and you'll be set.
Reply With Quote
  #116  
Old 08-18-2010, 11:27 AM
MagicThemeParks's Avatar
MagicThemeParks MagicThemeParks is offline
 
Join Date: Sep 2009
Posts: 850
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This mod is conflicting with the two following mods....

Automatic Thread Tagger: https://vborg.vbsupport.ru/showthread.php?t=201156

and

Daily Game: https://vborg.vbsupport.ru/showthread.php?t=232862

....not sure what it is though.

I was getting errors like this....

Code:
Warning: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument in [path]/includes/init.php(304) : eval()'d code on line 16
....when tags tried to be added automatically. Any idea as to why?
Reply With Quote
  #117  
Old 08-21-2010, 07:04 AM
gungor's Avatar
gungor gungor is offline
 
Join Date: Dec 2007
Location: Turkey
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks.. installed..
Reply With Quote
  #118  
Old 05-17-2012, 05:37 PM
AFMichael AFMichael is offline
 
Join Date: Sep 2004
Location: Florida
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The addon works great but I am having one small problem. Every tag is the same font size in the cloud. How do I get it to show different font sizes/weight? In the vBulletin Options, I have Tag Cloud: Number of Levels set to the default (5).

Update: I created a new style and added the tag cloud to that. Even on that, it still sets the sizes of all of the tags to the same size. I verified that the css for these are indeed included but it will only call "level2" even those the max level is set to 5. I changed the level 2 font size from 'small' to 'xx-large' and it did change it to xx-large font, but again...for each tag.

So why is it not randomizing the font sizes for each tag?!
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 06:14 PM.


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.04308 seconds
  • Memory Usage 2,277KB
  • Queries Executed 24 (?)
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
  • (2)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
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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_postinfo_query
  • fetch_postinfo
  • 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