vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   BB Code Enhancements - twitter status on your signature (https://vborg.vbsupport.ru/showthread.php?t=204767)

acyk 02-08-2009 10:00 PM

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

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


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

acyk 02-14-2009 12:59 PM

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/attachmen...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 [twitter]vbsetup[/twitter] and the only thing I see is

Quote:

*What am I doing now? Follow me in Twitter...
I've tested it on two forums, same message

acyk 02-16-2009 04:16 AM

Quote:

Originally Posted by Loco.M (Post 1745091)
I've tested it on two forums, same message

Did you add this line into your headinclude in your style

PHP Code:

<script type="text/javascript" src="http://yoursite.com/twitter-jcms.js"></script

and Copy this js file to your site ?

[twitter]jcms[/twitter]

or you can show me the url , let me check it for you

Brandon Sheley 02-17-2009 12:45 AM

Quote:

Originally Posted by acyk (Post 1745592)
Did you add this line into your headinclude in your style

PHP Code:

<script type="text/javascript" src="http://yoursite.com/twitter-jcms.js"></script

and Copy this js file to your site ?

[twitter]jcms[/twitter]

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/t...ing-10787.html

ArnyVee 02-17-2009 01:10 AM

Watching this one...hope it works for folks soon because it's a great idea. :)

acyk 02-17-2009 04:39 AM

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.

acyk 02-18-2009 04:07 AM

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

Brandon Sheley 02-18-2009 04:31 AM

Quote:

Originally Posted by acyk (Post 1747542)
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 :)

Brandon Sheley 02-19-2009 07:32 PM

It's sort of slowing the pages down 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

Quote:

Originally Posted by Teresa (Post 1750030)
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

acyk 02-25-2009 05:31 AM

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, 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

Quote:

Originally Posted by The Geek (Post 1809911)
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!" mod and use this Twitter feed tool 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. :)


All times are GMT. The time now is 06:06 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.01953 seconds
  • Memory Usage 1,780KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (3)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (24)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete