vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Profile Enhancements - Twitter Profile 1.0 (displays Twitter on a member's profile page) (https://vborg.vbsupport.ru/showthread.php?t=185378)

AlexanderT 07-14-2008 10:00 PM

Twitter Profile 1.0 (displays Twitter on a member's profile page)
 
As the title already says, this product adds a Twitter widget to a member's profile page. It's very easy to install, adds no additional queries, requires no file modifications and no template modifications.

Features include:
  • Variable placement within the profile page
  • Define the number of tweets to display
  • Make links within tweets clickable (on/off)
  • Ignore tweets that are replies (on/off)
  • Asynchronous request to avoid delays in loading the profile page
  • Fully phrased

Example: link

Installation instruction included in the zip file.

I release this product as unsupported, because I don't have the time to constantly track this board. I will, however, listen to your feedback and suggestions, and I invite everyone to enhance this product and to post your enhancements here.

Cheers,
Alex

AlexanderT 07-15-2008 06:35 AM

<reserved>

Q-v-n-s-Q 07-15-2008 06:36 AM

nice mod, reserved

aktifnet 07-15-2008 07:21 AM

nice mod. thank you :)

rem-rael 07-15-2008 07:27 AM

Instaled, works like a charm. Thank you for your great mod! :)

bezibaerchen 07-15-2008 10:39 AM

Nice hack!

Here's another example page which doesnt require authentication ;)

http://www.mobil-talk.de/members/benjamin-zeller.html

AlexanderT 07-15-2008 10:44 AM

Quote:

Originally Posted by bezibaerchen (Post 1575826)
Nice hack!

Here's another example page which doesnt require authentication ;)

http://www.mobil-talk.de/members/benjamin-zeller.html

Oops, I forgot about this, thank you. I hope you don't mind me putting it in the first post as an example.

Jase2 07-15-2008 01:40 PM

Great! Thanks.

-- Jason

Jase2 07-15-2008 01:59 PM

May I suggest opening a new window for the links. ;)

Also, add a "More..." link at the bottom that goes to the members' full profile.

BeerLuver 07-15-2008 02:43 PM

Great mod :). Thanks... works fine.

CrankyFC 07-15-2008 03:10 PM

How about one for Plurk?

marcossalazar 07-15-2008 03:17 PM

I have to say this is a great mod! Wish it was supported.

Brandon Sheley 07-15-2008 03:36 PM

ooo.. lovin it :)
I'll get it installed later when I get time

great idea ;)

[high]* Brandon Sheley clicks install and nominated for MOTM[/high]

looks good
here is another live example

http://forum.vbulletinsetup.com/members/brandon/

AyeCapn 07-15-2008 04:02 PM

Would it be difficult to put something like the last 2 or 3 tweets into a member's signature instead of the profile?

Brandon Sheley 07-15-2008 04:20 PM

I like that, or having the last tweet showing up in the post like facebook's "status"

btw... my page just shows loading...

Cobro 07-15-2008 06:55 PM

Nice hack ! have been waiting for this hack

Thank you very much

Roxie 07-15-2008 08:02 PM

Twitter is down so much it might keep the page from loading fully. Cool mod though...

AlexanderT 07-16-2008 06:08 AM

Quote:

Originally Posted by Jase2 (Post 1575958)
May I suggest opening a new window for the links. ;)

Also, add a "More..." link at the bottom that goes to the members' full profile.

I will consider these as options for the next update of this mod.

Quote:

Originally Posted by marcossalazar (Post 1576034)
I have to say this is a great mod! Wish it was supported.

Although I decided to call it unsupported, I am going to be here and listen to your feedback. It's just a technicality so nobody gets upset if I suddenly decide to go on vacation for a longer period of time. :D

Quote:

Originally Posted by AyeCapn (Post 1576078)
Would it be difficult to put something like the last 2 or 3 tweets into a member's signature instead of the profile?

That would actually require fundamental changes. To make the mod scale well with big boards, I decided to use Javascript to fetch all information from Twitter. If we'd want to display tweets in a member's signature (or his postbit in general), we'd have to use the server to fetch tweets and store them in the database. That would be possible, but as I said, I wanted to solution that doesn't add any burden on the server.

Quote:

Originally Posted by Roxie (Post 1576253)
Twitter is down so much it might keep the page from loading fully. Cool mod though...

This is one item on the to do list: to catch the situation when Twitter is down or when the user entered an invalid Twitter username. However, loco, in your particular case, I think you broke something when you edited the template that is being passed to the Twitter-fetching javascript. Can you revert

template: '<div class="smallfont">"%text%" <a onclick="pageTracker._trackPageview ('/outgoing/http_twitter_com_user_screen_name_statuses_id_');" href="http://twitter.com/%user_screen_name%/statuses/%id%">%time%</a></div>'

to

template: '<div class="smallfont">"%text%" <a href="http://twitter.com/%user_screen_name%/statuses/%id%">%time%</a></div>'

and see if that works for you?

Matt_Crawford 07-16-2008 12:40 PM

