PDA

View Full Version : Profile Enhancements - Twitter Updates in Members Profile


winduff
12-28-2007, 10:00 PM
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/attachment.php?attachmentid=73935&stc=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:

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


<if condition="$bbuserinfo[usergroupid] == x">

wich would mean, the twitter function would only be shown if the usergroup is x

for example:

<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
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
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
Will there be an update for vbulletin 3.7?

I 2nd the update for 3.7 :)

CNibbana
05-19-2008, 10:51 PM
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
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
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.

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

... 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 (http://www.ffdpokerforum.com/)

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.