Hook
From No LJ Ads Wiki
Contents |
[edit] Overview
Hooks are customizations that one can apply to their LiveJournal Server installation.
[edit] Hooks
These are the ljcom implementations of various hooks
[edit] Account Status
- accountstatus.bml_after_deletion
- Survey for user to fill out after they delete their account
[edit] Ad Boxes
- ebox_ad_content
- Content of a box that appears between entries
- hbox_bottom_ad_content
- Content of a box that appears horizontally at the bottom of a page
- hbox_top_ad_content
- Content of a box that appears horizontally at the top of a page
- hbox_with_vbox_ad_content
- Content of a box that appears horizontally along with the presence of a vbox
- vbox_ad_content
- Content of a box that appears vertically along the side of a page
- viewer_sees_ebox
- Determines whether or not the remote viewer sees eboxes
[edit] AllPics
- allpics_upsell_text
- On the AllPics page, if the remote user can purchase more userpics for their account, provide a link for them to be able to do so.
[edit] CProd
- cprod_inline
- Call to a specific inline CProd
[edit] Caps
- add_to_class
- When a user is added to a cap class, take note of it
- check_cap_disk_quota
- Return disk quota size
- check_cap_perm
- Check to see if given user has a Permanent Account
- check_cap_userpics
- Return number of allowed userpics
- get_cap_bit
- Gets unique cap bit for a user
- modify_caps
- Change user caps when changing Account Levels
- remove_from_class
- When a user is removed from a cap class, take note of it
- user_caps_icon
- Image used for specific Account Levels on User Info page
[edit] Control Strip
- control_strip_logo
- Displays "Powered by LiveJournal" image and CProd if necessary
- control_strip_propcheck
- Set specific properties of Control Strip. These properties include viewing, showing and forcing display of the Control Strip in various locations of the site
- control_strip_stylesheet_link
- Figure out which stylesheets to load for the Control Strip
- control_strip_userpic
- Figure out which userpic object to display if showing userpic placeholder
- show_control_strip
- Return true if we're going to show the Control Strip
[edit] Create Page
- create.bml_opts
- Add various form options for account creation. In LJ's case, it's the Account Level chooser.
- create.bml_postsession
- Redirect the page somewhere else after account creation based on Account Level
- post_create
- Tasks to perform once a new account has been created.
- Current behavior:
- Mangle email
- "new" cap to "free" cap
- Create automatic first post that introduces user to LiveJournal. Automatic post does not trip "last updated" time on Profile page.
- Subscribe to "OfficialPost" notifications via Inbox and email
- Subscribe to "JournalNewComment" notifications via Inbox and email
- Subscribe to "Befriended" notifications via Inbox and email
[edit] Default Style
- get_default_style
- Determine which layout is the default S2 style based on the user's Account Level
- set_default_style
- Set default S2 style settings
[edit] EditPics
- editpics_upsell_text
- On the EditPics page, if the remote user can purchase more userpics for their account, provide a link for them to be able to do so.
[edit] Interests
- get_other_interested_comms
- Return array of userids of Sponsored Communities that should be included in interest searches if the community doesn't actually have that interest on their interest list
- interests_bml
- Add additional content to interest search page. Adds MeetUp link, application page ad, and Sponsored Community results.
[edit] Jabber
- jabber_download_title
- Text for Jabber client download link
- jabber_link
- URL for Jabber link on User Info page
- jabber_title
- Text for Jabber link on User Info page
[edit] Login
- login_add_opts
- Additional options for login form
- post_login_news
- On the login page, after logging in, display an advert or a link to the news page.
[edit] Mood Themes
- moodtheme_upsell
- Provides data for BML ML strings for providing links to upgrade your account if your Account Level doesn't support creation of Mood Themes.
- show_mood_theme
- Determines whether or not the user can use a given Mood Theme.
- Current behavior:
[edit] S2 Styles
- s2_can_use_layer
- Determine whether or not an account has access to specific s2 layers
- s2_head_content_extra
- Extra content added to the
<head>of s2 pages
[edit] Underage
- set_underage
- If a user gets marked underage, clear out their personally identifying information.
- underage_redirect
- If remote viewer is underage, redirect to access confirmation page.
[edit] User Info
- userinfo_alt_cfriends
- List of Sponsored Communities
- userinfo_contact_extra
- Includes LJ Talk online status
- userinfo_html_by_journal
- Virtual Gifts
- userinfo_html_by_user
- Paid Account hand, also shown on Permanent Account pages. Only used in first version of User Info page.
- userinfo_local_props
- Site-specific userprops
- userinfo_linkele
- Site-specific link buttons for User Info page. Only used in first version of User Info page.
- userinfo_rows
- Table row that displays Account Level. Only used in first version of User Info page.
- userinfo_rows_full_mode
- Table row that displays Virtual Gifts. Only used in first version of User Info page.

