Up:profile-action
Renders a link on the user's profile under their photo (such as "View More photos of..").
Attributes
- Required
- stirng url - The URL to which the user is taken after clicking the must be absolute link.
Sample code
<up:profile-action url="http://www.mysite.com/action/">
Perform Action
</up:profile-action>
|
Notes
- Use up.profile.setUPML to add the button to a user's profile.
- If you add this to the profile of a user who has not added your application, it will appear only to those users who have added your application. By setting the default UPML (in Edit Settings, under My Applications) to include a up:profile-action, this action appears on every profile the user of your application sees.
- There is a limit of about 30 characters[verify] in the action label. (Note: Leading and trailing white-space counts against this limit, so if your link is being elided, check for and remove any extra spaces between the tags and the label text.)
- For users for whom you have not called up.profile.setUPML, the actions are read from the content in "Default UPML" section of your application settings. For the most part, this applies to any user who has not added your application.
- For users for whom you have called up.profile.setUPML, the actions are read from whatever content you set when you last called up.profile.setUPML for that user.
- Example: There are three friends -- Larry, Curly and Moe. Both Larry and Curly add your application. When Larry views Curly’s profile, the profile actions that Larry sees on Curly’s profile come from the content you posted to Curly’s profile. When Larry views Moe’s profile, the profile actions Larry sees on Moe’s profile come from the default UPML content, because you haven’t called up.profile.setUPML on Moe, because you don’t necessarily know he exists.