Results 1 to 2 of 2

Thread: Module Hooks

  1. #1
    Pligg Founder/Coder/Designer Yankidank's Avatar
    Joined
    Dec 2005
    Location
    San Francisco, CA
    Posts
    5,538

    Module Hooks

    Reserved for future media.
    The Facebook Module for Pligg CMS!
    Register, Login, and Submit Stories with Facebook. An absolute MUST HAVE for all Pligg sites!

  2. #2
    Pligg Founder/Coder/Designer Yankidank's Avatar
    Joined
    Dec 2005
    Location
    San Francisco, CA
    Posts
    5,538

    Module Hooks

    Module template hooks are necessary to allow modules to easily be added to a Pligg template without making the Pligg user make edits to their template files. Pligg has added a large number of new template hooks in the latest templates and is providing this page so that template authors and users can learn how to add the new hooks into their existing and future templates.

    The module hooks are generally placed as pairs, one at the beginning of an area and another at the end. This allows modules to place content before or after pretty much any part of Pligg. We even included an optional second and third sidebar hook if a template developer chooses to provide more than one sidebar.

    Standard Template Module Hooks:
    1. {checkActionsTpl location="tpl_pligg_head_start"} - After tag
    2. {checkActionsTpl location="tpl_pligg_head_end"} - Before tag
    3. {checkActionsTpl location="tpl_pligg_body_start"} - After tag
    4. {checkActionsTpl location="tpl_pligg_body_end"} - Before tag
    5. {checkActionsTpl location="tpl_pligg_navbar_start"} - Before main navigation link list
    6. {checkActionsTpl location="tpl_pligg_navbar_end"} - After main navigation link list
    7. {checkActionsTpl location="tpl_pligg_secondary_navbar_start"} - Before secondary navigation
    8. {checkActionsTpl location="tpl_pligg_secondary_navbar_end"} - After secondary navigation
    9. {checkActionsTpl location="tpl_pligg_banner_top"} - Before the main content area starts and after any navigation
    10. {checkActionsTpl location="tpl_pligg_banner_bottom"} - Between body content and footer
    11. {checkActionsTpl location="tpl_pligg_content_start"} - Top of the content area
    12. {checkActionsTpl location="tpl_pligg_content_end"} - Bottom of the content area
    13. {checkActionsTpl location="tpl_pligg_breadcrumb_end"} - End of the breadcrumbs
    14. {checkActionsTpl location="tpl_pligg_sort_start"} - Beginning of sort (day, week, month, etc.) buttons
    15. {checkActionsTpl location="tpl_pligg_sort_end"} - End of sort (day, week, month, etc.) buttons
    16. {checkActionsTpl location="tpl_pligg_profile_sort_start"} - Beginning of profile page sort buttons
    17. {checkActionsTpl location="tpl_pligg_profile_sort_end"} - End of profile page sort buttons
    18. {checkActionsTpl location="tpl_pligg_profile_start"} - Just after profile breadcrumbs
    19. {checkActionsTpl location="tpl_pligg_profile_end"} - After profile bookmarklet
    20. {checkActionsTpl location="tpl_pligg_profile_info_start"} - Before personal info
    21. {checkActionsTpl location="tpl_pligg_profile_info_middle"} - Between personal info and stats
    22. {checkActionsTpl location="tpl_pligg_profile_info_end"} - After user stats
    23. {checkActionsTpl location="tpl_pligg_profile_settings_start"} - Start of the User Settings page
    24. {checkActionsTpl location="tpl_pligg_profile_settings_end"} - End of the User Settings page
    25. {checkActionsTpl location="tpl_pligg_group_start"} - Before the Group avatar and information
    26. {checkActionsTpl location="tpl_pligg_group_end"} - After Group Information (before the group stories on group_stories.php)
    27. {checkActionsTpl location="tpl_pligg_group_list_start"} - After individual Group title
    28. {checkActionsTpl location="tpl_pligg_group_list_end"} - After individual Group Member number
    29. {checkActionsTpl location="tpl_pligg_group_sort_start"} - Start of Group Sort list
    30. {checkActionsTpl location="tpl_pligg_group_sort_end"} - End of Group Sort list
    31. {checkActionsTpl location="tpl_pligg_submit_step1_start"} - After Submit step 1 of 3
    32. {checkActionsTpl location="tpl_pligg_submit_step1_middle"} - After Submit step 1 guideline list
    33. {checkActionsTpl location="tpl_pligg_submit_step1_end"} - After Submit step 1 link field
    34. {checkActionsTpl location="tpl_pligg_submit_step2_start"} - After step 2 of 3
    35. {checkActionsTpl location="tpl_pligg_submit_step2_middle"} - Before Submit Step 2 description
    36. {checkActionsTpl location="tpl_pligg_submit_step2_end"} - After Submit Step 2 continue button
    37. {checkActionsTpl location="tpl_pligg_submit_step3_start"} - After step 3 of 3
    38. {checkActionsTpl location="tpl_pligg_submit_step3_end"} - After Submit Step 3 continue button
    39. {checkActionsTpl location="tpl_pligg_story_start"} - Very beginning of link_summary.tpl
    40. {checkActionsTpl location="tpl_pligg_story_end"} - Very end of link_summary.tpl
    41. {checkActionsTpl location="tpl_pligg_story_votebox_start"} - Before votebox
    42. {checkActionsTpl location="tpl_pligg_story_votebox_end"} - After votebox
    43. {checkActionsTpl location="tpl_pligg_story_title_start"} - Before title
    44. {checkActionsTpl location="tpl_pligg_story_title_end"} - After votebox
    45. {checkActionsTpl location="tpl_link_summary_pre_story_content"} - Before the story content on all story pages
    46. {checkActionsTpl location="tpl_pligg_story_body_start"} - Before story body on summary pages
    47. {checkActionsTpl location="tpl_pligg_story_body_start_full"} - Before story body on the story url page
    48. {checkActionsTpl location="tpl_pligg_story_body_end"} - After story body
    49. {checkActionsTpl location="tpl_pligg_story_tools_start"} - Before story tools
    50. {checkActionsTpl location="tpl_pligg_story_tools_end"} - After story tools
    51. {checkActionsTpl location="tpl_link_summary_admin_links"} - End of the story admin link tools
    52. {checkActionsTpl location="tpl_pligg_story_who_voted_start"} - Before who voted
    53. {checkActionsTpl location="tpl_pligg_story_who_voted_end"} - After who voted
    54. {checkActionsTpl location="tpl_pligg_story_related_start"} - Before related
    55. {checkActionsTpl location="tpl_pligg_story_related_end"} - After related
    56. {checkActionsTpl location="tpl_pligg_story_comments_start"} - Before comments
    57. {checkActionsTpl location="tpl_pligg_story_comments_end"} - After comments
    58. {checkActionsTpl location="tpl_pligg_story_comments_single_start"} - Before individual comment
    59. {checkActionsTpl location="tpl_pligg_story_comments_single_end"} - After individual comments
    60. {checkActionsTpl location="tpl_pligg_story_comments_submit_start"} - Before comment submit
    61. {checkActionsTpl location="tpl_pligg_story_comments_submit_end"} - After comment submit
    62. {checkActionsTpl location="tpl_pligg_sidebar_start"} - Start of sidebar
    63. {checkActionsTpl location="tpl_pligg_sidebar_end"} - End of sidebar
    64. {checkActionsTpl location="tpl_pligg_sidebar2_start"} - Start of second (optional) sidebar
    65. {checkActionsTpl location="tpl_pligg_sidebar2_end"} - End of second (optional) sidebar
    66. {checkActionsTpl location="tpl_pligg_sidebar3_start"} - Start of third (optional) sidebar
    67. {checkActionsTpl location="tpl_pligg_sidebar3_end"} - End of third (optional) sidebar
    68. {checkActionsTpl location="tpl_pligg_pagination_start"} - Before pagination
    69. {checkActionsTpl location="tpl_pligg_pagination_end"} - After pagination
    70. {checkActionsTpl location="tpl_pligg_footer_start"} - Beginning of footer
    71. {checkActionsTpl location="tpl_pligg_footer_end"} - End of footer
    72. {checkActionsTpl location="submit_step_2_pre_extrafields"} - Before Submit Step 2 Submit button

    Admin Panel Module Hooks:

    1. {checkActionsTpl location="tpl_pligg_admin_head_start"} - After admin panel tag
    2. {checkActionsTpl location="tpl_pligg_admin_head_end"} - Before admin panel tag
    3. {checkActionsTpl location="tpl_pligg_admin_breadcrumbs"} - After admin panel breadcrumbs
    4. {checkActionsTpl location="tpl_pligg_admin_body_start"} - After admin panel tag
    5. {checkActionsTpl location="tpl_pligg_admin_body_end"} - Before admin panel tag
    6. {checkActionsTpl location="tpl_pligg_admin_sidebar_start"} - Beginning of admin sidebar
    7. {checkActionsTpl location="tpl_pligg_admin_sidebar_end"} - End of admin sidebar
    8. {checkActionsTpl location="tpl_pligg_admin_navtabs_start"} - Beginning of admin navigation tabs
    9. {checkActionsTpl location="tpl_pligg_admin_navtabs_end"} - End of admin navigation tabs
    10. {checkActionsTpl location="tpl_pligg_admin_legend_before"} - After admin
    11. {checkActionsTpl location="tpl_pligg_admin_legend_after"} - Before admin
    12. {checkActionsTpl location="tpl_header_admin_main_links"} - In the main admin panel Module link list.
    13. {checkActionsTpl location="tpl_admin_after_stats"} - Main admin panel page after the stats.
    14. {checkActionsTpl location="tpl_header_admin_links"} - Admin panel navigation links

Similar Threads

  1. new module hooks
    By kephrira in forum Questions & Comments
    Replies: 0
    Last Post: 04-07-2010, 11:26 AM
  2. Is there a set of Specific Hooks needed in a Template?
    By Ascendancy in forum Questions & Comments
    Replies: 2
    Last Post: 04-06-2010, 08:52 AM
  3. Snippet Module tpl_pligg_story_* hooks not working
    By hiousi in forum Questions & Comments
    Replies: 4
    Last Post: 10-10-2009, 10:40 AM
  4. submit hooks
    By mihai in forum Questions & Comments
    Replies: 12
    Last Post: 11-30-2007, 06:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •