![]() |
Twitter Updates in Members Profile
1 Attachment(s)
What this does
This creates a simple Twitter output of your member's tweets in the About Me section of their profile. Twitter Updates in Member Profile For this to work properly you need to create an application on Twitter. 1. Go to https://dev.twitter.com/apps/new 2. Fill out the app details, how to fill it out: Application Name - Your Website Name Description - Something relevant to your site Application Website - Your Forum URL Callback URL - Your Forum URL Application Type - Read and Write Agree to the rules, recaptcha and create your application. You will then be taken to your application details. Take note of your consumer key (21 alphanumerical characters) 3. Unzip the archive and upload the 'twitter' folder to your forum root. 4. You need to add a new profile field (you can skip this if you already having a profile field linking to users' Twitter accounts) Add a Single-Line Text Box via the User Profile Field Manager and give it a title and a description so users know what it is for. Set the Maximum length and Field length to your liking Field Required: NO Field Editable by User: YES Private Field: NO Field Searchable on Members List: NO Show on Members List: NO Regular Expression: Leave Blank Take a note of the profile field number. 5. Open your additional.css template and add this at the bottom: Code:
.tweets { 6. Open memberinfo_block_statistics and find: Code:
<!-- view-statistics --> Code:
<img src="clear.gif" height="10" /><br /> Change all instances of XX to correspond with the profile field number from Step 4. You can also change the css file by between light and dark by changing Code:
<link type="text/css" href="twitter/css/twitter_light.css" rel="stylesheet" /> Code:
<link type="text/css" href="twitter/css/twitter_dark.css" rel="stylesheet" /> Some other options, you can amend this part of the code Code:
,friends:1 tweet:1 ---> Set this to 1 to display friends' tweets at widget footer. Tweets will also appear as a tool tip when hovering on a friend picture. loop:1 ---> loop friends pictures animation or not. Set it to 1 to loop or 0 to disable. users:50 ---> Number of visible friends' pictures on each swap. Note that Twitter will return your latest 80 Followers/Friends. You can choose to show a smaller number of pictures at a time. user_name:0 ---> Show tweet author name or not. change to 1 to show user_link:0 ---> By default, friends pictures will link to their Twitter profile. however, your can link it to their homepage (change to 1) Save. To update to v 1.0.6 If you wish to upgrade please upload the twitter folder to your server, remove the old template edits (headinclude and memberinfo_block_statistics) and apply the new edits in the opening post. History 1.0.3 - Merged the two versions together - but left the option to use either the basic or enhanced (css version). Created a blogger.js file which is hosted on your server instead of externally, this should solve the problems of Tweets not showing. 1.0.4 - Added twitter hovercards 1.0.5 - Added a new block feature which shows the latest activity of your friends or followers. 1.0.6 - New code to display tweets in profile due to changes in Twitter's API. If anyone wants to further develop any of my addons, you are free to do so. |
Great Mod, waiting for very long.
Works fine. Thanx |
What make were the yellow trainers? :D
|
It awesome modification !
Under allow of author (Gemma), new add-on will be make this modification become perfect ! Thanks to Gemma ! Good job men ! P.S : You must see this : In default code : Code:
<br><dt class="smallfont">You can follow me on Twitter, my username is <u><a href="http://twitter.com/{vb:raw userinfo.fieldXX}">{vb:raw userinfo.fieldXX}</a></ul> Do you want to explain or fix it ? |
Oops fixed it. :)
|
Nice looking mod thanks will try later on 4.1.3
|
Installed, great little mod Gemma..
|
Installed on 4.1.3 and working great!
|
Excellent.
My Tweets seem a little longer and it would be nice to have 1/2 or full line break between tweets. Would make it easier to read. :) |
Quote:
|
How often will it check for updates or will it happen auto everytime you update on twitter ?
Great mod thanks |
Updates are in real-time
|
Cheers Gemma
|
Hi Gemma
Received error for additional CSS Code:
The following error occurred when attempting to evaluate this template: |
Quote:
|
Quote:
Edit: Okay so when I wanted to change something in the additional.css I reverted the additional.css template and inputted my change. If I didn't the error in my previous post came up...again strange! For those who do not have a wide screen or style. I changed this: Code:
div#twitter { Code:
div#twitter { |
Works Superb on 4.1.3 thanks Gemma :)
|
Quote:
|
Quote:
|
Try this
Code:
#twitter { |
Quote:
|
I get the same error as well so unable to install until this is hopefully fixed - shame as my members would love this.
EDIT: Okay here is something strange for those who have been adding this with the error above (the curl ending error) - try pasting this code at the top of your additional.css rather than the end. I know it's weird but I just put this at the top after posting I had the same error and it saved no issues. |
Yeah I was just going to say that. I'll make a stylesheet in the morning to save any bother
|
Quote:
|
The enhanced version is just awesome!!:up:
|
Quote:
Quote:
|
I've added a stylesheet (twitter.css) and update the zip file and instructions :)
If you are updating, download the new zip file and upload the contents to your forumroot, delete the additional.css template edit. Open your headinclude template and find: Code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script> Code:
<link rel="stylesheet" href="twitter/twitter.css"/> |
Quote:
|
followed the instructions and it isnt working for me on 4.1.3 i have a profile field number 7, and it is in there under field7 as per instructions and no feed is showing up.
|
Quote:
|
Quote:
I've merged the two versions together - but left the option to use either the basic or enhanced (css version). The main change now is that I've included a blogger.js file which is hosted on your server instead of externally, this should solve the problems of Tweets not showing. And if it doesn't work this time then I'm chucking it in the graveyard! |
This is awesome! Installing now.
|
Works great! http://the8thlegion.com/members/7-DRE
|
Just awesome will check it out soon ................
|
Quote:
Code:
Start Code:
<vb:literal> |
Thank you.
|
Thanks! Installed and working perfectly on vB4.14. (I tried both regular & enhanced versions ;) no problems with either.
Now... if I could just find a mod that puts the latest tweet in the users info in the postbit I'd be a real happy camper ;) |
Quote:
|
Is your Twitter account set to private or can tweets be publicly viewed?
|
Quote:
|
All times are GMT. The time now is 06:11 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|