Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications

Reply
 
Thread Tools
twitter status on your signature Details »»
twitter status on your signature
Version: 1.00, by acyk acyk is offline
Developer Last Online: Feb 2019 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 3.7.x Rating:
Released: 02-08-2009 Last Update: Never Installs: 7
Re-useable Code Translations  
No support by the author.

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

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

PHP Code:
<script type="text/javascript" src="http://yoursite.com/twitter-jcms.js"></script
4.go to bbcode

Title: twitter
BB Code Tag Name: twitter
Replacement:
HTML Code:
*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&amp;count=1"></script>
Example: [twitter]jcms[/twitter]
Description: You can put your Twitter status in your signature , just edit your signature , and input [twitter]your twitter id[/twitter] , then it works.

Use Option:no

Show Your Support

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

Comments
  #12  
Old 02-18-2009, 04:07 AM
acyk acyk is offline
 
Join Date: Apr 2008
Location: Taipei, Taiwan
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found the problem is :

it's case sensitive .

so you can use [twitter]vBSetup[/twitter]

but this will not work [twitter]vbsetup[/twitter]

that's why in the earlier test my status can show up , but their status won't work .

http://forum.vbulletinsetup.com/f2/t...ing-10787.html
Reply With Quote
  #13  
Old 02-18-2009, 04:31 AM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by acyk View Post
I found the problem is :

it's case sensitive .

so you can use [twitter]vBSetup[/twitter]

but this will not work [twitter]vbsetup[/twitter]

that's why in the earlier test my status can show up , but their status won't work .

http://forum.vbulletinsetup.com/f2/t...ing-10787.html
Excellent!
Thank you so much, now to let a few forum owners know about this. They've been asking for a while
Reply With Quote
  #14  
Old 02-19-2009, 07:32 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

It's sort of slowing the pages down if anyone has the twitter link in their sigs
Reply With Quote
  #15  
Old 02-19-2009, 09:11 PM
ArnyVee's Avatar
ArnyVee ArnyVee is offline
 
Join Date: Mar 2008
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I noticed that slow down on the pages too Brandon.

Maybe we can get that tweaked?
Reply With Quote
  #16  
Old 02-20-2009, 04:38 PM
Teresa Teresa is offline
 
Join Date: Jan 2004
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

We don't allow sigs on our forum. What about putting this in a members profile, though? That makes more sense to me anyway.
Reply With Quote
  #17  
Old 02-20-2009, 08:35 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

Quote:
Originally Posted by Teresa View Post
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
Reply With Quote
  #18  
Old 02-24-2009, 09:11 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

any update on this? is there any way to not slow the pages?

thanks
Reply With Quote
  #19  
Old 02-25-2009, 05:31 AM
acyk acyk is offline
 
Join Date: Apr 2008
Location: Taipei, Taiwan
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #20  
Old 02-25-2009, 06:06 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

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.
Reply With Quote
  #21  
Old 03-19-2009, 05:52 PM
l3it3r l3it3r is offline
 
Join Date: May 2006
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So it would be pretty easy to insert this in the template and just display it at the top of the page then
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 03:51 PM.


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.05239 seconds
  • Memory Usage 2,305KB
  • Queries Executed 25 (?)
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
  • (1)bbcode_html
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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