Can anyone help - my twitter status is showing up as:Fetching tweets...

and staying there!

[IMG]file:///C:/DOCUME%7E1/Wealden/LOCALS%7E1/Temp/moz-screenshot.jpg[/IMG]

AlexanderT 07-16-2008 01:18 PM

Matt, have you followed the instruction? Did you go to ACP->vBulletin Options->Twitter Profile and input the User Profile Field Id of your Twitter field? Also, did you enter a valid Twitter username?

InfoSpyware 07-17-2008 12:51 AM

Thank you Alex, mod installed. :up:

Maybe for the future can only add that the contacts/friends can see the twitter status in my profile.


Salu2
Marcelo.

Hornstar 07-17-2008 06:19 AM

I still have not got involved in Twitter. do many people use it?

YuOr 07-17-2008 06:33 PM

installed! thanks :)

KProjects 07-27-2008 11:35 AM

Thanks! Great mod.

http://www.lifeattack.com/member.php?u=1 <-- mine

edit: ok - now that i've posted that, and it was working great... it's stalled out at fetching tweets.. heh.

edit again: I tweeted and it picked up on the tweets... now its working fine again. Last thing I did was change the number of tweets shown before it stopped (if that helps to figure anything out).

Last edit :) - I think it gets stuck at listing just 1 tweet... mine is at least..

zmmmzz 07-28-2008 12:22 AM

awesome mod

ibuddy 07-29-2008 06:35 AM

not working...followed the directions but its not working and stuck on loading

hst 08-14-2008 04:28 PM

It's a great add-on.

A couple of suggestions for future versions:
  • Add rel=nofollow to all the twitter links -- if it doesn't already have no-follow, then nofollow it.
  • Please don't change it to open links in a new window... that is bad for usability because different browsers handle that behavior differently. Some browsers will unexpectedly open a new tab 25 tabs away from the original tab if you set links to open in a new window

Brandon Sheley 08-15-2008 11:29 PM

I may have to give this a try again, I really wanted to get it working

ZeroHour 08-16-2008 12:27 AM

If you run vbSEO then you will need to edit the template "memberinfo_block_twitter"

Change:
Code:

template: '<div class="smallfont">"%text%" <a href="http://twitter.com/%user_screen_name%/statuses/%id%">%time%</a></div>'
to
Code:

template: '<div class="smallfont">"%text%" <a rel="novbseo" href="http://twitter.com/%user_screen_name%/statuses/%id%">%time%</a></div>'
This should fix the javascript error you get.

FYI if you add:
Code:

rel="novbseo"
To any <a href="blah"> tag it will stop vbSEO from modifying the link.

tpearl5 09-02-2008 04:04 PM

thanks for that Zero, I couldn't figure out why it wasn't updating.

irishblacknight 09-05-2008 11:23 PM

I've been trying to get this to work, but I'm at a loss.

I've got a Last.fm profile block, which is working fine, but the Twitter block simply is not appearing.

(I also made the modification for VBseo, but that made no difference)

Any ideas?

9mmPreacher 09-07-2008 02:46 PM

Fantastic MOD!@!!

soulface 09-07-2008 06:40 PM

Its not showing up in my profile. Uploaded all files, created a new profile field, imported the product, configured the twitter options But twitter box wont showing up.. :S

AMcKay 09-15-2008 02:46 PM

Did you add your Twitter username to your personal profile field? It only shows up if the user actually enters a Twitter username.

keith455 10-04-2008 05:46 AM

This works great but how can I do this on it's own page and also pull from all my sites members twitter accounts?

devoslack 10-13-2008 04:04 PM

This is bad assery at it's finest!!!

yinyang 10-14-2008 11:46 PM

anyone have ideas how i can make this a cmps module?

BucWiLd 10-15-2008 02:39 AM

works like a charm, thanks

AndrewRich 10-17-2008 06:49 PM

Installed.

Would love an option to display a Twitter icon along with the Yahoo, AIM, Skype icons in member infobox next to posts.

Eq4bits 10-21-2008 02:09 AM

Quote:

Originally Posted by AndrewRich (Post 1647212)
Installed.

Would love an option to display a Twitter icon along with the Yahoo, AIM, Skype icons in member infobox next to posts.

Try this:
edit your postbit/postbit legacy template(s) as follows:
Find:
Code:

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]
Add After:
Code:

<!-- Twitter start -->
<if condition="$post[fieldx]"><a href="http://www.twitter.com/$post[fieldx]" alt="Go to my Twitter" target="_blank">
<img src="images/misc/twitter.gif" border="0"></a>
</if>
<! --Twitter end -->

replacing the red 'x' with your field number (same as the one you used in admincp options setting.

Upload the attached twitter.gif to your ...forums/images/misc folder Or whereever else you choose, if not the images/misc folder then change the img src in above code to point to where you did place it.
attached is a Twitter 't' gif


All times are GMT. The time now is 02:18 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.01245 seconds
  • Memory Usage 1,818KB
  • 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
  • (5)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete