Changeset 499
- Timestamp:
- 09/17/08 14:15:00 (15 years ago)
- Location:
- plugins/subscribeToComments
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/subscribeToComments/_define.php
r489 r499 30 30 /* Description*/ "Subscribe to comments", 31 31 /* Author */ "Moe (http://gniark.net/)", 32 /* Version */ '1.2 ',32 /* Version */ '1.2.1', 33 33 /* Permissions */ 'admin' 34 34 ); -
plugins/subscribeToComments/_public.php
r490 r499 58 58 # from /dotclear/inc/admin/prepend.php, modified 59 59 # Check nonce from POST requests 60 if ( !empty($_POST))60 if ((!empty($_POST)) AND (count($_POST) > 0)) 61 61 { 62 62 # post but no nonce : when someone post a comment in a post with … … 430 430 $checked = null; 431 431 432 # if checkbox i funchecked, don't check it432 # if checkbox is unchecked, don't check it 433 433 if (isset($_POST['subscribeToComments'])) 434 434 {$checked = true;} … … 454 454 455 455 /** 456 display a CSS rule for default sthemes456 display a CSS rule for default themes 457 457 */ 458 458 public static function publicHeadContent() 459 459 { 460 global $_ctx;461 462 if (subscribeToComments::getPost($_ctx->posts->post_id) == false)463 {return;}464 465 460 echo '<style type="text/css" media="screen">'."\n". 466 461 '#comment-form #subscribeToComments '. … … 472 467 add tpl code after the <tpl:EntryIf comments_active="1">...</tpl:EntryIf> tag 473 468 @param core <b>core</b> Dotclear core 474 @param core <b>array</b> b ?469 @param b <b>array</b> tag 475 470 @param attr <b>array</b> attributes 476 471 */ … … 478 473 { 479 474 global $_ctx; 480 481 if (subscribeToComments::getPost($_ctx->posts->post_id) == false)482 {return;}483 475 484 476 if ($core->url->type == 'feed') {return;} … … 487 479 && $attr['comments_active'] == 1 && !isset($attr['pings_active'])) 488 480 { 481 if ((!is_numeric($_ctx->posts->post_id)) OR 482 (subscribeToComments::getPost($_ctx->posts->post_id) == false)) 483 { 484 return; 485 } 486 # else 489 487 return 490 488 '<?php if (($core->blog->settings->subscribetocomments_active) && -
plugins/subscribeToComments/index.php
r490 r499 295 295 <p><?php printf(__('Activate %s with the following post types :'), 296 296 __('Subscribe to comments')); ?></p> 297 <ul> 298 <?php 299 $available_post_types = subscribeToComments::getPostTypes(); 300 $post_types = subscribeToComments::getAllowedPostTypes(); 297 <?php 298 $available_post_types = subscribeToComments::getPostTypes(); 299 $post_types = subscribeToComments::getAllowedPostTypes(); 300 if (!empty($available_post_types)) 301 { 302 echo '<ul>'; 301 303 foreach ($available_post_types as $type) 302 304 { … … 306 308 '</label></li>'); 307 309 } 308 ?> 309 </ul> 310 echo '</ul>'; 311 } 312 else 313 { 314 echo('<p>'.__('No entry yet. Create a new entry.').'</p>'); 315 } 316 ?> 317 310 318 <!--<p class="checkboxes-helpers"></p>--> 311 319 -
plugins/subscribeToComments/lib.subscribeToComments.php
r490 r499 122 122 global $core; 123 123 124 $rs = $core->con->select('SELECT `post_type`type '.124 $rs = $core->con->select('SELECT post_type AS type '. 125 125 'FROM '.$core->prefix.'post GROUP BY type ORDER BY type ASC;'); 126 126 -
plugins/subscribeToComments/locales/fr/main.po
r489 r499 3 3 "Project-Id-Version: Subscribe to comments\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 2008-0 8-13 19:52+0100\n"6 "PO-Revision-Date: 2008-0 8-13 19:53+0100\n"5 "POT-Creation-Date: 2008-09-17 14:12+0100\n" 6 "PO-Revision-Date: 2008-09-17 14:13+0100\n" 7 7 "Last-Translator: Moe <poedit@gniark.net>\n" 8 8 "Language-Team: Moe <poedit@gniark.net>\n" … … 35 35 36 36 #: _public.php:143 37 #: _public.php:4 3837 #: _public.php:443 38 38 msgid "Logged in" 39 39 msgstr "Connecté" … … 63 63 msgstr "Abonné au billet" 64 64 65 #: _public.php:4 4566 #: index.php:4 3667 #: index.php:4 4968 #: index.php:4 5665 #: _public.php:450 66 #: index.php:453 67 #: index.php:466 68 #: index.php:473 69 69 msgid "Receive following comments by email" 70 70 msgstr "Recevoir les commentaires suivants par email" 71 71 72 #: _public.php: 49672 #: _public.php:509 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: 49776 #: _public.php:510 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:46 385 #: class.subscriber.php:461 86 86 msgid "Invalid key." 87 87 msgstr "Clé invalide." 88 88 89 #: lib.subscribeToComments.php:20 389 #: lib.subscribeToComments.php:205 90 90 #, php-format 91 91 msgid "<img src=\"images/check-off.png\" alt=\"%1$s\" title=\"%1$s\" /> Notification email not sent, click on <strong>%2$s</strong>." 92 92 msgstr "<img src=\"images/check-off.png\" alt=\"%1$s\" title=\"%1$s\" /> Email de notification non envoyé, cliquez sur <strong>%2$s</strong>." 93 93 94 #: lib.subscribeToComments.php:20 394 #: lib.subscribeToComments.php:205 95 95 msgid "not sent" 96 96 msgstr "" 97 97 98 #: lib.subscribeToComments.php:20 398 #: lib.subscribeToComments.php:205 99 99 msgid "save" 100 100 msgstr "" 101 101 102 #: lib.subscribeToComments.php:20 7102 #: lib.subscribeToComments.php:209 103 103 #, php-format 104 104 msgid "<img src=\"images/check-on.png\" alt=\"%1$s\" title=\"%1$s\" /> Notification email sent." 105 105 msgstr "<img src=\"images/check-on.png\" alt=\"%1$s\" title=\"%1$s\" /> Email de notification envoyé." 106 106 107 #: lib.subscribeToComments.php:20 7107 #: lib.subscribeToComments.php:209 108 108 msgid "sent" 109 109 msgstr "" 110 110 111 #: lib.subscribeToComments.php:2 09111 #: lib.subscribeToComments.php:211 112 112 #: _admin.php:28 113 113 #: index.php:79 114 114 #: index.php:144 115 #: index.php:2 35116 #: index.php:2 66117 #: index.php:2 83118 #: index.php:2 88119 #: index.php:4 30120 #: index.php:4 72121 #: index.php: 492115 #: index.php:240 116 #: index.php:274 117 #: index.php:291 118 #: index.php:296 119 #: index.php:447 120 #: index.php:489 121 #: index.php:509 122 122 msgid "Subscribe to comments" 123 123 msgstr "Abonnement aux commentaires" … … 180 180 181 181 #: class.subscriber.php:62 182 #: class.subscriber.php:3 10182 #: class.subscriber.php:308 183 183 msgid "Invalid email address or key." 184 184 msgstr "Adresse email ou clé invalide." 185 185 186 #: class.subscriber.php:15 1186 #: class.subscriber.php:152 187 187 msgid "Invalid post." 188 188 msgstr "Billet invalide." 189 189 190 #: class.subscriber.php:19 8191 #: class.subscriber.php:46 8190 #: class.subscriber.php:196 191 #: class.subscriber.php:466 192 192 msgid "This email address already exists." 193 193 msgstr "Cette adresse email existe déjà." 194 194 195 #: class.subscriber.php:47 2195 #: class.subscriber.php:470 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 03208 #: index.php:520 209 209 msgid "Email address" 210 210 msgstr "Adresse email" … … 255 255 msgstr "Le plugin %s fonctionne." 256 256 257 #: index.php:22 0257 #: index.php:225 258 258 msgid "Test email sent." 259 259 msgstr "Email test envoyé." 260 260 261 #: index.php:22 4261 #: index.php:229 262 262 msgid "Configuration successfully updated." 263 263 msgstr "Configuration mise à jour avec succès." 264 264 265 #: index.php:2 72265 #: index.php:280 266 266 msgid "Error:" 267 267 msgstr "Erreur:" 268 268 269 #: index.php:2 73269 #: index.php:281 270 270 msgid "Unable to find metadata plugin" 271 271 msgstr "Impossible de trouver l'extension metadata" 272 272 273 #: index.php:2 77273 #: index.php:285 274 274 msgid "Settings" 275 275 msgstr "Paramètres" 276 276 277 #: index.php:2 83277 #: index.php:291 278 278 #, php-format 279 279 msgid "Activate %s" 280 280 msgstr "Activer %s" 281 281 282 #: index.php:2 86282 #: index.php:294 283 283 msgid "Post types" 284 284 msgstr "Types de billets" 285 285 286 #: index.php:2 87286 #: index.php:295 287 287 #, php-format 288 288 msgid "Activate %s with the following post types :" 289 289 msgstr "Activer %s pour les types de billets suivants :" 290 290 291 #: index.php:303 291 #: index.php:314 292 msgid "No entry yet. Create a new entry." 293 msgstr "Pas encore de billet. Créez une nouveau billet." 294 295 #: index.php:320 292 296 msgid "Email formatting" 293 297 msgstr "Format des emails" 294 298 295 #: index.php:3 04299 #: index.php:321 296 300 msgid "You can format the emails using the following tags." 297 301 msgstr "Vous pouvez formater les emails en utilisant les balises suivantes." 298 302 299 #: index.php:3 05303 #: index.php:322 300 304 msgid "Each tag will be replaced by the associated value." 301 305 msgstr "Chaque balise sera remplacée par la valeur associée." 302 306 303 #: index.php:3 06307 #: index.php:323 304 308 msgid "Tags available in all the contexts" 305 309 msgstr "Balises disponibles dans tous les contextes" 306 310 307 #: index.php:3 10308 #: index.php:3 44309 #: index.php:3 69310 #: index.php: 394311 #: index.php:327 312 #: index.php:361 313 #: index.php:386 314 #: index.php:411 311 315 msgid "Tag" 312 316 msgstr "Balise" 313 317 314 #: index.php:3 10315 #: index.php:3 44316 #: index.php:3 69317 #: index.php: 394318 #: index.php:327 319 #: index.php:361 320 #: index.php:386 321 #: index.php:411 318 322 msgid "Value" 319 323 msgstr "Valeur" 320 324 321 #: index.php:3 18325 #: index.php:335 322 326 msgid "Email sent when an account is created or if a subscriber request it" 323 327 msgstr "Email envoyé quand un compte est créé ou si un abonné le demande" 324 328 325 #: index.php:3 20326 #: index.php:3 51327 #: index.php:3 76328 #: index.php:4 01329 #: index.php:337 330 #: index.php:368 331 #: index.php:393 332 #: index.php:418 329 333 msgid "Subject" 330 334 msgstr "Sujet" 331 335 332 #: index.php:3 26333 #: index.php:3 57334 #: index.php:3 82335 #: index.php:4 07336 #: index.php:343 337 #: index.php:374 338 #: index.php:399 339 #: index.php:424 336 340 msgid "Content" 337 341 msgstr "Contenu" 338 342 339 #: index.php:3 34343 #: index.php:351 340 344 msgid "Email sent when a subscriber subscribe to the comments of a post" 341 345 msgstr "Email envoyé quand un abonné s'abonne aux commentaires d'un billet" 342 346 343 #: index.php:3 39347 #: index.php:356 344 348 msgid "Send an email for each subscription to the comments of a post" 345 349 msgstr "Envoyer un email pour chaque abonnement aux commentaires d'un billet" 346 350 347 #: index.php:3 41348 #: index.php:3 66349 #: index.php: 391351 #: index.php:358 352 #: index.php:383 353 #: index.php:408 350 354 msgid "Available tags" 351 355 msgstr "Balises disponibles" 352 356 353 #: index.php:3 65357 #: index.php:382 354 358 msgid "Email sent when a new comment is published" 355 359 msgstr "Email envoyé quand un nouveau commentaire est publié" 356 360 357 #: index.php: 390361 #: index.php:407 358 362 msgid "Email sent when a subscriber want to change his email address" 359 363 msgstr "Email envoyé quand un abonné veut changer d'adresse email" 360 364 361 #: index.php:4 15362 #: index.php: 485365 #: index.php:432 366 #: index.php:502 363 367 msgid "Save configuration" 364 368 msgstr "Enregistrer la configuration" 365 369 366 #: index.php:4 19367 #: index.php:4 20370 #: index.php:436 371 #: index.php:437 368 372 msgid "Display" 369 373 msgstr "Affichage" 370 374 371 #: index.php:4 22375 #: index.php:439 372 376 msgid "This plugin needs to add some code on the post page." 373 377 msgstr "Ce plugin a besoin d'ajouter du code sur la page du billet." 374 378 375 #: index.php:4 23379 #: index.php:440 376 380 msgid "This can be done automatically by checking the following checkboxes." 377 381 msgstr "Cela peut être fait automatiquement en cochant les cases suivantes." 378 382 379 #: index.php:4 24383 #: index.php:441 380 384 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 :" 381 385 msgstr "Si vous voulez modifier l'affichage sur la page du billet, décochez les cases suivantes et suivez les instructions sous chaque case :" 382 386 383 #: index.php:4 25387 #: index.php:442 384 388 #, php-format 385 389 msgid "You can use the plugin <strong>%s</strong> to edit the file <strong>post.html</strong>." 386 390 msgstr "Vous pousez utiliser le plugin <strong>%s</strong> pour éditer le fichier <strong>post.html</strong>." 387 391 388 #: index.php:4 26392 #: index.php:443 389 393 msgid "Theme Editor" 390 394 msgstr "" 391 395 392 #: index.php:4 29396 #: index.php:446 393 397 #, php-format 394 398 msgid "Install %s on the post page." 395 399 msgstr "Installer %s sur la page du billet." 396 400 397 #: index.php:4 35401 #: index.php:452 398 402 #, php-format 399 403 msgid "Add the <strong>%s</strong> checkbox in the comment form" 400 404 msgstr "Ajouter la case <strong>%s</strong> dans le formulaire de commentaire" 401 405 402 #: index.php:4 40403 #: index.php:4 60404 #: index.php:4 76406 #: index.php:457 407 #: index.php:477 408 #: index.php:493 405 409 msgid "or" 406 410 msgstr "ou" 407 411 408 #: index.php:4 41412 #: index.php:458 409 413 msgid "insert this in the comment form (suggestion : in the <code><fieldset></code> before the <code></form></code> tag) :" 410 414 msgstr "insérez ceci dans le formulaire de commentaire (suggestion : dans le <code><fieldset></code> avant la balise <code></form></code>) :" 411 415 412 #: index.php:4 48416 #: index.php:465 413 417 #, php-format 414 418 msgid "If the <strong>%s</strong> checkbox is not displayed correctly and the blog use Blowup or Blue Silence theme, check this :" 415 419 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 :" 416 420 417 #: index.php:4 55421 #: index.php:472 418 422 #, php-format 419 423 msgid "Add a CSS rule to style the <strong>%1$s</strong> checkbox" 420 424 msgstr "Ajouter une règle CSS pour styler la case <strong>%1$s</strong>" 421 425 422 #: index.php:4 61426 #: index.php:478 423 427 msgid "add this CSS rule at the end of the file <strong>style.css</strong>" 424 428 msgstr "ajoutez cette règle CSS à la fin du fichier <strong>style.css</strong>" 425 429 426 #: index.php:4 71430 #: index.php:488 427 431 #, php-format 428 432 msgid "Add a link to the <strong>%s</strong> page between the comments and the trackbacks" 429 433 msgstr "Ajouter un lien vers la page <strong>%s</strong> entre les commentaires et les rétroliens" 430 434 431 #: index.php:4 77435 #: index.php:494 432 436 msgid "insert this anywhere on the page (suggestion : just after the <code></form></code> tag) :" 433 437 msgstr "insérez ceci n'importe où dans la page (suggestion : juste après la balise <code></form></code>) :" 434 438 435 #: index.php: 489436 #: index.php: 491439 #: index.php:506 440 #: index.php:508 437 441 msgid "Help" 438 442 msgstr "" 439 443 440 #: index.php: 492444 #: index.php:509 441 445 #, php-format 442 446 msgid "%s send notification emails to the subscribers of a post when :" 443 447 msgstr "%s envoie des emails de notification aux abonnés d'un billet quand :" 444 448 445 #: index.php: 494449 #: index.php:511 446 450 msgid "a comment is posted and published immediatly" 447 451 msgstr "un commentaire est posté et publié immédiatement" 448 452 449 #: index.php: 495453 #: index.php:512 450 454 msgid "a pending comment is published" 451 455 msgstr "un commentaire en attente est publié à partir de l'interface d'administation" 452 456 453 #: index.php: 497457 #: index.php:514 454 458 msgid "If this weblog is hosted by free.fr, create a <code>/sessions/</code> directory in the root directory of the website." 455 459 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." 456 460 457 #: index.php: 498461 #: index.php:515 458 462 msgid "To use this plugin, you have to test if the server can send emails :" 459 463 msgstr "Pour utiliser ce plugin, vous devez tester si le serveur peut envoyer des emails :" 460 464 461 #: index.php:5 01465 #: index.php:518 462 466 msgid "Test" 463 467 msgstr "Test" 464 468 465 #: index.php:5 08469 #: index.php:525 466 470 #, php-format 467 471 msgid "This will send a email, if you don't receive it, try to <a href=\"%s\">change the way Dotclear send emails</a>." 468 472 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>" 469 473 470 #: index.php:5 11474 #: index.php:528 471 475 msgid "Try to send an email" 472 476 msgstr "Essayer d'envoyer un email" 473 477 474 #: index.php:5 15478 #: index.php:532 475 479 #, php-format 476 480 msgid "Inspired by <a href=\"%1$s\">%2$s</a>" 477 481 msgstr "Inspiré par <a href=\"%1$s\">%2$s</a>" 478 482 479 #: index.php:5 17483 #: index.php:534 480 484 msgid "Subscribe to comments for WordPress" 481 485 msgstr "Subscribe to comments pour WordPress"
Note: See TracChangeset
for help on using the changeset viewer.