PDA

View Full Version : Profile Enhancements - [CanesInSight] Twitter in Profile Tab (API 1.1 Compatible)


AndrewSimm
11-20-2014, 10:00 PM
This mod adds a tab to the user profile displaying the users twitter feed. The user enters their twitter username into a profile field which links it to the tab. Admins can select what features and style they want the users to have by using the options in the admin panel. This mod does work with the Twitter 1.1 API.

Features available to set in AdminCP (Screenshot Attached)

Set Link Color
Set Border Color
Show Replies
Set number of tweets to display
Show or Hide Header
Show or Hide Footer
Show or Hide Borders
Make background transparent


Things you need to do with Twitter

Vist https://twitter.com/settings/widgets and set up a widget
Get Widget ID which appears in address bar when you click to edit the widget


Create Custom Profile Field in vBulletin AdminCP and use the following options (Screenshot Attached)
- Title = Twitter (You can call this whatever you want really)
- Private Field = no
- Regular expression = ^[^\@]*$ (This prevents users from enter the @ sign with their username)

Installation (Screenshot Attached)
After completing the above install the mod and enter the widget id you got with twitter and the profile field # you got when you created the custom profile field in the admincp.

Enjoy!


11-22-14 - Fixed missing closing div tag in profiles with no twitter linked.

AndrewSimm
11-21-2014, 08:58 PM
Reserved