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.
- Open a Twitter account if you do not have one (For this example mine is PokerDIY).
- 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.