The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Twitter Search Widget BB code Details »» | |||||||||||||||||||||||||
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> 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> 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
|
Comments |
#2
|
|||
|
|||
So, can the user click anywhere in that widget to take them to the post on my vbulletin site?
|
#3
|
|||
|
|||
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.
|
#4
|
||||
|
||||
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) |
#5
|
|||
|
|||
does it work with vb 4.0.3
|
#6
|
||||
|
||||
yes
|
#7
|
|||
|
|||
I don't see how this is useful...
|
#8
|
|||
|
|||
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 |
#9
|
||||
|
||||
I like it, I'm going to test it out right now on our forum
thanks for the mod and thanks for sharing. :up: Very useful post there :down: works on 4.0.8 http://general-forums.com/t83971/ |
#10
|
|||
|
|||
Installed & Working
4.1 PL2 Comment: Added my own twitter button to which others are free to use here or else where. (open sourced) |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|