Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
Twitter Search Widget BB code Details »»
Twitter Search Widget BB code
Version: 1.00, by nitra1000 nitra1000 is offline
Developer Last Online: Jun 2012 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.0.2 Rating:
Released: 02-22-2010 Last Update: Never Installs: 13
Re-useable Code  
No support by the author.

Hi all, this little bit of code, will allow your members to use twitter widgets on your site...

As seen At my Leicester Talk Forum

Theres no products to upload, or templates to edit.. Just follow these steps.

Creating the basic Widget
Go To "Admin CP --> Custom BB Codes --> Add New BB Code"

Enter the following...

Title: twitter
BB Code Tag Name: tweet
Replacement:
Code:
<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
  version: 2,
  type: 'search',
  search: '{param}',
  interval: 6000,
  title: '',
  subject: 'Tweets',
  width: 'auto',
  height: 100,
  theme: {
    shell: {
      background: '#8ec1da',
      color: '#ffffff'
    },
    tweets: {
      background: '#ffffff',
      color: '#444444',
      links: '#1985b5'
    }
  },
  features: {
    scrollbar: true,
    loop: true,
    live: true,
    hashtags: true,
    timestamp: true,
    avatars: true,
    behavior: 'default'
  }
}).render().start();
</script>
Example: [tweet]leicestertalk[/tweet]
Description: This will insert a twitter widget onto the post, you can use hashtags and searches.
Use {option}: No
Button Image (Optional): whatever 20x20 image you want, I've dropped a few links at the bottom and I'm sure someone will post one...
Remove Tag If Empty: Yes
Disable BB Code Within This BB Code: Yes
Disable Smilies Within This BB Code: Yes
Disable Word Wrapping Within This BB Code: Yes

To create one with editable titles
Go To "Admin CP --> Custom BB Codes --> Add New BB Code"

Enter the following...

Title: twitter2
BB Code Tag Name: tweet
Replacement:
Code:
<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
  version: 2,
  type: 'search',
  search: '{param}',
  interval: 6000,
  title: '',
  subject: '{option}',
  width: 'auto',
  height: 100,
  theme: {
    shell: {
      background: '#8ec1da',
      color: '#ffffff'
    },
    tweets: {
      background: '#ffffff',
      color: '#444444',
      links: '#1985b5'
    }
  },
  features: {
    scrollbar: true,
    loop: true,
    live: true,
    hashtags: true,
    timestamp: true,
    avatars: true,
    behavior: 'default'
  }
}).render().start();
</script>
Example: [tweet=Leicester]leicestertalk[/tweet]
Description: This will insert a twitter widget onto the post, you can use hashtags and searches.
Use {option}: Yes
Remove Tag If Empty: Yes
Disable BB Code Within This BB Code: Yes
Disable Smilies Within This BB Code: Yes
Disable Word Wrapping Within This BB Code: Yes

Thats It Folks..
If you wish to use usernames instead of searches, please check out my other mod . You can change height/width/colors of the mod as required (pretty obvious how)

As ever PayPal donations excepted... As are follows @leicestertalk and the odd post on my forums

But i'd prefer a donation, because that means mooo monies

Twitter Icons

p.s I have only briefly tested this... So no responsibility if you don't stage your installs... (dev > test > live)

Show Your Support

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

Comments
  #2  
Old 02-23-2010, 08:11 PM
sqzdog sqzdog is offline
 
Join Date: Apr 2005
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So, can the user click anywhere in that widget to take them to the post on my vbulletin site?
Reply With Quote
  #3  
Old 02-23-2010, 08:34 PM
sqzdog sqzdog is offline
 
Join Date: Apr 2005
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I guess what I mean is, I could use this to show all of the recent posts on my site. Is there anywhere for them to click to take them to the individual posts listed in this widget? This is a nice widget.
Reply With Quote
  #4  
Old 02-23-2010, 09:15 PM
nitra1000's Avatar
nitra1000 nitra1000 is offline
 
Join Date: Dec 2009
Location: uk
Posts: 312
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The widget is twitters own, your users can post it on your site...

Say to keep up with an event, or for a discussion on a subject thats very active on twitter.

It treats the tweets as if they were on twitter themselfs.. I.E click a #hashtag and it will take you to that, click an avatar and it will take them to the user... etc.

Best advice I can give is try it out... see if it works the way you want it. If it doesn't it's a good way to learn about BB code anyway (the google maps mod posted a month or so, taught me how to make this)
Reply With Quote
  #5  
Old 04-24-2010, 03:59 PM
hoadiem hoadiem is offline
 
Join Date: Aug 2007
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does it work with vb 4.0.3
Reply With Quote
  #6  
Old 04-25-2010, 06:56 PM
nitra1000's Avatar
nitra1000 nitra1000 is offline
 
Join Date: Dec 2009
Location: uk
Posts: 312
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes
Reply With Quote
  #7  
Old 08-09-2010, 01:44 AM
caciocode caciocode is offline
 
Join Date: Apr 2010
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't see how this is useful...
Reply With Quote
  #8  
Old 10-25-2010, 03:31 PM
bposner bposner is offline
 
Join Date: Feb 2009
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

SOLVED mmm looks nice, but can't get it to work, I've added bb code before, but this is on a new system so maybe a setting is out of whack. I followed your suggestions above (very straighforward) but all a get is the forum with the actual bb code listed, i.e [tweet]searchterm[/tweet]
Using 4.07
Thanks!!

Edit: Nevermind, my fault (usually is) had Option to yes

Nice
Reply With Quote
  #9  
Old 10-25-2010, 03:34 PM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I like it, I'm going to test it out right now on our forum

thanks for the mod and thanks for sharing. :up:

Quote:
Originally Posted by caciocode View Post
I don't see how this is useful...
Very useful post there :down:

works on 4.0.8

http://general-forums.com/t83971/
Reply With Quote
  #10  
Old 01-08-2011, 01:43 AM
OldSchoolDSL OldSchoolDSL is offline
 
Join Date: Oct 2010
Posts: 1,196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed & Working

4.1 PL2

Comment: Added my own twitter button to which others are free to use here or else where. (open sourced)
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 10:30 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05106 seconds
  • Memory Usage 2,306KB
  • 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
  • (2)bbcode_code
  • (1)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
  • (1)pagenav_pagelink
  • (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_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