Last change
on this file since 12607 was
12607,
checked in by mistic100, 12 years ago
|
display thumbnails on mails and subscriptions list
fix misplaced field on comment form
move management link to profile page
|
File size:
1.2 KB
|
Rev | Line | |
---|
[12560] | 1 | <?php |
---|
| 2 | /* |
---|
| 3 | Plugin Name: Subscribe To Comments |
---|
| 4 | Version: auto |
---|
[12600] | 5 | Description: This plugin allows you to subscribe to comments by email. |
---|
[12561] | 6 | Plugin URI: http://piwigo.org/ext/extension_view.php?eid=587 |
---|
[12560] | 7 | Author: Mistic |
---|
| 8 | Author URI: http://www.strangeplanet.fr |
---|
| 9 | */ |
---|
| 10 | |
---|
| 11 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 12 | |
---|
| 13 | global $prefixeTable; |
---|
| 14 | |
---|
| 15 | define('SUBSCRIBE_TO_DIR' , basename(dirname(__FILE__))); |
---|
| 16 | define('SUBSCRIBE_TO_PATH' , PHPWG_PLUGINS_PATH . SUBSCRIBE_TO_DIR . '/'); |
---|
| 17 | define('SUBSCRIBE_TO_TABLE', $prefixeTable . 'subscribe_to_comments'); |
---|
| 18 | |
---|
| 19 | include_once(SUBSCRIBE_TO_PATH.'include/functions.inc.php'); |
---|
[12600] | 20 | include_once(SUBSCRIBE_TO_PATH.'include/subscribe_to_comments.inc.php'); |
---|
[12560] | 21 | |
---|
[12561] | 22 | load_language('plugin.lang', SUBSCRIBE_TO_PATH); |
---|
| 23 | |
---|
| 24 | // send mails |
---|
[12560] | 25 | add_event_handler('user_comment_insertion', 'stc_comment_insertion'); |
---|
| 26 | add_event_handler('user_comment_validation', 'stc_comment_validation', EVENT_HANDLER_PRIORITY_NEUTRAL, 2); |
---|
[12561] | 27 | |
---|
| 28 | // subscribe |
---|
[12560] | 29 | add_event_handler('loc_end_picture', 'stc_on_picture'); |
---|
[12561] | 30 | add_event_handler('loc_begin_index', 'stc_on_album'); |
---|
| 31 | |
---|
| 32 | // management |
---|
[12560] | 33 | add_event_handler('loc_end_section_init', 'stc_detect_section'); |
---|
[12561] | 34 | add_event_handler('loc_end_index', 'stc_load_section'); |
---|
[12560] | 35 | |
---|
[12607] | 36 | // profile link |
---|
| 37 | add_event_handler('loc_begin_profile', 'stc_profile_link'); |
---|
[12600] | 38 | |
---|
[12560] | 39 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.