Changeset 1247 for branches/1.2/content/plugins
- Timestamp:
- 02/26/10 12:56:11 (3 years ago)
- Location:
- branches/1.2/content/plugins
- Files:
-
- 1 added
- 12 edited
-
comments/comments.php (modified) (3 diffs)
-
comments/languages/comments_language.php (modified) (1 diff)
-
comments/readme.txt (modified) (1 diff)
-
hello_universe/hello_universe.php (modified) (3 diffs)
-
hello_universe/languages/hello_universe_language.php (modified) (1 diff)
-
hello_universe/readme.txt (modified) (1 diff)
-
hello_universe/templates/profile_example.php (added)
-
rpx/readme.txt (modified) (1 diff)
-
rpx/rpx.php (modified) (1 diff)
-
sb_base/readme.txt (modified) (1 diff)
-
sb_base/sb_base.php (modified) (2 diffs)
-
user_signin/readme.txt (modified) (1 diff)
-
user_signin/user_signin.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/content/plugins/comments/comments.php
r1222 r1247 3 3 * name: Comments 4 4 * description: Enables logged-in users to comment on posts 5 * version: 1. 55 * version: 1.6 6 6 * folder: comments 7 7 * class: Comments 8 8 * type: comments 9 9 * requires: sb_base 0.1, users 1.1 10 * hooks: install_plugin, theme_index_top, header_include, admin_header_include_raw, theme_index_main, sb_base_show_post_extra_fields, sb_base_post_show_post, admin_plugin_settings, admin_sidebar_plugin_settings, submit_2_fields, submit_edit_admin_fields, post_delete_post, profile_ usage, , admin_theme_main_stats, breadcrumbs, submit_functions_process_submitted, submit_2_process_submission10 * hooks: install_plugin, theme_index_top, header_include, admin_header_include_raw, theme_index_main, sb_base_show_post_extra_fields, sb_base_post_show_post, admin_plugin_settings, admin_sidebar_plugin_settings, submit_2_fields, submit_edit_admin_fields, post_delete_post, profile_navigation, , admin_theme_main_stats, breadcrumbs, submit_functions_process_submitted, submit_2_process_submission 11 11 * 12 12 * PHP version 5 … … 689 689 $h->db->query($h->db->prepare($sql, $h->post->id)); 690 690 } 691 692 693 /** 694 * Add all comments link to Profile 695 */ 696 public function profile_usage($h) 697 { 698 echo "<a id='profile_see_comments' href='" . $h->url(array('page'=>'comments', 'user'=>$h->vars['user']->name)) . "'>"; 699 echo $h->lang['comments_profile_see_comments'] . "."; 700 echo "</a>"; 701 691 692 693 /** 694 * Profile navigation link 695 */ 696 public function profile_navigation($h) 697 { 698 echo "<li><a href='" . $h->url(array('page'=>'comments', 'user'=>$h->vars['user']->name)) . "'>" . $h->lang['users_all_comments'] . "</a></li>\n"; 702 699 } 703 700 … … 853 850 */ 854 851 855 mail($to, $subject, $message, $headers);852 $h->email($to, $subject, $message, $headers); 856 853 } 857 854 } -
branches/1.2/content/plugins/comments/languages/comments_language.php
r1222 r1247 110 110 $lang["comment_rss_commented_on"] = " commented on "; 111 111 112 /* User Profile */113 $lang["comments_profile_see_comments"] = " or click here to see my comments";114 115 112 /* Admin Stats */ 116 113 $lang["comments_admin_stats_total_comments"] = "Total comments"; -
branches/1.2/content/plugins/comments/readme.txt
r1222 r1247 15 15 Changelog 16 16 --------- 17 v.1.5 2009/02/23 - Nick - Shows messages for moderated comments: "Awaiting approval", "Exceeded Daily Limit", etc. 18 v.1.4 2009/02/09 - Nick - Option to hide comments after X down votes, plus pagination code changes 19 v.1.3 2009/01/17 - Nick - Added option for avatar size 17 v.1.6 2010/02/26 - Nick - Adds link to profile navigation; Email changed to go through Hotaru's "email" function 18 v.1.5 2010/02/23 - Nick - Shows messages for moderated comments: "Awaiting approval", "Exceeded Daily Limit", etc. 19 v.1.4 2010/02/09 - Nick - Option to hide comments after X down votes, plus pagination code changes 20 v.1.3 2010/01/17 - Nick - Added option for avatar size 20 21 v.1.2 2009/12/30 - Nick - Updates for compatibility with Hotaru 1.0 21 22 v.1.1 2009/11/25 - Nick - Bug fix for comment form closing when a post is edited by a non-admin user -
branches/1.2/content/plugins/hello_universe/hello_universe.php
r1100 r1247 3 3 * name: Hello Universe 4 4 * description: Demonstrates how to make plugins 5 * version: 0. 65 * version: 0.7 6 6 * folder: hello_universe 7 7 * class: HelloUniverse 8 * hooks: theme_index_top, theme_index_main, theme_index_sidebar 8 * hooks: theme_index_top, theme_index_main, theme_index_sidebar, profile_navigation 9 9 * author: Nick Ramsay 10 10 * authorurl: http://hotarucms.org/member.php?1-Nick … … 68 68 return true; 69 69 break; 70 default: 70 case 'profile_example': 71 $user = $h->cage->get->testUsername('user'); 72 if ($user) { 73 // create a user object and fill it with user info 74 $h->vars['user'] = new UserAuth(); 75 $user_info = $h->vars['user']->getUserBasic($h, 0, $user); 76 if ($user_info) { 77 // only show the page if the user exists: 78 $h->pageType = 'user'; 79 $h->displayTemplate('users_navigation', 'users'); // Displays user navigation from Users plugin 80 $h->displayTemplate('profile_example'); // Displays the page from this plugin folder 81 return true; 82 } 83 } 84 break; 85 case 'index': 71 86 $this->mainPage($h); 72 87 return true; 88 break; 89 default: 90 // do nothing 73 91 break; 74 92 } … … 142 160 return false; 143 161 } 162 163 164 /** 165 * FUNCTION #6 166 * 167 * Profile navigation link 168 */ 169 public function profile_navigation($h) 170 { 171 echo "<li><a href='" . $h->url(array('page'=>'profile_example', 'user'=>$h->vars['user']->name)) . "'>" . $h->lang['hello_universe_profile_example'] . "</a></li>\n"; 172 } 144 173 145 174 } -
branches/1.2/content/plugins/hello_universe/languages/hello_universe_language.php
r847 r1247 42 42 $lang["hello_universe_form_submit"] = "Submit"; 43 43 44 /* Example User Page */ 45 $lang["hello_universe_profile_example"] = "Example Page"; 46 44 47 /* Common language */ 45 48 $lang["hello_universe_back_home"] = "Back Home"; -
branches/1.2/content/plugins/hello_universe/readme.txt
r849 r1247 13 13 Changelog 14 14 --------- 15 v.0.7 2010/02/26 - Nick - Demonstration of adding a page to a user profile 15 16 v.0.6 2009/12/28 - Nick - Updates for compatibility with Hotaru 1.0 16 17 v.0.5 2009/10/19 - Nick - Bug fixes -
branches/1.2/content/plugins/rpx/readme.txt
r951 r1247 18 18 Changelog 19 19 --------- 20 v.0.5 2010/02/25 - Nick - New plugin hook in register template (used by TOS AntiSpam plugin) 20 21 v.0.4 2010/01/16 - Nick - Fixes for RPX change from GET to POST method 21 22 v.0.3 2010/01/04 - Nick - Updates for compatibility with Hotaru 1.0 -
branches/1.2/content/plugins/rpx/rpx.php
r1121 r1247 3 3 * name: RPX 4 4 * description: Enables registration and login with Twitter, Facebook ,Google, etc. 5 * version: 0. 45 * version: 0.5 6 6 * folder: rpx 7 7 * class: RPX -
branches/1.2/content/plugins/sb_base/readme.txt
r1217 r1247 14 14 Changelog 15 15 --------- 16 v.0.5 2010/02/26 - Nick - Filters hidden from user pages; Added profile navigation link 16 17 v.0.4 2010/02/23 - Nick - Bug fix for user RSS feed and showing messages above posts 17 18 v.0.3 2010/02/21 - Nick - Bug fixes, cleaner list template and new "sb_no_posts" template -
branches/1.2/content/plugins/sb_base/sb_base.php
r1217 r1247 3 3 * name: SB Base 4 4 * description: Social Bookmarking base - provides "list" and "post" templates. 5 * version: 0. 45 * version: 0.5 6 6 * folder: sb_base 7 7 * class: SbBase 8 8 * type: base 9 * hooks: install_plugin, theme_index_top, header_meta, header_include, navigation, breadcrumbs, theme_index_main, admin_plugin_settings, admin_sidebar_plugin_settings, admin_maintenance_database, admin_maintenance_top, admin_theme_main_stats, user_settings_pre_save, user_settings_fill_form, user_settings_extra_settings, theme_index_pre_main 9 * hooks: install_plugin, theme_index_top, header_meta, header_include, navigation, breadcrumbs, theme_index_main, admin_plugin_settings, admin_sidebar_plugin_settings, admin_maintenance_database, admin_maintenance_top, admin_theme_main_stats, user_settings_pre_save, user_settings_fill_form, user_settings_extra_settings, theme_index_pre_main, profile_navigation 10 10 * author: Nick Ramsay 11 11 * authorurl: http://hotarucms.org/member.php?1-Nick … … 542 542 543 543 544 /** 545 * Profile navigation link 546 */ 547 public function profile_navigation($h) 548 { 549 echo "<li><a href='" . $h->url(array('page'=>'all', 'user'=>$h->vars['user']->name)) . "'>" . $h->lang["users_all_posts"] . "</a></li>\n"; 550 } 551 552 544 553 /** 545 554 * Prepare sort links -
branches/1.2/content/plugins/user_signin/readme.txt
r1220 r1247 15 15 Changelog 16 16 --------- 17 v.0.3 2010/02/26 - Nick - New plugin hook in the registration form; mail sent through Hotaru's email function 17 18 v.0.2 2010/02/23 - Nick - Throws out killspammed, banned or suspended users when checking the cookie 18 19 v.0.1 2009/12/27 - Nick - Released first version -
branches/1.2/content/plugins/user_signin/user_signin.php
r1220 r1247 3 3 * name: User Signin 4 4 * description: Provides user registration and login 5 * version: 0. 25 * version: 0.3 6 6 * folder: user_signin 7 7 * type: signin … … 598 598 */ 599 599 600 mail($to, $subject, $body, $headers);600 $h->email($to, $subject, $body, $headers); 601 601 } 602 602
Note: See TracChangeset
for help on using the changeset viewer.