nitra1000
02-22-2010, 10:00 PM
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 (http://leicestertalk.net/comments-suggestions/7782-testing-tweets.html) (last post)
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: twitterUsername
BB Code Tag Name: @me
Replacement:
<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
version: 2,
type: 'profile',
rpp: 30,
interval: 4000,
width: 'auto',
height: 100,
theme: {
shell: {
background: '#382f57',
color: '#ffffff'
},
tweets: {
background: '#ffffff',
color: '#000000',
links: '#0013e8'
}
},
features: {
scrollbar: true,
loop: true,
live: true,
hashtags: true,
timestamp: true,
avatars: false,
behavior: 'default'
}
}).render().setUser('{param}').start();
</script>
Example: [@me]leicestertalk[/@me]
Description: Shows a twitter profile widget for the selected user.
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
Thats It Folks..
If you wish to use searches instead of username, please check out my other mod (https://vborg.vbsupport.ru/showthread.php?p=1989873#post1989873). You can change height/width/colors of the mod as required (pretty obvious how)
As ever PayPal donations excepted... As are follows @leicestertalk (http://twitter.com/leicestertalk) and the odd post on my forums (http://leicestertalk.net)
But i'd prefer a donation, because that means mooo monies :p
Twitter Icons (http://www.webdesignerdepot.com/2009/07/50-free-and-exclusive-twitter-icons/)
p.s I have only briefly tested this... So no responsibility if you don't stage your installs... (dev > test > live)
As seen At my Leicester Talk Forum (http://leicestertalk.net/comments-suggestions/7782-testing-tweets.html) (last post)
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: twitterUsername
BB Code Tag Name: @me
Replacement:
<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
version: 2,
type: 'profile',
rpp: 30,
interval: 4000,
width: 'auto',
height: 100,
theme: {
shell: {
background: '#382f57',
color: '#ffffff'
},
tweets: {
background: '#ffffff',
color: '#000000',
links: '#0013e8'
}
},
features: {
scrollbar: true,
loop: true,
live: true,
hashtags: true,
timestamp: true,
avatars: false,
behavior: 'default'
}
}).render().setUser('{param}').start();
</script>
Example: [@me]leicestertalk[/@me]
Description: Shows a twitter profile widget for the selected user.
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
Thats It Folks..
If you wish to use searches instead of username, please check out my other mod (https://vborg.vbsupport.ru/showthread.php?p=1989873#post1989873). You can change height/width/colors of the mod as required (pretty obvious how)
As ever PayPal donations excepted... As are follows @leicestertalk (http://twitter.com/leicestertalk) and the odd post on my forums (http://leicestertalk.net)
But i'd prefer a donation, because that means mooo monies :p
Twitter Icons (http://www.webdesignerdepot.com/2009/07/50-free-and-exclusive-twitter-icons/)
p.s I have only briefly tested this... So no responsibility if you don't stage your installs... (dev > test > live)