XPressME Integration Kit

Trac

Changeset 54


Ignore:
Timestamp:
Dec 28, 2008, 2:28:17 AM (15 years ago)
Author:
toemon
Message:

最近の記事内容ブロック 実装
概要処理の部分と、閲覧数の部分は未完です。

Location:
trunk
Files:
3 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/language/ja_utf8/blocks.php

    r35 r54  
    1111        define("_MB_XPRESS_PINGBACK","ピンバック"); 
    1212        define("_MB_XPRESS_ALL","すべて"); 
     13// recent posts content 
     14        define("_MB_XPRESS_P_EXCEPT","記事を概要で表示する"); 
     15        define("_MB_XPRESS_P_EXCEPT_SIZE","記事の概要文字数"); 
     16        define("_MB_XPRESS_CATS_SELECT","カテゴリー選択"); 
     17        define("_MB_XPRESS_TAGS_SELECT","タグ選択(複数ある場合はカンマ区切りで入力"); 
     18 
    1319} 
    1420?> 
  • trunk/language/ja_utf8/modinfo.php

    r35 r54  
    1515        // Block Name 
    1616        define("_MI_XPRESS_BLOCK_COMMENTS","最近のコメント"); 
     17        define("_MI_XPRESS_BLOCK_CONTENT","最近の記事内容"); 
    1718} 
    1819?> 
  • trunk/wp-content/plugins/xpressme/include/custom_functions.php

    r51 r54  
    218218// Retrieves post views given a post ID or post object.  
    219219function xpress_post_views_count($post_id=0,$format= '',$show = true) { 
    220         global $table_prefix; 
     220        global $xoops_db; 
    221221 
    222222        static $post_cache_views; 
     
    230230        if($post_id==0) return null; 
    231231        if(!isset($post_cache_views[$post_id])){ 
    232         $sql = "SELECT post_views FROM " . $table_prefix . "views" . " WHERE post_id=$post_id"; 
    233         if (!$result = $GLOBALS["xoopsDB"]->query($sql)) { 
     232        $sql = "SELECT post_views FROM " . get_xoops_prefix() . "views" . " WHERE post_id=$post_id"; 
     233        $post_views = $xoops_db->get_var($sql); 
     234        if (!$post_views) { 
    234235                $post_cache_views[$post_id] = 0; 
    235236        }else{ 
    236                 $row = $GLOBALS["xoopsDB"]->fetchArray($result); 
    237                 $post_cache_views[$post_id] = $row["post_views"]; 
     237                $post_cache_views[$post_id] = $post_views; 
    238238        } 
    239239        } 
  • trunk/wp-content/plugins/xpressme/language/xpressme-ja.po

    r51 r54  
    33"Project-Id-Version: fckeditor for xpress\n" 
    44"POT-Creation-Date: \n" 
    5 "PO-Revision-Date: 2008-12-27 17:37+0900\n" 
     5"PO-Revision-Date: 2008-12-17 09:50+0900\n" 
    66"Last-Translator: toemon <toychee@toemon.com>\n" 
    77"Language-Team: \n" 
     
    1212"X-Poedit-Country: JAPAN\n" 
    1313"X-Poedit-KeywordsList: _e;__\n" 
    14 "X-Poedit-Basepath: C:\\xampp\\htdocs\\cube\\modules\\xpress2x\\wp-content\\plugins\\xpressme\n" 
     14"X-Poedit-Basepath: C:\\xampp\\htdocs\\cube\\modules\\xpress2\\wp-content\\plugins\\xpressme\n" 
    1515"X-Poedit-SearchPath-0: .\n" 
    1616 
    17 #: xpressme_class.php:26 
     17#: xpressme_class.php:25 
    1818msgid "XPressME Settings" 
    1919msgstr "XPressME設定" 
    2020 
    21 #: xpressme_class.php:43 
    22 #: xpressme_class.php:89 
     21#: xpressme_class.php:42 
     22#: xpressme_class.php:81 
    2323msgid "to Old Post" 
    2424msgstr "前の投稿へ" 
    2525 
    26 #: xpressme_class.php:44 
    27 #: xpressme_class.php:91 
     26#: xpressme_class.php:43 
     27#: xpressme_class.php:83 
    2828msgid "to Newer Post" 
    2929msgstr "次の投稿へ" 
    3030 
    31 #: xpressme_class.php:97 
    32 #: xpressme_class.php:157 
    33 #: xpressme_class.php:162 
    34 #: xpressme_class.php:183 
     31#: xpressme_class.php:88 
     32#: xpressme_class.php:148 
     33#: xpressme_class.php:153 
    3534msgid "YES" 
    3635msgstr "はい" 
    3736 
    38 #: xpressme_class.php:98 
    39 #: xpressme_class.php:158 
    40 #: xpressme_class.php:163 
    41 #: xpressme_class.php:184 
     37#: xpressme_class.php:89 
     38#: xpressme_class.php:149 
     39#: xpressme_class.php:154 
    4240msgid "NO" 
    4341msgstr "いいえ" 
    4442 
    45 #: xpressme_class.php:147 
     43#: xpressme_class.php:138 
    4644msgid "XPressME Configuration Page" 
    4745msgstr "XPressMEの設定ページ" 
    4846 
    49 #: xpressme_class.php:151 
     47#: xpressme_class.php:142 
    5048msgid "Media Upload Base Path" 
    5149msgstr "メディアアップロードのベースパス設定" 
    5250 
    53 #: xpressme_class.php:152 
     51#: xpressme_class.php:143 
    5452msgid "Use XOOPS UPLOAD PATH" 
    5553msgstr "XOOPSのアップロードパスを使用する。" 
    5654 
    57 #: xpressme_class.php:153 
     55#: xpressme_class.php:144 
    5856msgid "USE WordPress BASE_PATH" 
    5957msgstr "WordPressのベースパスを使用する。" 
    6058 
    61 #: xpressme_class.php:156 
     59#: xpressme_class.php:147 
    6260msgid "Thema Sidebar Display" 
    6361msgstr "テーマ表示時にサイドバー表示する。" 
    6462 
    65 #: xpressme_class.php:161 
     63#: xpressme_class.php:152 
    6664msgid "The change tracking of the post is preserved" 
    6765msgstr "投稿の変更履歴を有効にする。" 
    6866 
    69 #: xpressme_class.php:166 
     67#: xpressme_class.php:157 
    7068msgid "Select Display name of PostNavi Link" 
    7169msgstr "投稿記事リンクナビのタイトル設定" 
    7270 
    73 #: xpressme_class.php:167 
     71#: xpressme_class.php:158 
    7472msgid "Title of post" 
    7573msgstr "投稿記事のタイトルを表示" 
    7674 
    77 #: xpressme_class.php:168 
     75#: xpressme_class.php:159 
    7876msgid "Next and Previous" 
    7977msgstr "[次の投稿へ]、[前の投稿]へを表示" 
    8078 
    81 #: xpressme_class.php:171 
     79#: xpressme_class.php:162 
    8280msgid "Adjustment of Navi link display position" 
    8381msgstr "投稿記事ナビリンクの表示位置設定" 
    8482 
    85 #: xpressme_class.php:172 
     83#: xpressme_class.php:163 
    8684msgid "'Old Post Link' is displayed in the left, and 'Newer Post Link' is displayed in the right" 
    8785msgstr "古い記事へのリンクを左に、より新しい記事へのリンクを右に表示" 
    8886 
    89 #: xpressme_class.php:173 
     87#: xpressme_class.php:164 
    9088msgid "'Newer Post Link' is displayed in the left, and 'Old Post Link' is displayed in the right" 
    9189msgstr "より新しい記事へのリンクを左に、古い記事へのリンクを右に表示" 
    9290 
    93 #: xpressme_class.php:176 
     91#: xpressme_class.php:167 
    9492msgid "Display Title of Old Post Link" 
    9593msgstr "古い記事へのリンクタイトルを設定" 
    9694 
    97 #: xpressme_class.php:179 
     95#: xpressme_class.php:170 
    9896msgid "Display Title of Newer Post Link" 
    9997msgstr "より新しい記事へのリンクタイトルを設定" 
    10098 
    101 #: xpressme_class.php:182 
    102 msgid "Is the posts author views counted?" 
    103 msgstr "投稿者自身の閲覧をカウントしますか?" 
    104  
    105 #: xpressme_class.php:190 
     99#: xpressme_class.php:178 
    106100msgid "Update Config" 
    107101msgstr "更新" 
    108102 
    109 #: xpressme_class.php:191 
     103#: xpressme_class.php:179 
    110104msgid "Preset Config" 
    111105msgstr "プリセット" 
    112106 
    113 #: include/custom_functions.php:242 
    114 #, php-format 
    115 msgid "views :%d" 
    116 msgstr "閲覧数 :%d" 
    117  
  • trunk/xoops_version.php

    r48 r54  
    110110        'func_num'              => 1,    
    111111); 
     112$modversion['blocks'][2] = array( 
     113        'file'                  => 'recent_posts_content_block.php' , 
     114        'name'                  => constant('_MI_XPRESS_BLOCK_CONTENT') , 
     115        'description'   => '' , 
     116        'show_func'     => "b_". $mydirname . "_content_show" , 
     117        'edit_func'     => "b_". $mydirname . "_content_edit" , 
     118        'template'              => 'recent_posts_content_block.html' ,  
     119        'options'               => $mydirname. '|10|0|100||0' , 
     120        'can_clone'             => true , 
     121        'func_num'              => 2, 
     122); 
    112123?> 
Note: See TracChangeset for help on using the changeset viewer.