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
Tag cloud block for vbdrupal Details »»
Tag cloud block for vbdrupal
Version: 0.1, by redraider redraider is offline
Developer Last Online: Apr 2013 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.7.x Rating:
Released: 06-26-2008 Last Update: Never Installs: 5
Template Edits
Re-useable Code Translations Is in Beta Stage  
No support by the author.

This is my first mod to be released in vb org. Its a simple mod which helps you to show vbulletin tags in a vbdrupal block. If you have suggestions to improve, please drop them in here. Please note the vbdrupal 5.7 is compatible with vb3.7.x hence I have released this mod here. here.

What does it do:
This hack is for tagging feature introduced in vb3.7x. It uses vbulletin's tag cloud templates to show a tag cloud on drupal block:

Steps to Install


Backup
- Make sure you have vbdrupal installed and working
- Make sure you have vbulletin 3.7.x installed and working. This mod will not work with vb 3.6.x since tagging was introduced only in vb 3.7
- Make sure you take a backup

Install
1: Drupal admin -> Add block

2: Select input format as phpcode

3: (you can change the CSS part to your liking)

Code:
<style type="text/css">
a.tagcloudlink:link, a.tagcloudlink:visited { text-decoration:none; }
a.tagcloudlink:hover, a.tagcloudlink:active { text-decoration:underline; }
a.level1 { font-size: xx-small; }
a.level2 { font-size: small; }
a.level3 { font-size: medium; }
a.level4 { font-size: large; }
a.level5 { font-size: xx-large; }
</style>
<?php global $vbulletin; 
if ($vbulletin->options['threadtagging'] == 1 AND $vbulletin->options['tagcloud_searchcloud'] == 1)
{
	require_once(DIR . '/includes/functions_search.php');
	$tcloud = fetch_tagcloud('search');
}
else
{
	$tcloud = '';
}
echo $tcloud;
?>
Try the default one first, but you may need to change the BOLD line above to suite you directory structure, t. Make sure php is selected as input format.

4: Save block

5: (Optional to make the box look better), Recommended to use template modification system plugin.
Edit template: tag_cloud_box_search

Find and delete:
Code:
<tr>
	<td class="tcat">
		<div class="smallfont" style="float:$stylevar[right]"><phrase 1="$cloud[count]">$vbphrase[these_are_the_x_most_searched_thread_tags]</phrase></div>
		$vbphrase[search_tag_cloud]
	</td>
</tr>

Show Your Support

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

Comments
  #2  
Old 06-27-2008, 02:20 PM
redraider redraider is offline
 
Join Date: Sep 2006
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

reserved first post.
Reply With Quote
  #3  
Old 06-28-2008, 09:16 AM
sinucello sinucello is offline
 
Join Date: Apr 2006
Location: dutch-german border
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello redraider,

thanks for sharing this! Drupal seems to be a great companion for vBulletin. Will this create a bridge to Drupals taxonomy system or will it just display the vB tags somewhere on the Drupal pages and you have to add the same tags again with Drupal taxonomy?

all the best,
Sacha
Reply With Quote
  #4  
Old 06-29-2008, 10:52 AM
redraider redraider is offline
 
Join Date: Sep 2006
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This will just display the vb Tags in a drupal blocks/ nodes and is not a bridge

I am looking into combining the two (drupal tags + vbuleltin tags) , but that is more complex.
Reply With Quote
  #5  
Old 07-06-2008, 04:25 PM
karlm's Avatar
karlm karlm is offline
 
Join Date: Jul 2006
Location: England
Posts: 447
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice work
Reply With Quote
  #6  
Old 08-31-2008, 01:18 PM
leitel leitel is offline
 
Join Date: Mar 2003
Location: Costa Rica
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am again looking at Drupal/vB/vbSEO. A major attraction is the Drupal tag cloud. I wonder if it is possible to associate Drupal tags to a vB thread. I need a way to show ALL content, Drupal AND/OR vB content based on ONE tag system. Has anyone seen/done this?
Reply With Quote
  #7  
Old 09-05-2008, 02:19 AM
redraider redraider is offline
 
Join Date: Sep 2006
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I dont think this has been done.
Reply With Quote
  #8  
Old 09-05-2008, 02:59 AM
leitel leitel is offline
 
Join Date: Mar 2003
Location: Costa Rica
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In this post http://www.vbdrupal.org/forum/showpo...84&postcount=5 I described this need and some ideas on how it could be accomplished. At this point it is a gleam in my eye!!
Reply With Quote
  #9  
Old 09-15-2008, 07:53 PM
gtcompscientist gtcompscientist is offline
 
Join Date: Mar 2008
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't seem to get the tag cloud to show up properly... it just shows the code (minus the actual <style> tags).
Reply With Quote
  #10  
Old 10-02-2008, 06:51 PM
redraider redraider is offline
 
Join Date: Sep 2006
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It seems to me that you havent put the input format as php code for the block ...that is why all the code is escaped'
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 04: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.04464 seconds
  • Memory Usage 2,289KB
  • 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
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete