vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Profile Enhancements - Twitter Updates in Members Profile (https://vborg.vbsupport.ru/showthread.php?t=166382)

winduff 12-28-2007 10:00 PM

Twitter Updates in Members Profile
 
Compatible with vBulletin 3.6.x and 3.7.0b3

Okay guys, this is my first 'mod'. It's pretty simple, and a more a workaround than mod... Anyway, here goes:

What this does
This adds a profile field wich is then turned into a twitter output. This means, all twitter updates of your users will be displayed in the users profile.
Preview:

https://vborg.vbsupport.ru/attachmen...1&d=1198945279

How to install

Basicly, we add a simple profile field, and then catch it in the output and replace the code. Here goes:

1. Add a Single-Line Text Box via the User Profile Field Manager and name it (for example) Twitter. Leave the rest blank if you like.
2. Go to Style & Templates -> Style Manager -> Choose your style -> Member Info Templates -> memberinfo_customfields
3. Replace the entire content with this:

Code:

<if condition="$profilefield[title]=='Twitter'">
<dt class="smallfont"><strong>$profilefield[title]</strong>:</dt>
<div id="twitter_div">
<ul id="twitter_update_list"></ul></div>
<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
<script text="text/javascript" src="http://twitter.com/statuses/user_timeline/$profilefield[value].json?callback=twitterCallback2&count=3"></script>
<br><dt class="smallfont">You can add me to your friendslist, my username is <strong>$profilefield[value]</strong></dt>
<else />
<dt class="smallfont"><strong>$profilefield[title]</strong>:</dt>
<dd class="smallfont">$profilefield[value]</dd>
</if>

Note the highlights:
1. 'Twitter' must be the same as the name you gave your new profile field
2. count=3 <-- here you can set how many updates to show. Three is a good value.

And finally, click Install if you use this please :)

Hope you like it, it's simple :)

Btw.: check out www.twitter.com if you don't know what this is all about ;)

ran_iu_Conan 12-29-2007 10:22 PM

do you know ? :-??

Alfa1 12-30-2007 12:37 AM

Interesting.

Is it possible to make this available on profiles of members in certain member groups only? So this can be a supporters feature?

winduff 12-30-2007 01:02 PM

you could add the following condition:


Code:

<if condition="$bbuserinfo[usergroupid] == x">
wich would mean, the twitter function would only be shown if the usergroup is x

for example:

Code:

<if condition="$profilefield[title]=='Twitter'">
<if condition="$bbuserinfo[usergroupid] == 1 OR $bbuserinfo[usergroupid] == 2">
<dt class="smallfont"><strong>$profilefield[title]</strong>:</dt>
<div id="twitter_div">
<ul id="twitter_update_list"></ul></div>
<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
<script text="text/javascript" src="http://twitter.com/statuses/user_timeline/$profilefield[value].json?callback=twitterCallback2&count=3"></script>
<br><dt class="smallfont">You can add me to your friendslist, my username is <strong>$profilefield[value]</strong></dt>
</if>
<else />
<dt class="smallfont"><strong>$profilefield[title]</strong>:</dt>
<dd class="smallfont">$profilefield[value]</dd>
</if>

you can add as many OR's as you like, wich would mean ( in this example) usergroups 1 and 2 can use this function. Any other usergroup who set a twitter account would just not show up

Alfa1 12-30-2007 01:55 PM

Doesn't that only SHOW the function to members within a certain member group, instead of allowing the function only on profiles of members within a certain member group?

winduff 12-30-2007 02:06 PM

oh yeah true, my bad wrong thinking... will come up with sth later for you okay?

Alfa1 12-30-2007 02:25 PM

Super.

Big Daddy Payne 12-30-2007 02:58 PM

Fantastic! Thank you So Much for this!

gforce75 12-30-2007 04:29 PM

Nice hack

Hornstar 12-31-2007 06:48 AM

I have not got myself involved in Twitter yet, but I may see if my members have ^^ THanks for sharing this.

winduff 12-31-2007 03:23 PM

this works the same for 3.7.0 Beta 3 btw.!

zmmmzz 01-02-2008 01:58 AM

thaaaaanks!!!!! this is amazing...

TCE Killa 01-11-2008 12:11 PM

Doesn't work for me:(

biliboy 01-24-2008 08:16 PM

when i install it. its shows only the line "you can add me .."
and what that i write at the Twitter at the UserCP is the nick at highlight at the "you can add me..."

biliboy 01-25-2008 11:44 AM

Quote:

Originally Posted by biliboy (Post 1428201)
when i install it. its shows only the line "you can add me .."
and what that i write at the Twitter at the UserCP is the nick at highlight at the "you can add me..."

Ehm??

GetGamer.com 01-29-2008 07:41 PM

I love Twitter. I'm going to add this to my "must install" list.

majordork82 02-18-2008 01:17 AM

Thanks bud!

Saxon 02-28-2008 09:48 PM

This doesn't work with 3.7.0 Beta 5. There is no memberinfo_customfields.
Presumably code would go in the memberinfo_block_aboutme template? Or is it possible to create a new block?

Can this hack be made compatible with 3.7.0 5?

zmmmzz 03-29-2008 11:27 PM

Can you make it compatible with the latest version winduff?

Cobro 04-14-2008 04:41 PM

i cant see it on my site ? i am using vb 3.7 rc1 could you update this awsome plugin you have made plz :up:

Cobro 04-14-2008 04:44 PM

Quote:

Originally Posted by zmmmzz (Post 1477979)
Can you make it compatible with the latest version winduff?


that would be nice

3dsoft 04-18-2008 08:04 AM

Will there be an update for vbulletin 3.7?

Brandon Sheley 05-13-2008 08:35 PM

Quote:

Originally Posted by 3dsoft (Post 1493578)
Will there be an update for vbulletin 3.7?

I 2nd the update for 3.7 :)

CNibbana 05-19-2008 10:51 PM

Quote:

Originally Posted by Loco.M (Post 1518724)
I 2nd the update for 3.7 :)

Third. All in Favor?

adamadamadam 05-20-2008 08:35 PM

This is probably not the mod discussion for this question, but would it be possible to somehow have people's Tweets show up in their signature, without enabling HTML in signatures? Could this mod somehow be used to achieve that?

goodwillstacy 05-30-2008 02:11 AM

Any idea if this will be updated for 3.7?

H2O Snake 06-20-2008 09:26 PM

I also support for an update to 3.7 for a memberinfo block would be amazing.

GetGamer.com 06-20-2008 11:03 PM

Quote:

Originally Posted by adamadamadam (Post 1526097)
This is probably not the mod discussion for this question, but would it be possible to somehow have people's Tweets show up in their signature, without enabling HTML in signatures? Could this mod somehow be used to achieve that?

That would be SWEET!

I'm also all for a 3.7 version, too!

snowman872 06-28-2008 06:31 AM


yes ... please we need a twitter update for 3.7! =)

zompus 07-09-2008 03:42 AM

Quote:

Originally Posted by snowman872 (Post 1560986)
yes ... please we need a twitter update for 3.7! =)

Hmm... useful hack but I can't seem to get it working on my vb version.

Suppose i'll have to stick with members using http://twittertag.com (creates a sig like image for forum sigs) for now. :-(

Alfa1 07-09-2008 07:54 AM

A 3.7 version would be very nice.

Quote:

Originally Posted by Alfa1 (Post 1411676)
Is it possible to make this available on profiles of members in certain member groups only? So this can be a supporters feature?

Quote:

Originally Posted by winduff (Post 1411952)
... will come up with sth later for you okay?

Any news on this?

FTForums 01-10-2011 09:54 PM

Might there be any new versions of this? Doesn't seem to work in 4 and above.

nick! 05-22-2011 10:54 PM

Works great, thankyou for the mod, installed at my texas holdem poker forums

8thos 06-20-2011 07:35 AM

I'll test this out on my vb4.1.4 board later today.

flewfruit 07-02-2011 09:53 AM

awesome mod, thank you very much

Alfa1 07-02-2011 04:22 PM

I wonder if this hack leads to spam in the twitter field.
Does anyone have this working on vb3.8 or vb 4.1?

Gemma 07-02-2011 07:47 PM

I've released a similar version for vB4, the link is in my profile.


All times are GMT. The time now is 05:17 AM.

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.01234 seconds
  • Memory Usage 1,788KB
  • 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
  • (3)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (37)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