Changeset 1458
- Timestamp:
- 09/15/09 02:00:07 (14 years ago)
- Location:
- plugins/rateIt
- Files:
-
- 2 added
- 1 deleted
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/rateIt/_admin.php
r1421 r1458 130 130 elseif ($line->rateit_type == 'comment') { 131 131 # Can't retreive old/new comment_id 132 # See: http://dev.dotclear.org/2.0/ticket/789#comment:1 132 133 return; 133 134 } -
plugins/rateIt/_define.php
r1421 r1458 18 18 /* Description*/ "Rating system for your posts", 19 19 /* Author */ "JC Denis", 20 /* Version */ '0.9. 4',20 /* Version */ '0.9.5', 21 21 /* Permissions */ 'admin' 22 22 ); 23 /* date */ #2009090 323 /* date */ #20090909 24 24 ?> -
plugins/rateIt/_install.php
r1421 r1458 28 28 29 29 try { 30 # Is DC 2.1.5 ? 31 if (!version_compare(DC_VERSION,'2.1.5','>=')) { 32 33 throw new Exception('rateIt requires Dotclear 2.1.5'); 34 } 30 35 # Database 31 36 $s = new dbStruct($core->con,$core->prefix); 32 37 $s->rateit 33 38 ->blog_id ('varchar',32,false) 34 ->rateit_id ('varchar', 255,false)35 ->rateit_type('varchar', 64,false)39 ->rateit_id ('varchar',192,false) 40 ->rateit_type('varchar',16,false) 36 41 ->rateit_note ('float',0,false) 37 42 ->rateit_quotient ('float',0,false) 38 ->rateit_ip ('varchar', 64,false)43 ->rateit_ip ('varchar',48,false) 39 44 ->rateit_time ('timestamp',0,false,'now()') 40 ->primary('pk_rateit','blog_id','rateit_type','rateit_id','rateit_ip') 45 ->primary('pk_rateit','blog_id','rateit_type','rateit_id','rateit_ip') //mysql error 1071 limit key to 768. 41 46 ->index('idx_rateit_blog_id','btree','blog_id') 42 47 ->index('idx_rateit_rateit_type','btree','rateit_type') -
plugins/rateIt/_prepend.php
r1406 r1458 31 31 if (!is_callable(array('libImagePath','getArray'))) 32 32 require dirname(__FILE__).'/inc/lib.image.path.php'; 33 34 # Add rateIt report on plugin activityReport 35 if ($core->activityReport instanceof activityReport) 36 { 37 require_once dirname(__FILE__).'/inc/lib.rateit.activityreport.php'; 38 } 33 39 ?> -
plugins/rateIt/_public.php
r1421 r1458 351 351 "} \n"; 352 352 } 353 elseif ($type == 'tag' ) {353 elseif ($type == 'tag' || $type == 'meta') { 354 354 355 355 $return = -
plugins/rateIt/inc/class.rateit.php
r1406 r1458 69 69 $cur->rateit_time = date('Y-m-d H:i:s'); 70 70 71 72 # --BEHAVIOR-- rateItBeforeSet 73 $this->core->callBehavior('rateItBeforeSet',$cur); 74 75 71 76 $cur->insert(); 72 77 $this->core->con->unlock(); … … 75 80 if ($this->ident > 0) 76 81 setcookie('rateit-'.$type.'-'.$id,1,(time()+3600*365)); 77 82 83 84 # --BEHAVIOR-- rateItAfterSet 85 $this->core->callBehavior('rateItAfterSet',$cur); 86 87 78 88 return true; 79 89 } -
plugins/rateIt/inc/lib.rateit.index.php
r1421 r1458 266 266 '<p class="form-note">*'.__('This disables the file "rateit.css" if you want to include your styles directly in the CSS file of the theme.').'</p>'. 267 267 '<p class="form-note">**'.__('This message replaces stars, leave it empty to not replace stars').'</p>'. 268 '<p class="form-note">'.__('In order to change url of public page you can use plugin dcUrlHandlers.').'</p>'.268 '<p class="form-note">'.__('In order to change url of public page you can use plugin myUrlHandlers.').'</p>'. 269 269 '</div>'. 270 270 '<div class="col">'. -
plugins/rateIt/locales/fr/main.lang.php
r1421 r1458 205 205 206 206 #inc/lib.rateit.index.php:268 207 $GLOBALS['__l10n']['In order to change url of public page you can use plugin dcUrlHandlers.'] = 'Pour modifier l\'url de la page publique vous pouvez utiliser le plugin dcUrlHandlers';207 $GLOBALS['__l10n']['In order to change url of public page you can use plugin myUrlHandlers.'] = 'Pour modifier l\'url de la page publique vous pouvez utiliser le plugin myUrlHandlers'; 208 208 209 209 #inc/lib.rateit.index.php:271 -
plugins/rateIt/locales/fr/main.po
r1421 r1458 273 273 274 274 #: inc/lib.rateit.index.php:268 275 msgid "In order to change url of public page you can use plugin dcUrlHandlers."276 msgstr "Pour modifier l'url de la page publique vous pouvez utiliser le plugin dcUrlHandlers"275 msgid "In order to change url of public page you can use plugin myUrlHandlers." 276 msgstr "Pour modifier l'url de la page publique vous pouvez utiliser le plugin myUrlHandlers" 277 277 278 278 #: inc/lib.rateit.index.php:271 -
plugins/rateIt/release.txt
r1421 r1458 1 0.9.5 20090915 2 * Fixed erreur 1071 in some MySQL servers 3 * Added type ''meta'' equal to type ''tag'' 4 * Added support for plugin activityReport 5 * Fixed typo 6 1 7 0.9.4 20090903 2 8 * Fixed CSS features (validation, option, file length)
Note: See TracChangeset
for help on using the changeset viewer.