English (United States) English (United Kingdom)
Sunday, March 14, 2010

Smart-Thinker DNN Forums

Forum Guidelines

Please ensure you follow the bug-raising guidelines (e.g. post the full error from your Event Viewer) if you are raising a support call. To request a feature in a module, please use Feature Requests (unless you want to discuss it here in more detail first). If you have an urgent feature that you would like to see in the product then you should consider a Sponsored Enhancement

First Time User? Make sure you have read the Module Config Guide in the documents folder of each module. Also check out this handy Module Deployment Guide (written by a Smart-Thinker customer!)

Configuration issues and no time to read the Forums/Documentation? See our DotNetNuke Premium Support Service. We need your opinion! Please read our proposed new CrowdSourcing development method and let us know if you would be interested and if it might work.

 
 
  Forums  DotNetNuke  Smart-Thinker U...  UserProfile 4.3.12+ Twitter Integration and Profile Status Update
Previous Previous
 
Next Next
New Post 9/13/2008 9:35 PM
Informative
  Rodney Joyce
3227 posts
www.DNNDir.com
1st Level Poster




UserProfile 4.3.12+ Twitter Integration and Profile Status Update  (Australia)
Modified By Rodney Joyce  on 9/15/2008 6:01:48 PM)

Setting up your profile to allow Profile Status Updates

New module installers will have the tokens in the default template but you will have to add them in if you are doing an upgrade. There are 3 new tokens that you can use:

  • [PROFILESTATUS]
  • [PROFILESTATUSNOEDIT]
  • [PROFILESTATUSLASTUPDATED]

[PROFILESTATUS] is the most commonly used (it is used on the Welcome, Home and profile page on PokerDIY once logged in) and checks if you are the Profile Owner or Admin. If so, when you hover over the status it will change to be editable (very much like the Module Title editing). You can then change your status (it will publish a StoryFeed event and can optionally send to Twitter (see below)). Note that if a status has never been changed a localizable language string is shown to the user. There are 2 variants in this case - one (ProfileStatus.InitOwner) that is shown to the profile owner (e.g "What are you doing right now") and one (ProfileStatus.InitNonOwner) that is shown to any other user viewing this profile (on PokerDIY it is "is looking for poker leaguges and games").

 

Note that like Facebook it is possible to set your status to blank ("") - in this case you as the Profile Owner will see the init string, but everyone else will see a blank status as this is acceptable.

[PROFILESTATUSNOEDIT] just displays the status but is never editable.

[PROFILESTATUSLASTUPDATED] shows when the status was last edited (it functions similarily to Facebook in this regard).

 

 

Twitter Integration

You can now publish your Profile Status updates to your Twitter account. We shall use PokerDIY.com as an example (any PokerDIY user who has a Twitter account can mirror their status updates).

 

*Update* I have decided to only allow Admins to update their Twitter status on PokerDIY until the profile updates are more widely used. This means that you will not see these properties on PokerDIY unless you are an admin.

  

  1. Open a Twitter account if you do not have one (For this example mine is PokerDIY).
  2. Add the following Profile Properties to your core User Profile (Admin \ User Accounts \ Manage Profile Properties)
  • Property Name: PrefTwitterUpdate
  • DataType: True/False
  • Property Category: Integration (or Prefs)
  • Length: 0
  • Default Value: false
  • Validation Expression: Leave Blank
  • Required: (Depends on your site, not mandatory on PokerDIY)

The setting above allows your users to choose if they want to publish their updates to Twitter or not. Your users might not use Twitter so this should default to false and those who want to use it can turn it on when they edit their profile. Users who do this will need to identify themselves to the Twitter web service, so add the following two properties:

  • Property Name: TwitterUserName
  • DataType: Text
  • Property Category: Integration
  • Length: 50
  • Default Value: Leave Blank
  • Validation Expression: Leave Blank

 and

  • Property Name: TwitterPassword
  • DataType: Text
  • Property Category: Integration
  • Length: 50
  • Default Value: Leave Blank
  • Validation Expression: Leave Blank

Note that you must add these 3 properties and spell them correctly for the integration to work. If a user sets it to true and fills in their UserName and Password correctly then the status update will be published to Twitter at the same time. This only works if you are the Profile Owner, not if you are Admin editing another person's profile.

 


Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players

Smart-Thinker DotNetNuke Development Blog
 
Previous Previous
 
Next Next
  Forums  DotNetNuke  Smart-Thinker U...  UserProfile 4.3.12+ Twitter Integration and Profile Status Update
Top Threads Minimize
In the past 1 week, we have 3 new thread(s) and 3 new post(s)
The most popular thread has been Re: Event Module Installation Error on DNN 5.1
The most active thread has been Event Control is currently unavailable
In the past 1 week, we have 3 new thread(s) and 3 new post(s)
The most popular thread has been Re: Event Module Installation Error on DNN 5.1
The most active thread has been Event Control is currently unavailable
Print  

Smart-Thinker is powered by DotNetNuke - please support us and DotNetNuke - DotNetNuke Powered!
Smart-Thinker is powered by DotNetNuke - please support us and DotNetNuke - DotNetNuke Powered!
© 2008 Smart-Thinker