Helpful Information
 
 
Category: vBulletin 4.x Template Modifications
Show Thread Enhancements - Twitter Widget - Thread topics addin

What this simple modification does is add a Twitter search feed to any thread that automatically searches for the thread title and displays it under the reply box. See here for example http://www.politicalgroove.com/showthread.php?19352-Twilight-New-Moon the thread title is Twilight New Moon and at the bottom of the thread you get a Twitter feed searching just that topic.

In the SHOWTHREAD template find:

{vb:raw similarthreads}


Add this above it:

<!-- Twiiter Comments -->
<h4 class="threadinfohead"><span class="optiontitle">Twiiter</span></h4>
<div id="thread_tags_list" class="thread_info_block">
<div class="inner_block">
<div id='tag_list_cell'>
<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
version: 2,
type: 'search',
search: '{vb:raw thread.title}',
interval: 6000,
title: 'Topic trending...',
subject: '{vb:raw thread.title}',
width: 'auto',
height: 300,
theme: {
shell: {
background: '#104963',
color: '#ffffff'
},
tweets: {
background: '#ffffff',
color: '#444444',
links: '#1985b5'
}
},
features: {
scrollbar: false,
loop: true,
live: true,
hashtags: true,
timestamp: true,
avatars: true,
behavior: 'default'
}
}).render().start();
</script>
</div>
</div>
</div>
<!-- /Twiiter Comments -->


Additionally, you can go here to customize the look and layout of the twitter widget http://twitter.com/goodies/widget_search However, if you do this make not of the bolded items above, those are the variables that hold pass the thread title into the search.

Unable to edit the mod because the site is having issues, so attempting to add the screenshot and link to the demo (http://www.politicalgroove.com/showthread.php?19352-Twilight-New-Moon) (scroll to the bottom) here instead.










privacy (GDPR)