![]() |
|
Mod Options |
![]() |
|||||||||||||||||||||||||||||||||||
Twitter Updates in Members Profile
![]() Developer Last Online: Feb 2021 ![]() ![]() ![]()
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:
This will give you a grey box for your tweets - if you want something different you will need to adjust the css yourself - don't ask me for help with this. 6. Open memberinfo_block_statistics and find:
Below that add:
Replace consumer_key with the key you noted from step 2. Save 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
to:
*The light css uses the standard 'twitter blue' colour scheme and the dark one is shades of black, if you want other colours you will need to amend the css file yourself (probably best making changes to the twitter_light.css file) Some other options, you can amend this part of the code
friends:1 ---> change to 0 to show followers 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. Download Now Only licensed members can download files, Click Here for more information. Screenshots Show Your Support
|
![]() |
||||
Mod | Developer | Type | Replies | Last Post |
Profile Enhancements Twitter Updates in Members Profile | winduff | vBulletin 3.6 Template Modifications | 36 | 02 Jul 2011 21:47 |
Profile Enhancements Twitter Profile 1.0 (displays Twitter on a member's profile page) | AlexanderT | vBulletin 3.7 Add-ons | 102 | 21 May 2011 21:48 |
#76
|
||||
|
||||
Originally Posted by Kingdombuilder
Sorry, unfortunately that is the only way I can get the Tweet Box to work, for some reason it needs to load before the Visitor Messages tab. I think there must be a conflict with the VM Editor ![]()
![]() I'll have a proper look when I get some free time and see what I can come up with.
__________________
No members have liked this post.
|
#77
|
||||
|
||||
Tried on vB 4.1.8 but looks like it's not working perfectly!
__________________
I'm back, hell was full ![]() No members have liked this post.
|
#78
|
||||
|
||||
In what way?
![]()
__________________
No members have liked this post.
|
#79
|
|||
|
|||
I'm going to install it on 4.1.8 and will get back to you Gemma hopefully if any problems exist we can solve them?
No members have liked this post.
|
#80
|
|||
|
|||
Gemma -
Everything works perfectly when using the basic version. On the with CSS version it shows up like the basic version so you cannot see any recent updates on the profile. I'm using CSS version check here: http://www.fpcforums.com/forums/members/1-FPC-Admin I tried messing around with the code but got no where fast so put it back to the way you had it using CSS version. Do you have any ideas? No members have liked this post.
|
#81
|
||||
|
||||
Originally Posted by Bluefin221
Checking your source code it doesn't look like the callback is set; firstly did you follow all the action is step 2 of the instructions? And did you change this part of the code to match up to your twitter profilefield#![]()
I've just checked your Twitter username on my own site and it is working so I think you may have missed a step somewhere.
__________________
No members have liked this post.
|
#82
|
||||
|
||||
Originally Posted by Gemma
I missed the first field ID, because I edited the file 3/4 times must have rushed it the last time as the other two fields were completely properly.![]()
Also I have to put read/write and access on the app for it to work correctly, but confirmed working perfectly on 4.1.8 No members have liked this post.
|
#83
|
|||
|
|||
So close. I'm running 4.1.7 but unfortunately my members most recent tweets are not appearing in their section. Everything else looks good. I've read through this section end to end.
No members have liked this post.
|
#84
|
||||
|
||||
Originally Posted by LuDawgs
I'll assume no tweets are showing, not just recent tweets?![]()
Please make sure you have correctly setup steps 1 & 2
Also make sure you have added you profilefield numbers into the template where required.
__________________
No members have liked this post.
|
#85
|
|||
|
|||
Yep, did all of those things and checked them several times...not sure what I'm missing.
![]() No members have liked this post.
|
#86
|
||||
|
||||
PM me a link to your site and I'll have a look.
__________________
No members have liked this post.
|
#87
|
|||
|
|||
I think it probably has something to do with me using a custom style. I've removed the files and the code for now until I can figure out where to place them. PM coming...
No members have liked this post.
|
#88
|
||||
|
||||
Originally Posted by LuDawgs
www.yourdomain.com/twitter/![]()
And inside the twitter folder should be the blogger.js, jquery.twitter.js and twitter.css files
__________________
The following members like this post: LuDawgs
|
#89
|
|||
|
|||
I'm an idiot. I uploaded the files to my root, but not in a twitter folder. Doh. All is good! Thank you!
No members have liked this post.
|
#90
|
|||
|
|||
Crazy. I use the MGC Evo chat solution. It has the ability to respond to someone and it puts the @ symbol in front of who you're responding to. The Twitter pop up causes people's names to get underlined and the twitter pop up appears! LOL
If I put @tray...and I mouse over the name, some guy named "tray" has his twitter pop up LOL No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 01:33.