Go Back   Pligg CMS Forum > Pligg Help > Wiki Articles

 
 
LinkBack Article Tools Display Modes
  #1 (permalink)  
Old 09-15-2008, 10:33 PM
Yankidank's Avatar
Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 1,823
Thanks: 110
Thanked 182 Times in 128 Posts
Send a message via AIM to Yankidank Send a message via Skype™ to Yankidank
Module Hooks

Please see this link for more information about module hooks and templates.
__________________
Need a Pligg Host?
Get 3 free months
when you buy a year of hosting.
Use the coupon PLIGG at either...
MidPhase hosting starting at $7.95/month.
ANhosting hosting starting as low as $4.95/month.

Last edited by Yankidank; 09-16-2008 at 02:26 PM..
Reply With Quote
  #2  

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_group_start"} - Before the Group avatar and information
  24. {checkActionsTpl location="tpl_pligg_group_end"} - After Group Information (before the group stories on group_stories.php)
  25. {checkActionsTpl location="tpl_pligg_group_list_start"} - After individual Group title
  26. {checkActionsTpl location="tpl_pligg_group_list_end"} - After individual Group Member number
  27. {checkActionsTpl location="tpl_pligg_group_sort_start"} - Start of Group Sort list
  28. {checkActionsTpl location="tpl_pligg_group_sort_start"} - End of Group Sort list
  29. {checkActionsTpl location="tpl_pligg_submit_step1_start"} - After Submit step 1 of 3
  30. {checkActionsTpl location="tpl_pligg_submit_step1_middle"} - After Submit step 1 guideline list
  31. {checkActionsTpl location="tpl_pligg_submit_step1_end"} - After Submit step 1 link field
  32. {checkActionsTpl location="tpl_pligg_submit_step2_start"} - After step 2 of 3
  33. {checkActionsTpl location="tpl_pligg_submit_step2_middle"} - Before Submit Step 2 description
  34. {checkActionsTpl location="tpl_pligg_submit_step2_end"} - After Submit Step 2 continue button
  35. {checkActionsTpl location="tpl_pligg_submit_step3_start"} - After step 3 of 3
  36. {checkActionsTpl location="tpl_pligg_submit_step3_end"} - After Submit Step 3 continue button
  37. {checkActionsTpl location="tpl_pligg_story_start"} - Very beginning of link_summary.tpl
  38. {checkActionsTpl location="tpl_pligg_story_end"} - Very end of link_summary.tpl
  39. {checkActionsTpl location="tpl_pligg_story_votebox_start"} - Before votebox
  40. {checkActionsTpl location="tpl_pligg_story_votebox_end"} - After votebox
  41. {checkActionsTpl location="tpl_pligg_story_title_start"} - Before title
  42. {checkActionsTpl location="tpl_pligg_story_title_end"} - After votebox
  43. {checkActionsTpl location="tpl_pligg_story_body_start"} - Before story body
  44. {checkActionsTpl location="tpl_pligg_story_body_end"} - After story body
  45. {checkActionsTpl location="tpl_pligg_story_tools_start"} - Before story tools
  46. {checkActionsTpl location="tpl_pligg_story_tools_end"} - After story tools
  47. {checkActionsTpl location="tpl_link_summary_admin_links"} - End of the story admin link tools
  48. {checkActionsTpl location="tpl_pligg_story_who_voted_start"} - Before who voted
  49. {checkActionsTpl location="tpl_pligg_story_who_voted_end"} - After who voted
  50. {checkActionsTpl location="tpl_pligg_story_related_start"} - Before related
  51. {checkActionsTpl location="tpl_pligg_story_related_end"} - After related
  52. {checkActionsTpl location="tpl_pligg_story_comments_start"} - Before comments
  53. {checkActionsTpl location="tpl_pligg_story_comments_end"} - After comments
  54. {checkActionsTpl location="tpl_pligg_story_comments_single_start"} - Before individual comment
  55. {checkActionsTpl location="tpl_pligg_story_comments_single_end"} - After individual comments
  56. {checkActionsTpl location="tpl_pligg_story_comments_submit_start"} - Before comment submit
  57. {checkActionsTpl location="tpl_pligg_story_comments_submit_end"} - After comment submit
  58. {checkActionsTpl location="tpl_pligg_sidebar_start"} - Start of sidebar
  59. {checkActionsTpl location="tpl_pligg_sidebar_end"} - End of sidebar
  60. {checkActionsTpl location="tpl_pligg_sidebar2_start"} - Start of second (optional) sidebar
  61. {checkActionsTpl location="tpl_pligg_sidebar2_end"} - End of second (optional) sidebar.
  62. {checkActionsTpl location="tpl_pligg_sidebar3_start"} - Start of third (optional) sidebar.
  63. {checkActionsTpl location="tpl_pligg_sidebar3_end"} - End of third (optional) sidebar.
  64. {checkActionsTpl location="tpl_pligg_pagination_start"} - Before pagination
  65. {checkActionsTpl location="tpl_pligg_pagination_end"} - After pagination
  66. {checkActionsTpl location="tpl_pligg_footer_start"} - Beginning of footer
  67. {checkActionsTpl location="tpl_pligg_footer_end"} - End of footer
  68. {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 head tag
  2. {checkActionsTpl location="tpl_pligg_admin_head_end"} - Before admin panel head close tag
  3. {checkActionsTpl location="tpl_pligg_admin_breadcrumbs"} - After admin panel breadcrumbs
  4. {checkActionsTpl location="tpl_pligg_admin_body_start"} - After admin panel body tag
  5. {checkActionsTpl location="tpl_pligg_admin_body_end"} - Before admin panel body end 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 legend close tag
  11. {checkActionsTpl location="tpl_pligg_admin_legend_after"} - Before admin legend tag
  12. {checkActionsTpl location="tpl_header_admin_main_links"} - The main admin panel page link list for modules
  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


Contributors: chuckroast
Created by Yankidank, 09-15-2008 at 10:33 PM
Last edited by Yankidank, 10-25-2008 at 05:40 PM
1 Comments , 929 Views
 

Article Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Fixes to Profile Extra Fields Module v0.2 and Extended Profile Module v0.1 redwine Modification Tutorials 3 10-18-2008 10:28 AM
[MOD] Image Upload Module (v0.93) -- Please test cent Modification Tutorials 48 05-16-2008 08:08 PM
Updated Pligg Pro Module Pack chuckroast Module Sales 24 03-06-2008 03:21 AM
READ ME FIRST: Pligg Module Thread Rules Yankidank Pligg Modules 0 12-01-2007 04:16 PM
submit hooks mihai General Help 12 11-30-2007 08:22 PM


Search Engine Friendly URLs by vBSEO 3.2.0