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

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
  #22  
Old 05-06-2008, 02:18 PM
FLMom's Avatar
FLMom FLMom is offline
 
Join Date: Feb 2006
Location: Florida
Posts: 386
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jeff-- View Post
A quick fix would be to make a new class with whichever color you want links to be (presumably the same as your forum links) and just apply a div around the $tag_cloud with that class.

After looking at your forum a better idea would be to follow step number 4 in the mod instructions where you replace tag_cloud_box with that code and make your own sidebar block instead of using the mod's code so that it will follow your css.
Thank you! I will try that
Reply With Quote
  #23  
Old 05-06-2008, 06:11 PM
FLMom's Avatar
FLMom FLMom is offline
 
Join Date: Feb 2006
Location: Florida
Posts: 386
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tried it and it just doesn't look right Looks like I will be uninstalling...
Reply With Quote
  #24  
Old 05-06-2008, 06:33 PM
Anne Lise Anne Lise is offline
 
Join Date: Mar 2004
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can not get this to work in my right column.
Reply With Quote
  #25  
Old 05-08-2008, 03:17 AM
markblair markblair is offline
 
Join Date: Jan 2004
Location: Michigan
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Exactly what I was looking for. Thank you very much!
Reply With Quote
  #26  
Old 05-09-2008, 05:56 PM
Baldilocks's Avatar
Baldilocks Baldilocks is offline
 
Join Date: Jan 2008
Location: Delaware, USA
Posts: 297
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Messes with the post time stamps. Any way around this??
Reply With Quote
  #27  
Old 05-12-2008, 10:14 PM
TechGuy TechGuy is offline
 
Join Date: Nov 2001
Location: Waynesboro, PA USA
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just noticed the same thing while troubleshooting a problem with users selecting their time zone. I was hoping the new version would fix it.
Reply With Quote
  #28  
Old 05-12-2008, 10:49 PM
MiahBeSmokin420 MiahBeSmokin420 is offline
 
Join Date: May 2007
Location: Ohio
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have come up with a another temp fix untill this guy accually fixed the thing

here is the catch though

tag cloud will not show on the following pages
showthread, forumdisplay, search

i did it on my site here is the fix if you want to do it but i realy hope this guys just fixes the mod cause ya its nice to have every where just blows that it dont work fully

here is the fix though

Go to plugin manager and find:
CLOUD > GLOBAL START

Replace Everything with:

Code:
if (THIS_SCRIPT == 'search' OR THIS_SCRIPT == 'forumdisplay' OR THIS_SCRIPT == 'showthread' OR THIS_SCRIPT == 'blog' OR THIS_SCRIPT == 'blog_usercp' OR THIS_SCRIPT == 'blog_subscription' OR THIS_SCRIPT == 'blog_search' OR THIS_SCRIPT == 'blog_search' OR THIS_SCRIPT == 'blog_report' OR THIS_SCRIPT == 'blog_post' OR THIS_SCRIPT == 'blog-newattachment' OR THIS_SCRIPT == 'blog_inlinemod' OR THIS_SCRIPT == 'blog_callback' OR THIS_SCRIPT == 'blog_attachment' OR THIS_SCRIPT == 'blog_ajax' OR THIS_SCRIPT == 'blog_external') {
        
    } else {
        
$vbulletin->datastore->fetch(array('tagcloud'));
$vbulletin->templatecache['tag_cloud_box'] = str_replace('$vbphrase[tag_cloud]', 'Tag Cloud', $vbulletin->templatecache['tag_cloud_box']);

require_once(DIR . '/includes/functions_search.php');
$tag_cloud = fetch_tagcloud('usage');
if ($tag_cloud)
{
    eval('$headinclude .= "' . fetch_template('tag_cloud_headinclude') . '";');
}

 }
Remember this is a temp fix as was my last one untill this guys fixes these problems

the tag box will be disabled on the pages that show the time well the pages that matter most i should say

but ya just do that and it will be fine untill this guy fixes this crap
Reply With Quote
  #29  
Old 05-12-2008, 11:40 PM
MiahBeSmokin420 MiahBeSmokin420 is offline
 
Join Date: May 2007
Location: Ohio
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

accually im sorry im uninstalling this untill the time crap is fixed cause i cant fix it and i have basically had to disable it on every page of my site to fix the times on all pages
thanks for the idea but im sure the time means more to members then a few words
Reply With Quote
  #30  
Old 05-13-2008, 08:58 PM
Baldilocks's Avatar
Baldilocks Baldilocks is offline
 
Join Date: Jan 2008
Location: Delaware, USA
Posts: 297
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, it would be nice to have this fixed.
Reply With Quote
  #31  
Old 05-14-2008, 08:45 PM
TechGuy TechGuy is offline
 
Join Date: Nov 2001
Location: Waynesboro, PA USA
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone have any clues as to why this breaks the time zone?
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 01:34 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.04482 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
  • (1)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