Changeset 510
- Timestamp:
- 10/02/08 19:30:30 (15 years ago)
- google:author:
- appears
- Location:
- plugins/subscribeToComments
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/subscribeToComments/_define.php
r501 r510 30 30 /* Description*/ "Subscribe to comments", 31 31 /* Author */ "Moe (http://gniark.net/)", 32 /* Version */ '1.2. 2',32 /* Version */ '1.2.3', 33 33 /* Permissions */ 'admin' 34 34 ); -
plugins/subscribeToComments/_install.php
r490 r510 89 89 'string','Allowed post types',true,true); 90 90 } 91 # Change From: header of outbound emails 92 if (version_compare($i_version,'1.2.3','<')) { 93 $core->blog->settings->setNameSpace('subscribetocomments'); 94 $core->blog->settings->put('subscribetocomments_email_from', 95 'dotclear@'.$_SERVER['HTTP_HOST'], 96 'string','Change From: header of outbound emails',true,true); 97 } 91 98 } 92 99 -
plugins/subscribeToComments/class.subscriber.php
r501 r510 235 235 { 236 236 $core->con->execute('DELETE FROM '.$core->prefix.'meta WHERE '. 237 '(post_id = \''.$v.'\') AND (meta_type = \'subscriber\') AND '.237 '(post_id = '.$v.') AND (meta_type = \'subscriber\') AND '. 238 238 '(meta_id = \''.$this->id.'\');'); 239 239 } -
plugins/subscribeToComments/default-templates/subscribetocomments.html
r489 r510 78 78 {{tpl:EntryTitle encode_html="1"}}</a></p> 79 79 <tpl:EntryIf show_comments="1"> 80 80 <h3>{{tpl:lang Subscribe to one entry}}</h3> 81 81 </tpl:EntryIf> 82 82 </tpl:SubscribeToCommentsEntryIf> -
plugins/subscribeToComments/default_settings.php
r489 r510 10 10 $core->blog->settings->put('subscribetocomments_active',true, 11 11 'boolean','Activate Subscribe to comments'); 12 13 # Change From: header of outbound emails 14 $core->blog->settings->put('subscribetocomments_email_from', 15 'dotclear@'.$_SERVER['HTTP_HOST'], 16 'string','Change From: header of outbound emails'); 12 17 13 18 # Allowed post types -
plugins/subscribeToComments/index.php
r499 r510 154 154 (!empty($_POST['subscribetocomments_active'])),'boolean', 155 155 'Activate Subscribe to comments'); 156 157 subscribeToComments::checkEmail( 158 $_POST['subscribetocomments_email_from']); 159 # Change From: header of outbound emails 160 $core->blog->settings->put('subscribetocomments_email_from', 161 $_POST['subscribetocomments_email_from'], 162 'text','Change From: header of outbound emails'); 156 163 157 164 # Allowed post types … … 291 298 <?php printf(__('Activate %s'),__('Subscribe to comments')); ?></label> 292 299 </p> 300 <p> 301 <label class="classic" for="subscribetocomments_email_from"> 302 <?php echo(__('Change From: header of outbound emails:')); ?> 303 </label> 304 <?php echo(form::field('subscribetocomments_email_from',80,80, 305 $core->blog->settings->subscribetocomments_email_from)); ?>. 306 </p> 293 307 294 308 <h3><?php echo(__('Post types')); ?></h3> -
plugins/subscribeToComments/lib.subscribeToComments.php
r499 r510 242 242 $core->prefix.'comment_subscriber S '. 243 243 'INNER JOIN '.$core->prefix.'meta M ON '. 244 '(M.post_id = \''.$cur->post_id.'\') AND '. 245 '(M.meta_type = \'subscriber\') AND (S.id = M.meta_id)'. 244 (($core->con->driver() == 'pgsql') ? 245 # CAST = PostgreSQL compatibility : 246 # PGSQL need datas of the same type to compare 247 '(S.id = CAST(M.meta_id AS integer))': 248 '(S.id = M.meta_id)'). 249 ' AND (M.meta_type = \'subscriber\') AND (M.post_id = '.$cur->post_id.')'. 246 250 ' AND (S.email != \''.$cur->comment_email.'\')'. 247 251 ' AND (S.status = \'1\');' … … 292 296 public static function mail($to,$subject,$content) 293 297 { 298 global $core; 299 294 300 $headers = array( 295 'From: dotclear@'.$_SERVER['HTTP_HOST'],301 'From: '.$core->blog->settings->subscribetocomments_email_from, 296 302 'MIME-Version: 1.0', 297 303 'Content-Type: text/plain; charset=UTF-8;', -
plugins/subscribeToComments/locales/fr/main.po
r499 r510 3 3 "Project-Id-Version: Subscribe to comments\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 2008- 09-17 14:12+0100\n"6 "PO-Revision-Date: 2008- 09-17 14:13+0100\n"5 "POT-Creation-Date: 2008-10-02 19:10+0100\n" 6 "PO-Revision-Date: 2008-10-02 19:11+0100\n" 7 7 "Last-Translator: Moe <poedit@gniark.net>\n" 8 8 "Language-Team: Moe <poedit@gniark.net>\n" … … 17 17 "X-Poedit-SearchPath-0: .\n" 18 18 19 #: _public.php: 8319 #: _public.php:65 20 20 #: class.subscriber.php:147 21 21 msgid "Invalid post ID." 22 22 msgstr "Identifiant du billet invalide." 23 23 24 #: _public.php:1 4024 #: _public.php:123 25 25 msgid "Account informations sent" 26 26 msgstr "Informations sur le compte envoyées" 27 27 28 #: _public.php:1 4128 #: _public.php:124 29 29 msgid "Subscriptions removed" 30 30 msgstr "Abonnements effacés" 31 31 32 #: _public.php:1 4232 #: _public.php:125 33 33 msgid "Logged out" 34 34 msgstr "Déconnecté" 35 35 36 #: _public.php:1 4337 #: _public.php:4 4336 #: _public.php:126 37 #: _public.php:431 38 38 msgid "Logged in" 39 39 msgstr "Connecté" 40 40 41 #: _public.php:1 4441 #: _public.php:127 42 42 msgid "Emails blocked" 43 43 msgstr "Emails bloqués" 44 44 45 #: _public.php:1 4545 #: _public.php:128 46 46 msgid "Emails allowed" 47 47 msgstr "Emails autorisés" 48 48 49 #: _public.php:1 4749 #: _public.php:130 50 50 msgid "An email has been sent to the new email address" 51 51 msgstr "Un email a été envoyé à la nouvelle adresse email" 52 52 53 #: _public.php:1 4853 #: _public.php:131 54 54 msgid "Email address changed" 55 55 msgstr "Adresse email changée" 56 56 57 #: _public.php:1 4957 #: _public.php:132 58 58 msgid "Account deleted" 59 59 msgstr "Compte supprimé" 60 60 61 #: _public.php:1 5061 #: _public.php:133 62 62 msgid "Subscribed to the entry" 63 63 msgstr "Abonné au billet" 64 64 65 #: _public.php:4 5066 #: index.php:4 5367 #: index.php:4 6668 #: index.php:4 7365 #: _public.php:438 66 #: index.php:467 67 #: index.php:480 68 #: index.php:487 69 69 msgid "Receive following comments by email" 70 70 msgstr "Recevoir les commentaires suivants par email" 71 71 72 #: _public.php: 50972 #: _public.php:497 73 73 msgid "Subscribe to receive following comments by email or manage subscriptions" 74 74 msgstr "S'abonner pour recevoir les commentaires suivants par email ou modifier les abonnements" 75 75 76 #: _public.php: 51076 #: _public.php:498 77 77 msgid "Subscribe to receive following comments by email" 78 78 msgstr "S'abonner pour recevoir les commentaires suivants par email" … … 83 83 84 84 #: lib.subscribeToComments.php:54 85 #: class.subscriber.php:4 6185 #: class.subscriber.php:480 86 86 msgid "Invalid key." 87 87 msgstr "Clé invalide." … … 113 113 #: index.php:79 114 114 #: index.php:144 115 #: index.php:24 0116 #: index.php:2 74117 #: index.php:29 1118 #: index.php: 296119 #: index.php:4 47120 #: index.php: 489121 #: index.php:5 09115 #: index.php:247 116 #: index.php:281 117 #: index.php:298 118 #: index.php:310 119 #: index.php:461 120 #: index.php:503 121 #: index.php:523 122 122 msgid "Subscribe to comments" 123 123 msgstr "Abonnement aux commentaires" 124 124 125 #: default_settings.php:2 2125 #: default_settings.php:27 126 126 msgid "Hello [email]," 127 127 msgstr "" 128 128 129 #: default_settings.php:2 4129 #: default_settings.php:29 130 130 msgid "To manage your subscriptions, change your email address or block emails, click here : [manageurl]" 131 131 msgstr "" 132 132 133 #: default_settings.php: 28133 #: default_settings.php:33 134 134 msgid "Your account on [blogname]" 135 135 msgstr "" 136 136 137 #: default_settings.php:3 4137 #: default_settings.php:39 138 138 msgid "here are some informations about your account on [blogname] :" 139 139 msgstr "" 140 140 141 #: default_settings.php: 35141 #: default_settings.php:40 142 142 msgid "Email address : [email]" 143 143 msgstr "" 144 144 145 #: default_settings.php: 45145 #: default_settings.php:50 146 146 msgid "Subscribed to [posttitle] - [blogname]" 147 147 msgstr "" 148 148 149 #: default_settings.php:5 1149 #: default_settings.php:56 150 150 msgid "you subscribed to [posttitle] : [posturl]" 151 151 msgstr "" 152 152 153 #: default_settings.php: 59153 #: default_settings.php:64 154 154 msgid "New comment on [posttitle] - [blogname]" 155 155 msgstr "" 156 156 157 #: default_settings.php: 65157 #: default_settings.php:70 158 158 msgid "a new comment has been posted by [commentauthor] on [posttitle] :" 159 159 msgstr "" 160 160 161 #: default_settings.php: 69161 #: default_settings.php:74 162 162 msgid "View the comment : [commenturl]" 163 163 msgstr "" 164 164 165 #: default_settings.php:7 0165 #: default_settings.php:75 166 166 msgid "View the post : [posturl]" 167 167 msgstr "" 168 168 169 #: default_settings.php: 78169 #: default_settings.php:83 170 170 msgid "Change email address on [blogname]" 171 171 msgstr "" 172 172 173 #: default_settings.php:8 4173 #: default_settings.php:89 174 174 msgid "you have requested to change the email address of your subscriptions to [newemail], click on this link : [emailurl]" 175 175 msgstr "" 176 176 177 #: default_settings.php: 85177 #: default_settings.php:90 178 178 msgid "This link is valid for 24 hours." 179 179 msgstr "" … … 189 189 190 190 #: class.subscriber.php:196 191 #: class.subscriber.php:4 66191 #: class.subscriber.php:485 192 192 msgid "This email address already exists." 193 193 msgstr "Cette adresse email existe déjà." 194 194 195 #: class.subscriber.php:4 70195 #: class.subscriber.php:489 196 196 msgid "Link expired, request another email." 197 197 msgstr "Lien périmé, demandez un autre email." … … 206 206 207 207 #: index.php:77 208 #: index.php:5 20208 #: index.php:534 209 209 msgid "Email address" 210 210 msgstr "Adresse email" … … 255 255 msgstr "Le plugin %s fonctionne." 256 256 257 #: index.php:2 25257 #: index.php:232 258 258 msgid "Test email sent." 259 259 msgstr "Email test envoyé." 260 260 261 #: index.php:2 29261 #: index.php:236 262 262 msgid "Configuration successfully updated." 263 263 msgstr "Configuration mise à jour avec succès." 264 264 265 #: index.php:28 0265 #: index.php:287 266 266 msgid "Error:" 267 267 msgstr "Erreur:" 268 268 269 #: index.php:28 1269 #: index.php:288 270 270 msgid "Unable to find metadata plugin" 271 271 msgstr "Impossible de trouver l'extension metadata" 272 272 273 #: index.php:2 85273 #: index.php:292 274 274 msgid "Settings" 275 275 msgstr "Paramètres" 276 276 277 #: index.php:29 1277 #: index.php:298 278 278 #, php-format 279 279 msgid "Activate %s" 280 280 msgstr "Activer %s" 281 281 282 #: index.php:294 282 #: index.php:302 283 msgid "Change From: header of outbound emails:" 284 msgstr "Changer l'entête From: des emails sortants :" 285 286 #: index.php:308 283 287 msgid "Post types" 284 288 msgstr "Types de billets" 285 289 286 #: index.php: 295290 #: index.php:309 287 291 #, php-format 288 292 msgid "Activate %s with the following post types :" 289 293 msgstr "Activer %s pour les types de billets suivants :" 290 294 291 #: index.php:3 14295 #: index.php:328 292 296 msgid "No entry yet. Create a new entry." 293 297 msgstr "Pas encore de billet. Créez une nouveau billet." 294 298 295 #: index.php:3 20299 #: index.php:334 296 300 msgid "Email formatting" 297 301 msgstr "Format des emails" 298 302 299 #: index.php:3 21303 #: index.php:335 300 304 msgid "You can format the emails using the following tags." 301 305 msgstr "Vous pouvez formater les emails en utilisant les balises suivantes." 302 306 303 #: index.php:3 22307 #: index.php:336 304 308 msgid "Each tag will be replaced by the associated value." 305 309 msgstr "Chaque balise sera remplacée par la valeur associée." 306 310 307 #: index.php:3 23311 #: index.php:337 308 312 msgid "Tags available in all the contexts" 309 313 msgstr "Balises disponibles dans tous les contextes" 310 314 311 #: index.php:3 27312 #: index.php:3 61313 #: index.php: 386314 #: index.php:4 11315 #: index.php:341 316 #: index.php:375 317 #: index.php:400 318 #: index.php:425 315 319 msgid "Tag" 316 320 msgstr "Balise" 317 321 318 #: index.php:3 27319 #: index.php:3 61320 #: index.php: 386321 #: index.php:4 11322 #: index.php:341 323 #: index.php:375 324 #: index.php:400 325 #: index.php:425 322 326 msgid "Value" 323 327 msgstr "Valeur" 324 328 325 #: index.php:3 35329 #: index.php:349 326 330 msgid "Email sent when an account is created or if a subscriber request it" 327 331 msgstr "Email envoyé quand un compte est créé ou si un abonné le demande" 328 332 329 #: index.php:3 37330 #: index.php:3 68331 #: index.php: 393332 #: index.php:4 18333 #: index.php:351 334 #: index.php:382 335 #: index.php:407 336 #: index.php:432 333 337 msgid "Subject" 334 338 msgstr "Sujet" 335 339 336 #: index.php:3 43337 #: index.php:3 74338 #: index.php: 399339 #: index.php:4 24340 #: index.php:357 341 #: index.php:388 342 #: index.php:413 343 #: index.php:438 340 344 msgid "Content" 341 345 msgstr "Contenu" 342 346 343 #: index.php:3 51347 #: index.php:365 344 348 msgid "Email sent when a subscriber subscribe to the comments of a post" 345 349 msgstr "Email envoyé quand un abonné s'abonne aux commentaires d'un billet" 346 350 347 #: index.php:3 56351 #: index.php:370 348 352 msgid "Send an email for each subscription to the comments of a post" 349 353 msgstr "Envoyer un email pour chaque abonnement aux commentaires d'un billet" 350 354 351 #: index.php:3 58352 #: index.php:3 83353 #: index.php:4 08355 #: index.php:372 356 #: index.php:397 357 #: index.php:422 354 358 msgid "Available tags" 355 359 msgstr "Balises disponibles" 356 360 357 #: index.php:3 82361 #: index.php:396 358 362 msgid "Email sent when a new comment is published" 359 363 msgstr "Email envoyé quand un nouveau commentaire est publié" 360 364 361 #: index.php:4 07365 #: index.php:421 362 366 msgid "Email sent when a subscriber want to change his email address" 363 367 msgstr "Email envoyé quand un abonné veut changer d'adresse email" 364 368 365 #: index.php:4 32366 #: index.php:5 02369 #: index.php:446 370 #: index.php:516 367 371 msgid "Save configuration" 368 372 msgstr "Enregistrer la configuration" 369 373 370 #: index.php:4 36371 #: index.php:4 37374 #: index.php:450 375 #: index.php:451 372 376 msgid "Display" 373 377 msgstr "Affichage" 374 378 375 #: index.php:4 39379 #: index.php:453 376 380 msgid "This plugin needs to add some code on the post page." 377 381 msgstr "Ce plugin a besoin d'ajouter du code sur la page du billet." 378 382 379 #: index.php:4 40383 #: index.php:454 380 384 msgid "This can be done automatically by checking the following checkboxes." 381 385 msgstr "Cela peut être fait automatiquement en cochant les cases suivantes." 382 386 383 #: index.php:4 41387 #: index.php:455 384 388 msgid "If you want to customize the display on the post page (the post.hml file of your theme), uncheck the following checkboxes and follow the instructions under each checkbox :" 385 389 msgstr "Si vous voulez modifier l'affichage sur la page du billet, décochez les cases suivantes et suivez les instructions sous chaque case :" 386 390 387 #: index.php:4 42391 #: index.php:456 388 392 #, php-format 389 393 msgid "You can use the plugin <strong>%s</strong> to edit the file <strong>post.html</strong>." 390 394 msgstr "Vous pousez utiliser le plugin <strong>%s</strong> pour éditer le fichier <strong>post.html</strong>." 391 395 392 #: index.php:4 43396 #: index.php:457 393 397 msgid "Theme Editor" 394 398 msgstr "" 395 399 396 #: index.php:4 46400 #: index.php:460 397 401 #, php-format 398 402 msgid "Install %s on the post page." 399 403 msgstr "Installer %s sur la page du billet." 400 404 401 #: index.php:4 52405 #: index.php:466 402 406 #, php-format 403 407 msgid "Add the <strong>%s</strong> checkbox in the comment form" 404 408 msgstr "Ajouter la case <strong>%s</strong> dans le formulaire de commentaire" 405 409 406 #: index.php:4 57407 #: index.php:4 77408 #: index.php: 493410 #: index.php:471 411 #: index.php:491 412 #: index.php:507 409 413 msgid "or" 410 414 msgstr "ou" 411 415 412 #: index.php:4 58416 #: index.php:472 413 417 msgid "insert this in the comment form (suggestion : in the <code><fieldset></code> before the <code></form></code> tag) :" 414 418 msgstr "insérez ceci dans le formulaire de commentaire (suggestion : dans le <code><fieldset></code> avant la balise <code></form></code>) :" 415 419 416 #: index.php:4 65420 #: index.php:479 417 421 #, php-format 418 422 msgid "If the <strong>%s</strong> checkbox is not displayed correctly and the blog use Blowup or Blue Silence theme, check this :" 419 423 msgstr "Si la case <strong>%s</strong> n'est pas affichée correctement et que le blog utilise le thème Blowup ou Blue Silence, cochez ceci :" 420 424 421 #: index.php:4 72425 #: index.php:486 422 426 #, php-format 423 427 msgid "Add a CSS rule to style the <strong>%1$s</strong> checkbox" 424 428 msgstr "Ajouter une règle CSS pour styler la case <strong>%1$s</strong>" 425 429 426 #: index.php:4 78430 #: index.php:492 427 431 msgid "add this CSS rule at the end of the file <strong>style.css</strong>" 428 432 msgstr "ajoutez cette règle CSS à la fin du fichier <strong>style.css</strong>" 429 433 430 #: index.php: 488434 #: index.php:502 431 435 #, php-format 432 436 msgid "Add a link to the <strong>%s</strong> page between the comments and the trackbacks" 433 437 msgstr "Ajouter un lien vers la page <strong>%s</strong> entre les commentaires et les rétroliens" 434 438 435 #: index.php: 494439 #: index.php:508 436 440 msgid "insert this anywhere on the page (suggestion : just after the <code></form></code> tag) :" 437 441 msgstr "insérez ceci n'importe où dans la page (suggestion : juste après la balise <code></form></code>) :" 438 442 439 #: index.php:5 06440 #: index.php:5 08443 #: index.php:520 444 #: index.php:522 441 445 msgid "Help" 442 446 msgstr "" 443 447 444 #: index.php:5 09448 #: index.php:523 445 449 #, php-format 446 450 msgid "%s send notification emails to the subscribers of a post when :" 447 451 msgstr "%s envoie des emails de notification aux abonnés d'un billet quand :" 448 452 449 #: index.php:5 11453 #: index.php:525 450 454 msgid "a comment is posted and published immediatly" 451 455 msgstr "un commentaire est posté et publié immédiatement" 452 456 453 #: index.php:5 12457 #: index.php:526 454 458 msgid "a pending comment is published" 455 459 msgstr "un commentaire en attente est publié à partir de l'interface d'administation" 456 460 457 #: index.php:5 14461 #: index.php:528 458 462 msgid "If this weblog is hosted by free.fr, create a <code>/sessions/</code> directory in the root directory of the website." 459 463 msgstr "Si ce blog est hébergé chez free.fr, créez un répertoire <code>/sessions/</code> dans le répertoire racine de ce site." 460 464 461 #: index.php:5 15465 #: index.php:529 462 466 msgid "To use this plugin, you have to test if the server can send emails :" 463 467 msgstr "Pour utiliser ce plugin, vous devez tester si le serveur peut envoyer des emails :" 464 468 465 #: index.php:5 18469 #: index.php:532 466 470 msgid "Test" 467 471 msgstr "Test" 468 472 469 #: index.php:5 25473 #: index.php:539 470 474 #, php-format 471 475 msgid "This will send a email, if you don't receive it, try to <a href=\"%s\">change the way Dotclear send emails</a>." 472 476 msgstr "Ceci enverra un email, si vous ne le recevez pas, essayez de <a href=\"%s\">changer la façon dont Dotclear envoie les emails</a>" 473 477 474 #: index.php:5 28478 #: index.php:542 475 479 msgid "Try to send an email" 476 480 msgstr "Essayer d'envoyer un email" 477 481 478 #: index.php:5 32482 #: index.php:546 479 483 #, php-format 480 484 msgid "Inspired by <a href=\"%1$s\">%2$s</a>" 481 485 msgstr "Inspiré par <a href=\"%1$s\">%2$s</a>" 482 486 483 #: index.php:5 34487 #: index.php:548 484 488 msgid "Subscribe to comments for WordPress" 485 489 msgstr "Subscribe to comments pour WordPress"
Note: See TracChangeset
for help on using the changeset viewer.