View Full Version : BB Code Enhancements - twitter status on your signature
Dear all
I just can't wait to share this information to all of you guys who love to twit.
This idea is coming from I want to show my own twitter status in my vb signature , lots of my member saw what I do , and want me to share them how to do this in their signature.
But the original twitter code can only show one person's status , others will show empty status.
So I and my member @chweng modify this code to make it works perfectly.
Now let me show you how to do this:
Installation Procedure:
1. download the attach files here (https://vborg.vbsupport.ru/attachment.php?attachmentid=94463&stc=1&d=1234195918)
2.unzip it ,and upload to your site , for example , http://yoursite.com/twitter-iphone4tw.js
3.add a line in your headinclude in your style
<script type="text/javascript" src="http://yoursite.com/twitter-jcms.js"></script>
4.go to bbcode
Title: twitter
BB Code Tag Name: twitter
Replacement:
*What am I doing now?
<div id="twitter_div">
<ul id="twitter_update_list_{param}"></ul>
<a href="http://twitter.com/{param}" id="twitter-link" style="display:block;text-align:right;" target="_blank">Follow me in Twitter...</a>
</div>
<script type="text/javascript" src="http://twitter.com/statuses/user_timeline/{param}.json?callback=twitterCallback2&count=1"></script>
Example: jcms
Description: You can put your Twitter status in your signature , just edit your signature , and input your twitter id , then it works.
Use Option:no
ArnyVee
02-13-2009, 03:19 AM
Is there a demo of this that we can see?
Brandon Sheley
02-13-2009, 10:44 PM
I'd like to see a demo as well
very interested in the mod
dear my friends
sure , we have the demo , but it's in Traditional Chinese , I hope that can help you to imagine what it is
http://tinyurl.com/aa5y8a
or I made a sample for you
https://vborg.vbsupport.ru/attachment.php?attachmentid=94865&stc=1&d=1234623334
here is the link on twitter
http://twitter.com/jcms/statuses/1192326089
Brandon Sheley
02-15-2009, 05:16 PM
interesting, I'll install this so I can see an english version :)
Thanks for the mod
.....
I added vbsetup and the only thing I see is
*What am I doing now? Follow me in Twitter... (http://twitter.com/vbsetup)
I've tested it on two forums, same message
I've tested it on two forums, same message
Did you add this line into your headinclude in your style
<script type="text/javascript" src="http://yoursite.com/twitter-jcms.js"></script>
and Copy this js file to your site ?
jcms
or you can show me the url , let me check it for you
Brandon Sheley
02-17-2009, 12:45 AM
Did you add this line into your headinclude in your style
<script type="text/javascript" src="http://yoursite.com/twitter-jcms.js"></script>
and Copy this js file to your site ?
jcms
or you can show me the url , let me check it for you
I sure did
the link to my forum is in my sig "vBulletinSetup"
I'm not sure if the code is still in the template since it didn't work for me at the time.
regards
ah, I think I see why.
The file in the zip is named
twitter-iphone4tw
should it be
twitter-jcms.js?
still nothing
here is a demo
http://forum.vbulletinsetup.com/f2/twitter-testing-10787.html
ArnyVee
02-17-2009, 01:10 AM
Watching this one...hope it works for folks soon because it's a great idea. :)
let me check for you ....
arob42
02-18-2009, 03:43 AM
It's missing some css classes, e.g. twitter_update_list and twitter_div.
I found the problem is :
it's case sensitive .
so you can use vBSetup
but this will not work vbsetup
that's why in the earlier test my status can show up , but their status won't work .
http://forum.vbulletinsetup.com/f2/twitter-testing-10787.html
Brandon Sheley
02-18-2009, 04:31 AM
I found the problem is :
it's case sensitive .
so you can use vBSetup
but this will not work vbsetup
that's why in the earlier test my status can show up , but their status won't work .
http://forum.vbulletinsetup.com/f2/twitter-testing-10787.html
Excellent!
Thank you so much, now to let a few forum owners know about this. They've been asking for a while :)
Brandon Sheley
02-19-2009, 07:32 PM
It's sort of slowing the pages down (http://forum.vbulletinsetup.com/f4/add-your-twitter-status-updates-your-10795.html) if anyone has the twitter link in their sigs :(
ArnyVee
02-19-2009, 09:11 PM
I noticed that slow down on the pages too Brandon.
Maybe we can get that tweaked?
Teresa
02-20-2009, 04:38 PM
We don't allow sigs on our forum. What about putting this in a members profile, though? That makes more sense to me anyway.
Brandon Sheley
02-20-2009, 08:35 PM
We don't allow sigs on our forum. What about putting this in a members profile, though? That makes more sense to me anyway.
There is already a hack that does that ;)
this is a bbcode tho, it can be posted anywhere on the forum
Brandon Sheley
02-24-2009, 09:11 PM
any update on this? is there any way to not slow the pages?
thanks
yes, I am looking for the solution , too .
Which part of this slow down our website performance ?
our website -> request -> twitter -> send back-> user status -> showthread
this part slow download our performance , but I try to make an new javascript from twitter's API ,but my programing skill is too weak to make it happen.
Can anyone help us to rewrite a javascript that request user status from twitter ?
FYI
http://www.phpclasses.org/browse/package/4216.html
http://phpclasses.sgboards.com/browse/package/4075.html
Brandon Sheley
02-25-2009, 06:06 PM
Hello acyk,
Thanks for looking into it.
It looks like to me... The it's pulling the update from twitter and that is what slows the page down.
If 4 or 5 people have the updates in their sig and the post in the same thread, it takes 6-8 seconds for the page to load.
Good luck with the progress, it's a great idea and one I've wanted for a while.
l3it3r
03-19-2009, 05:52 PM
So it would be pretty easy to insert this in the template and just display it at the top of the page then ;)
Soliloquy
03-29-2009, 04:11 PM
I installed this over at Ice Cream Forum (http://www.ice-cream-forum.com/), but it stops working every now and then. I discovered that a carriage return is somehow getting inserted into my signature right after my Twitter name, so when the script tries to retrieve my feed it looks for Ice_Cream_Forum<br> instead of Ice_Cream_Forum. Any ideas why my sig is doing this every so often? I hadn't even edited it...
Also, does anyone have a good Twitter icon for the editor toolbar?
EhsanAhmad
05-13-2009, 07:04 AM
for some reason it will only show jcms status instead of mine !
The Geek
05-13-2009, 08:20 AM
Im gagging for something similar to this, but haven't had time to look into an effective solution so Ill be watching this one instead!
Ideally, it would be great to have twitter publish to a custom field when an update occurs but I don't think thats dooable right now.
Good luck, I need this :)
Brandon Sheley
05-29-2009, 04:44 AM
Im gagging for something similar to this, but haven't had time to look into an effective solution so Ill be watching this one instead!
Ideally, it would be great to have twitter publish to a custom field when an update occurs but I don't think thats dooable right now.
Good luck, I need this :)
the way I got around this was installing the "Add your blog feed to your post! (http://forum.vbulletinsetup.com/f4/add-your-blog-feed-your-post-9639.html)" mod and use this Twitter feed tool (http://huitter.com/twittertofeed/) tool to update my blog link with my twitter updates.
Altho I would still like to use this option, so users wouldn't have to tie up the possible blog link with their twitter updates. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.