Changeset 2394
- Timestamp:
- 06/25/10 07:57:21 (13 years ago)
- Location:
- plugins/rateIt
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/rateIt/_define.php
r2358 r2394 17 17 /* Description*/ "Rating system for your blogs", 18 18 /* Author */ "JC Denis", 19 /* Version */ '2.0-alpha ',19 /* Version */ '2.0-alpha2', 20 20 /* Permissions */ 'admin' 21 21 ); 22 /* date */ #201006 1322 /* date */ #20100625 23 23 ?> -
plugins/rateIt/_prepend.php
r2358 r2394 12 12 13 13 if (!defined('DC_RC_PATH')){return;} 14 if (version_compare(DC_VERSION,'2.2-alpha','<')){return;} 14 15 15 16 global $__autoload, $core; -
plugins/rateIt/_public.php
r2358 r2394 270 270 "</script> \n". 271 271 "<script type=\"text/javascript\" src=\"". 272 $core->blog->url.$core->url->getBase('rateItmodule')."/js/jquery.rateit.js\"></script> \n". 272 $core->blog->url.$core->url->getBase('rateItmodule').'/js/jquery.rateit.js">'. 273 "</script> \n". 273 274 "<script type=\"text/javascript\"> \n". 274 275 "//<![CDATA[\n". … … 526 527 if ($w->show_fullnote && in_array($style,array('twin','simple'))) 527 528 { 528 $res .= '<p>'.rateItContext::value('m incount',$type,$id,$rs->mincount).'</p>';529 $res .= '<p>'.rateItContext::value('maxcount',$type,$id,$rs->maxcount).'</p>'; 529 530 } 530 531 -
plugins/rateIt/default-templates/js/jquery.rateit.js
r2358 r2394 45 45 $('input.rateit-'+type+'-'+id).rating({readOnly:true}); 46 46 if ($('input.rateit-'+type+'-'+id).hasClass('rateit-loop-prevent')){ 47 / /$('input.rateit-'+type+'-'+id).rating('disable');47 /*$('input.rateit-'+type+'-'+id).rating('disable');*/ 48 48 } 49 49 else{ … … 73 73 $('*').find('.rateit-fullnote-'+type+'-'+id).each(function(){$(this).text(data.find('item').attr('note')+'/'+data.find('item').attr('quotient'))}); 74 74 75 if (msg_thanks!='') 75 if (msg_thanks!=''){ 76 76 $('*').find('.rateit-linker-'+type+'-'+id).each(function(){$(this).empty().append('<p>'+msg_thanks+'</p>')}); 77 77 } 78 78 }else{ 79 79 alert($(data).find('message').text()); -
plugins/rateIt/inc/class.rateit.php
r2358 r2394 289 289 { 290 290 $strReq = 291 'SELECT DISTINCT'.291 'SELECT '. 292 292 'SUM(RI.rateit_note / RI.rateit_quotient) as rateit_sum, '. 293 293 'MAX(RI.rateit_note / RI.rateit_quotient) as rateit_max, '. 294 294 'MIN(RI.rateit_note / RI.rateit_quotient) as rateit_min, '. 295 'MAX(RI.rateit_time) as rateit_time, '. 295 296 '(SUM(RI.rateit_note / RI.rateit_quotient) / COUNT(RI.rateit_note)) as rateit_avg, '; 296 297 -
plugins/rateIt/inc/modules/lib.rateit.module.category.public.php
r2358 r2394 66 66 $p['columns'][] = 'C.cat_title AS title'; 67 67 $p['columns'][] = 'C.cat_id AS id'; 68 if (!isset($p['groups'])) $p['groups'] = array();68 69 69 $p['groups'][] = 'C.cat_url'; 70 70 $p['groups'][] = 'C.cat_title'; 71 $p['groups'][] = 'C.cat_id'; 72 71 73 $p['from'] .= ' INNER JOIN '.$core->prefix.'category C ON CAST(C.cat_id as char)=RI.rateit_id '; 72 74 /* -
plugins/rateIt/inc/modules/lib.rateit.module.cinecturlink2.public.php
r2358 r2394 53 53 $p['columns'][] = 'C.link_title AS title'; 54 54 $p['columns'][] = 'C.link_id AS id'; 55 if (!isset($p['groups'])) $p['groups'] = array();55 56 56 $p['groups'][] = 'C.link_id'; 57 57 $p['groups'][] = 'C.link_title'; 58 58 59 $p['from'] .= ' INNER JOIN '.$core->prefix.'cinecturlink2 C ON CAST(C.link_id as char)=RI.rateit_id '; 59 60 } -
plugins/rateIt/inc/modules/lib.rateit.module.comment.public.php
r2358 r2394 51 51 52 52 $p['columns'][] = $core->con->concat("'".$core->blog->url.$core->getPostPublicUrl('post','')."'",'P.post_url').' AS url'; 53 $p['columns'][] = ' P.post_titleAS title';53 $p['columns'][] = 'C.comment_author AS title'; 54 54 $p['columns'][] = 'C.comment_id AS id'; 55 if (!isset($p['groups'])) $p['groups'] = array(); 55 56 $p['groups'][] = 'C.comment_id'; 57 $p['groups'][] = 'C.comment_author'; 56 58 $p['groups'][] = 'P.post_url'; 57 $p['groups'][] = 'P.post_title';59 58 60 $p['from'] .= ' INNER JOIN '.$core->prefix.'comment C ON CAST(C.comment_id as char)=RI.rateit_id '; 59 61 $p['from'] .= ' INNER JOIN '.$core->prefix.'post P ON C.comment_id = P.post_id '; -
plugins/rateIt/inc/modules/lib.rateit.module.gallery.admin.php
r2360 r2394 29 29 if ($action == 'save_moule_galitem') 30 30 { 31 $core->blog->settings->rateit->put('rateit_galitem_active',!empty( ,$_POST['rateit_galitem_active']),'boolean','rateit addon gallery item enabled',true,false);31 $core->blog->settings->rateit->put('rateit_galitem_active',!empty($_POST['rateit_galitem_active']),'boolean','rateit addon gallery item enabled',true,false); 32 32 $core->blog->settings->rateit->put('rateit_galitemtpl',!empty($_POST['rateit_galitemtpl']),'boolean','rateit template gallery items page',true,false); 33 33 -
plugins/rateIt/inc/modules/lib.rateit.module.gallery.public.php
r2358 r2394 104 104 $p['columns'][] = 'P.post_title AS title'; 105 105 $p['columns'][] = 'P.post_id AS id'; 106 if (!isset($p['groups'])) $p['groups'] = array();106 107 107 $p['groups'][] = 'P.post_url'; 108 108 $p['groups'][] = 'P.post_title'; 109 109 $p['groups'][] = 'P.post_id'; 110 110 111 $p['from'] .= ' INNER JOIN '.$core->prefix.'post P ON CAST(P.post_id as char)=RI.rateit_id '; 111 112 $p['sql'] .= "AND post_type='gal' "; … … 124 125 $p['columns'][] = 'P.post_title AS title'; 125 126 $p['columns'][] = 'P.post_id AS id'; 126 if (!isset($p['groups'])) $p['groups'] = array();127 127 128 $p['groups'][] = 'P.post_url'; 128 129 $p['groups'][] = 'P.post_title'; 129 130 $p['groups'][] = 'P.post_id'; 131 130 132 $p['from'] .= ' INNER JOIN '.$core->prefix.'post P ON CAST(P.post_id as char)=RI.rateit_id '; 131 133 $p['sql'] .= "AND post_type='galitem' "; -
plugins/rateIt/inc/modules/lib.rateit.module.post.public.php
r2358 r2394 70 70 71 71 $p['columns'][] = $core->con->concat("'".$core->blog->url.$core->getPostPublicUrl('post','')."'",'P.post_url').' AS url'; 72 $p['columns'][] = 'P.post_url AS url';73 72 $p['columns'][] = 'P.post_title AS title'; 74 73 $p['columns'][] = 'P.post_id AS id'; 75 if (!isset($p['groups'])) $p['groups'] = array();74 76 75 $p['groups'][] = 'P.post_url'; 77 76 $p['groups'][] = 'P.post_title'; 78 77 $p['groups'][] = 'P.post_id'; 78 79 79 $p['from'] .= ' INNER JOIN '.$core->prefix.'post P ON CAST(P.post_id as char)=RI.rateit_id '; 80 80 $p['sql'] .= " AND P.post_type='post' AND P.post_status = 1 AND P.post_password IS NULL "; -
plugins/rateIt/inc/modules/lib.rateit.module.tag.public.php
r2358 r2394 67 67 $p['columns'][] = 'M.meta_id AS title'; 68 68 $p['columns'][] = 'M.meta_id AS id'; 69 if (!isset($p['groups'])) $p['groups'] = array();69 70 70 $p['groups'][] = 'M.meta_id'; 71 71 72 $p['from'] .= ' INNER JOIN '.$core->prefix.'meta M ON M.meta_id=RI.rateit_id '; 72 73 $p['sql'] .= "AND M.meta_type='tag' "; -
plugins/rateIt/index.php
r2358 r2394 40 40 dcPage::jsVar('jcToolsBox.prototype.text_wait',__('Please wait')). 41 41 dcPage::jsVar('jcToolsBox.prototype.section',$section). 42 "\n//]]>\n</script>\n"; ;42 "\n//]]>\n</script>\n"; 43 43 44 44 # Common menu -
plugins/rateIt/locales/fr/main.lang.php
r2358 r2394 513 513 514 514 #inc/modules/lib.rateit.module.post.admin.php:68 515 $GLOBALS['__l10n']['Limit to one category:'] = 'Limiter à une ca égorie :';515 $GLOBALS['__l10n']['Limit to one category:'] = 'Limiter à une catégorie :'; 516 516 517 517 #inc/modules/lib.rateit.module.post.admin.php:72 -
plugins/rateIt/locales/fr/main.po
r2358 r2394 666 666 #: inc/modules/lib.rateit.module.post.admin.php:68 667 667 msgid "Limit to one category:" 668 msgstr "Limiter à une ca égorie :"668 msgstr "Limiter à une catégorie :" 669 669 670 670 #: inc/modules/lib.rateit.module.post.admin.php:72 -
plugins/rateIt/release.txt
r2358 r2394 1 1 x.x.x xxxxxxxx 2 2 - Not added ability to explode post type rating in subcategories 3 - Not added other styles of rate (I love /I d'ont love)3 - Not added rating on other post_type (see plugin muppet) 4 4 - Not added public API 5 5 - Not completed modules behaviors (delete/edit category, tag...) 6 7 2.0-alpha2 20100625 8 * Fixed (hope so) postgreSQL compatibility 9 * Fixed high note on 'double' style 10 * Fixed admin crash on non 2.2 6 11 7 12 2.0-alpha 20100613
Note: See TracChangeset
for help on using the changeset viewer.