XPressME Integration Kit

Trac


Ignore:
Timestamp:
May 20, 2009, 5:59:07 PM (16 years ago)
Author:
toemon
Message:

WordPress? MU 用にXPressMEデフォルトテーマを調整
テーマ内で使える xpress_is_wpmu()関数を追加

Location:
trunk/wp-content/plugins/xpressme
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/plugins/xpressme/include/custom_functions.php

    r214 r218  
    3535} 
    3636 
     37function xpress_is_wpmu() { 
     38        global $xoops_config; 
     39         
     40        return $xoops_config->is_wpmu; 
     41} 
     42 
    3743function xpress_selected_author($show=true ) { 
    3844        $output = ''; 
  • trunk/wp-content/plugins/xpressme/language/xpressme-ja.po

    r203 r218  
    33"Project-Id-Version: XPressME Plugin\n" 
    44"POT-Creation-Date: \n" 
    5 "PO-Revision-Date: 2009-05-05 22:35+0900\n" 
     5"PO-Revision-Date: 2009-05-20 16:34+0900\n" 
    66"Last-Translator: toemon <toychee@toemon.com>\n" 
    77"Language-Team: \n" 
     
    4545#: xpressme_class.php:276 
    4646#: xpressme_class.php:292 
    47 #: xpressme_class.php:721 
    4847#: xpressme_class.php:726 
    49 #: xpressme_class.php:732 
    50 #: xpressme_class.php:743 
    51 #: xpressme_class.php:749 
     48#: xpressme_class.php:731 
     49#: xpressme_class.php:737 
     50#: xpressme_class.php:748 
     51#: xpressme_class.php:754 
    5252msgid "YES" 
    5353msgstr "はい" 
     
    5555#: xpressme_class.php:277 
    5656#: xpressme_class.php:293 
    57 #: xpressme_class.php:722 
    5857#: xpressme_class.php:727 
    59 #: xpressme_class.php:733 
    60 #: xpressme_class.php:744 
    61 #: xpressme_class.php:750 
     58#: xpressme_class.php:732 
     59#: xpressme_class.php:738 
     60#: xpressme_class.php:749 
     61#: xpressme_class.php:755 
    6262msgid "NO" 
    6363msgstr "いいえ" 
     
    148148msgstr "ユーザ登録しない" 
    149149 
    150 #: xpressme_class.php:483 
     150#: xpressme_class.php:485 
     151msgid "WordPress MU cannot integrate the comments." 
     152msgstr "WordPress MUはコメント統合できません。" 
     153 
     154#: xpressme_class.php:487 
    151155msgid "Do Not Comment Integration." 
    152156msgstr "コメント統合しません。" 
    153157 
    154 #: xpressme_class.php:517 
     158#: xpressme_class.php:522 
    155159msgid "Comment integration with D3Forum" 
    156160msgstr "D3Forumとのコメント統合" 
    157161 
    158 #: xpressme_class.php:519 
     162#: xpressme_class.php:524 
    159163msgid "Select the forum of D3Forum that does the comment integration from the following lists." 
    160164msgstr "以下のリストからコメント統合をするD3Forumのフォーラムを選択してください。" 
    161165 
    162 #: xpressme_class.php:523 
     166#: xpressme_class.php:528 
    163167msgid "Select the Type of display of D3Forum comment." 
    164168msgstr "D3Forumの表示タイプを選択" 
    165169 
    166 #: xpressme_class.php:525 
    167 #: xpressme_class.php:528 
     170#: xpressme_class.php:530 
     171#: xpressme_class.php:533 
    168172msgid "Flat" 
    169173msgstr "フラット" 
    170174 
    171 #: xpressme_class.php:526 
    172 #: xpressme_class.php:529 
     175#: xpressme_class.php:531 
     176#: xpressme_class.php:534 
    173177msgid "Threaded" 
    174178msgstr "スレッド" 
    175179 
    176 #: xpressme_class.php:532 
     180#: xpressme_class.php:537 
    177181msgid "Select the order of display of D3Forum comment." 
    178182msgstr "D3Forumコメントの表示順を選択" 
    179183 
    180 #: xpressme_class.php:534 
    181 #: xpressme_class.php:537 
     184#: xpressme_class.php:539 
     185#: xpressme_class.php:542 
    182186msgid "DESC" 
    183187msgstr "降順" 
    184188 
    185 #: xpressme_class.php:535 
    186 #: xpressme_class.php:538 
     189#: xpressme_class.php:540 
     190#: xpressme_class.php:543 
    187191msgid "ASC" 
    188192msgstr "昇順" 
    189193 
    190 #: xpressme_class.php:541 
     194#: xpressme_class.php:546 
    191195msgid "Number of displays of D3Forum comments." 
    192196msgstr "D3Forumのコメント表示数" 
    193197 
    194 #: xpressme_class.php:545 
     198#: xpressme_class.php:550 
    195199msgid "The import and the export between Wordpress Comments and the D3Forum Posts can be done. " 
    196200msgstr "WordPressコメントとD3Forumポスト間の一括転送(エクスポート・インポート)" 
    197201 
    198 #: xpressme_class.php:546 
     202#: xpressme_class.php:551 
    199203msgid "Export to D3Forum" 
    200204msgstr "D3Forumへ一括エクスポート" 
    201205 
    202 #: xpressme_class.php:547 
     206#: xpressme_class.php:552 
    203207msgid "Import from D3Forum" 
    204208msgstr "D3Forumから一括インポート" 
    205209 
    206 #: xpressme_class.php:559 
     210#: xpressme_class.php:564 
    207211msgid "Contents Excerpt Setting" 
    208212msgstr "記事抜粋の設定" 
    209213 
    210 #: xpressme_class.php:564 
     214#: xpressme_class.php:569 
    211215msgid "Is the excerpt display done with the archive of contents?" 
    212216msgstr "記事のアーカイブで抜粋表示を行いますか?" 
    213217 
    214 #: xpressme_class.php:571 
     218#: xpressme_class.php:576 
    215219msgid "When ASCII character more than the set ratio is included, it is judged ASCII contents. " 
    216220msgstr "ASCII文字が含まれる比率が設定された値より大きい場合、ASCII文字コンテンツと判断します。" 
    217221 
    218 #: xpressme_class.php:578 
     222#: xpressme_class.php:583 
    219223msgid "Excerpt length of word for ASCII contents" 
    220224msgstr "ASCIIコンテンツの抜粋単語数" 
    221225 
    222 #: xpressme_class.php:585 
     226#: xpressme_class.php:590 
    223227msgid "Excerpt length of character for multibyte contents" 
    224228msgstr "マルチバイトコンテンツの抜粋文字数" 
    225229 
    226 #: xpressme_class.php:592 
     230#: xpressme_class.php:597 
    227231msgid "More Link Text (Is not displayed for the blank.)" 
    228232msgstr "Moreリンクテキスト(ブランクの場合リンクを表示しません。)" 
    229233 
    230 #: xpressme_class.php:604 
     234#: xpressme_class.php:609 
    231235msgid "Display Mode Setting" 
    232236msgstr "表示モード設定" 
    233237 
    234 #: xpressme_class.php:607 
     238#: xpressme_class.php:612 
    235239msgid "Select the XPressME Display Mode." 
    236240msgstr "XPressMEの表示モードの選択" 
    237241 
    238 #: xpressme_class.php:612 
     242#: xpressme_class.php:617 
    239243msgid "Xoops Mode" 
    240244msgstr "XOOPSモード" 
    241245 
    242 #: xpressme_class.php:616 
     246#: xpressme_class.php:621 
    243247msgid "WordPress Mode" 
    244248msgstr "WordPressモード" 
    245249 
    246 #: xpressme_class.php:620 
     250#: xpressme_class.php:625 
    247251msgid "User select" 
    248252msgstr "ユーザによる選択" 
    249253 
    250 #: xpressme_class.php:630 
     254#: xpressme_class.php:635 
    251255msgid "Header Meta Option" 
    252256msgstr "ヘッダメタ オプション" 
    253257 
    254 #: xpressme_class.php:635 
     258#: xpressme_class.php:640 
    255259msgid "Select the Header keyword." 
    256260msgstr "ヘッダで使用するキーワードの選択" 
    257261 
    258 #: xpressme_class.php:640 
     262#: xpressme_class.php:645 
    259263msgid "Xoops KeyWord" 
    260264msgstr "XOOPSのキーワード" 
    261265 
    262 #: xpressme_class.php:643 
     266#: xpressme_class.php:648 
    263267msgid "WordPress KeyWord" 
    264268msgstr "WordPressのキーワード" 
    265269 
    266 #: xpressme_class.php:646 
     270#: xpressme_class.php:651 
    267271msgid "WordPress & Xoops KeyWord" 
    268272msgstr "WordPressjとXOOPSのキーワード" 
    269273 
    270 #: xpressme_class.php:652 
     274#: xpressme_class.php:657 
    271275msgid "Select the Header Description." 
    272276msgstr "ヘッダで使用するディスクリプション(説明)の選択" 
    273277 
    274 #: xpressme_class.php:657 
     278#: xpressme_class.php:662 
    275279msgid "Xoops Description" 
    276280msgstr "XOOPSのディスクリプション" 
    277281 
    278 #: xpressme_class.php:660 
     282#: xpressme_class.php:665 
    279283msgid "WordPress Description" 
    280284msgstr "WordPressのディスクリプション" 
    281285 
    282 #: xpressme_class.php:663 
     286#: xpressme_class.php:668 
    283287msgid "WordPress & Xoops Description" 
    284288msgstr "WordPressとXOOPSのディスクリプション" 
    285289 
    286 #: xpressme_class.php:669 
     290#: xpressme_class.php:674 
    287291msgid "Select the Header Robots Index." 
    288292msgstr "ヘッダで使用するロボットインデックスの選択" 
    289293 
    290 #: xpressme_class.php:674 
     294#: xpressme_class.php:679 
    291295msgid "Xoops Robots Index" 
    292296msgstr "XOOPSのロボットインデックス" 
    293297 
    294 #: xpressme_class.php:677 
     298#: xpressme_class.php:682 
    295299msgid "WordPress Robots Index" 
    296300msgstr "WordPressのロボットインデックス" 
    297301 
    298 #: xpressme_class.php:710 
     302#: xpressme_class.php:715 
    299303msgid "XPressME Configuration Page" 
    300304msgstr "XPressMEの設定ページ" 
    301305 
    302 #: xpressme_class.php:715 
     306#: xpressme_class.php:720 
    303307msgid "Media Upload Base Path" 
    304308msgstr "メディアアップロードのベースパス設定" 
    305309 
    306 #: xpressme_class.php:716 
     310#: xpressme_class.php:721 
    307311msgid "Use XOOPS UPLOAD PATH" 
    308312msgstr "XOOPSのアップロードパスを使用する。" 
    309313 
    310 #: xpressme_class.php:717 
     314#: xpressme_class.php:722 
    311315msgid "USE WordPress BASE_PATH" 
    312316msgstr "WordPressのベースパスを使用する。" 
    313317 
    314 #: xpressme_class.php:720 
     318#: xpressme_class.php:725 
    315319msgid "Thema Sidebar Display" 
    316320msgstr "テーマ表示時にサイドバー表示する。" 
    317321 
    318 #: xpressme_class.php:725 
     322#: xpressme_class.php:730 
    319323msgid "The change tracking of the post is preserved" 
    320324msgstr "投稿の変更履歴を有効にする。" 
    321325 
    322 #: xpressme_class.php:731 
     326#: xpressme_class.php:736 
    323327msgid "Select Multi user mode" 
    324328msgstr "マルチユーザーモードを選択" 
    325329 
    326 #: xpressme_class.php:742 
     330#: xpressme_class.php:747 
    327331msgid "Is the posts author views counted?" 
    328332msgstr "投稿者の閲覧をカウントしますか?" 
    329333 
    330 #: xpressme_class.php:748 
     334#: xpressme_class.php:753 
    331335msgid "Is SQL debugging window displayed?" 
    332336msgstr "SQLデバッグウィンドを表示しますか?" 
    333337 
    334 #: xpressme_class.php:760 
     338#: xpressme_class.php:765 
    335339msgid "Update Config" 
    336340msgstr "更新" 
    337341 
    338 #: xpressme_class.php:761 
     342#: xpressme_class.php:766 
    339343msgid "Preset Config" 
    340344msgstr "プリセット" 
     
    345349msgstr "%sのパーマリンク" 
    346350 
    347 #: include/custom_functions.php:337 
     351#: include/custom_functions.php:343 
    348352#, php-format 
    349353msgid "views :%d" 
    350354msgstr "閲覧数 :%d" 
    351355 
    352 #: include/custom_functions.php:455 
     356#: include/custom_functions.php:461 
    353357msgid "Main" 
    354358msgstr "メイン" 
    355359 
    356 #: include/custom_functions.php:458 
     360#: include/custom_functions.php:464 
    357361#, php-format 
    358362msgid "Archive for the &#8216;%s&#8217; Category" 
    359363msgstr "カテゴリー &#8216;%s&#8217; のアーカイブ" 
    360364 
    361 #: include/custom_functions.php:460 
     365#: include/custom_functions.php:466 
    362366#, php-format 
    363367msgid "Posts Tagged &#8216;%s&#8217;" 
    364368msgstr "&#8216;%s&#8217; タグのついている投稿" 
    365369 
    366 #: include/custom_functions.php:462 
     370#: include/custom_functions.php:468 
    367371#, php-format 
    368372msgid "Archive for %s|Daily archive page" 
    369373msgstr "%sの日別アーカイブ" 
    370374 
    371 #: include/custom_functions.php:462 
     375#: include/custom_functions.php:468 
    372376msgid "F jS, Y" 
    373377msgstr "Y年n月j日" 
    374378 
    375 #: include/custom_functions.php:464 
     379#: include/custom_functions.php:470 
    376380#, php-format 
    377381msgid "Archive for %s|Monthly archive page" 
    378382msgstr "%sの月別アーカイブ" 
    379383 
    380 #: include/custom_functions.php:464 
     384#: include/custom_functions.php:470 
    381385msgid "F, Y" 
    382386msgstr "Y年n月" 
    383387 
    384 #: include/custom_functions.php:466 
     388#: include/custom_functions.php:472 
    385389#, php-format 
    386390msgid "Archive for %s|Yearly archive page" 
    387391msgstr "%sの年別アーカイブ " 
    388392 
    389 #: include/custom_functions.php:466 
     393#: include/custom_functions.php:472 
    390394msgid "Y" 
    391395msgstr "Y年" 
    392396 
    393 #: include/custom_functions.php:469 
     397#: include/custom_functions.php:475 
    394398#, php-format 
    395399msgid "Archive for the &#8216;%s&#8217; Author" 
    396400msgstr "投稿者 &#8216;%s&#8217; のアーカイブ" 
    397401 
    398 #: include/custom_functions.php:472 
     402#: include/custom_functions.php:478 
    399403#, php-format 
    400404msgid "Search Results of word &#8216;%s&#8217;" 
    401405msgstr "&#8216;%s&#8217; の検索結果" 
    402406 
    403 #: include/custom_functions.php:478 
    404 #: include/custom_functions.php:480 
     407#: include/custom_functions.php:484 
     408#: include/custom_functions.php:486 
    405409#, php-format 
    406410msgid "Article of %s" 
    407411msgstr "%sの記事" 
    408412 
    409 #: include/custom_functions.php:495 
     413#: include/custom_functions.php:501 
    410414#, php-format 
    411415msgid "From %1$s on site %2$s" 
    412416msgstr "サイト %2$s の %1$s より" 
    413417 
    414 #: include/custom_functions.php:518 
     418#: include/custom_functions.php:524 
    415419#, fuzzy 
    416420msgid "% TrackBack/Pingback" 
    417421msgstr "トラックバック・ピンバック % 件" 
    418422 
    419 #: include/custom_functions.php:520 
     423#: include/custom_functions.php:526 
    420424msgid "No Trackback/Pingback" 
    421425msgstr "トラックバック・ピンバックはありません" 
    422426 
    423 #: include/custom_functions.php:522 
     427#: include/custom_functions.php:528 
    424428msgid "One Trackback/Pingback" 
    425429msgstr "トラックバック・ピンバック 1 件" 
    426430 
    427 #: include/custom_functions.php:632 
     431#: include/custom_functions.php:638 
    428432msgid "Calendar" 
    429433msgstr "カレンダー" 
    430434 
    431 #: include/custom_functions.php:665 
    432 #: include/custom_functions.php:675 
     435#: include/custom_functions.php:671 
     436#: include/custom_functions.php:681 
    433437#, php-format 
    434438msgid "View posts for %1$s %2$s" 
  • trunk/wp-content/plugins/xpressme/xpressme_class.php

    r202 r218  
    470470         
    471471        function d3forum_option($do_message = ''){ 
    472                 global $xoops_db; 
     472                global $xoops_db,$xoops_config; 
    473473                 
    474474                $d3frum_list = array(); 
     
    481481                else 
    482482                        $selected = ''; 
    483                 $forum_list .= '<option value="none"' . $selected . '>' . __('Do Not Comment Integration.', 'xpressme') . "</option>\n"; 
    484  
    485                 // Form making for forum selection of D3forum 
    486                 $modules_table = get_xoops_prefix() .'modules'; 
    487                 $sql = "SELECT mid,name,isactive,dirname FROM $modules_table WHERE isactive = 1"; 
    488                 $modules = $xoops_db->get_results($sql); 
    489                 foreach ($modules as $module) { 
    490                         $file_path = $module_dir_path . '/modules/' . $module->dirname . '/mytrustdirname.php';                  
    491                         if (! file_exists($file_path)) continue; 
    492                         $array_files = file($file_path); 
    493                         // It is checked whether there is character string "$mytrustdirname ='d3forum'"in the file. 
    494                         foreach ($array_files as $aeey_file){ 
    495                                 if( preg_match( "/\s*(mytrustdirname)\s*(=)\s*([\"'])(d3forum)([\"'])/", $aeey_file ) ) { 
    496                                         $forums_tb = get_xoops_prefix() . $module->dirname . '_forums'; 
    497                                         $cat_tb = get_xoops_prefix() . $module->dirname . '_categories'; 
    498                                         $sql= "SELECT * FROM $forums_tb LEFT JOIN $cat_tb ON $forums_tb.cat_id = $cat_tb.cat_id"; 
    499                                         $forums = $xoops_db->get_results($sql); 
    500                                         foreach ($forums as $forum) { 
    501                                                 if (($module->dirname == $this->d3forum_module_dir) &&  ($forum->forum_id == $this->d3forum_forum_id)) 
    502                                                         $selected = ' selected="selected"'; 
    503                                                 else 
    504                                                         $selected = ''; 
    505                                                 $forum_div = 'forum|' . $module->dirname . '|' .  $forum->forum_id; 
    506                                                 $forum_select = "$module->name($module->dirname) $forum->cat_title-$forum->forum_title(ID=$forum->forum_id)"; 
    507                                                 $forum_list .= '<option value="' . $forum_div . '" ' . $selected . '>' . $forum_select . "</option>\n"; 
     483                 
     484                if ($xoops_config->is_wpmu) { 
     485                        $forum_list .= '<option value="none"' . $selected . '>' . __('WordPress MU cannot integrate the comments.', 'xpressme') . "</option>\n"; 
     486                } else {         
     487                        $forum_list .= '<option value="none"' . $selected . '>' . __('Do Not Comment Integration.', 'xpressme') . "</option>\n"; 
     488 
     489                        // Form making for forum selection of D3forum 
     490                        $modules_table = get_xoops_prefix() .'modules'; 
     491                        $sql = "SELECT mid,name,isactive,dirname FROM $modules_table WHERE isactive = 1"; 
     492                        $modules = $xoops_db->get_results($sql); 
     493                        foreach ($modules as $module) { 
     494                                $file_path = $module_dir_path . '/modules/' . $module->dirname . '/mytrustdirname.php';                  
     495                                if (! file_exists($file_path)) continue; 
     496                                $array_files = file($file_path); 
     497                                // It is checked whether there is character string "$mytrustdirname ='d3forum'"in the file. 
     498                                foreach ($array_files as $aeey_file){ 
     499                                        if( preg_match( "/\s*(mytrustdirname)\s*(=)\s*([\"'])(d3forum)([\"'])/", $aeey_file ) ) { 
     500                                                $forums_tb = get_xoops_prefix() . $module->dirname . '_forums'; 
     501                                                $cat_tb = get_xoops_prefix() . $module->dirname . '_categories'; 
     502                                                $sql= "SELECT * FROM $forums_tb LEFT JOIN $cat_tb ON $forums_tb.cat_id = $cat_tb.cat_id"; 
     503                                                $forums = $xoops_db->get_results($sql); 
     504                                                foreach ($forums as $forum) { 
     505                                                        if (($module->dirname == $this->d3forum_module_dir) &&  ($forum->forum_id == $this->d3forum_forum_id)) 
     506                                                                $selected = ' selected="selected"'; 
     507                                                        else 
     508                                                                $selected = ''; 
     509                                                        $forum_div = 'forum|' . $module->dirname . '|' .  $forum->forum_id; 
     510                                                        $forum_select = "$module->name($module->dirname) $forum->cat_title-$forum->forum_title(ID=$forum->forum_id)"; 
     511                                                        $forum_list .= '<option value="' . $forum_div . '" ' . $selected . '>' . $forum_select . "</option>\n"; 
     512                                                } 
     513                                                break; 
    508514                                        } 
    509                                         break; 
    510515                                } 
     516                                $forum_list .= '<br>';                   
    511517                        } 
    512                         $forum_list .= '<br>';                   
    513518                } 
    514519                $forum_list .= '</select>' . "\n"; 
Note: See TracChangeset for help on using the changeset viewer.