XPressME Integration Kit

Trac

Changeset 155 for trunk/wp-content


Ignore:
Timestamp:
Apr 4, 2009, 6:47:22 PM (16 years ago)
Author:
toemon
Message:

#14 マルチユーザーモードの実装

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

Legend:

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

    r154 r155  
    11<?php 
     2function xpress_selected_author($show=true ) { 
     3        $output = ''; 
     4        $author_cookie = get_xpress_dir_name() . "_select_author" ; 
     5        if (!empty($_COOKIE[$author_cookie])){ 
     6                $uid = intval($_COOKIE[$author_cookie]); 
     7                $user_info = get_userdata($uid); 
     8                $output = $user_info->display_name; 
     9        } 
     10        if (empty($show)) 
     11                return $output; 
     12        else 
     13                echo $output; 
     14                 
     15} 
    216         
    317function xpress_list_pings($trackback, $args, $depth) { 
     
    199213} 
    200214 
     215function xpress_is_multi_user(){ 
     216        global $xpress_config; 
     217        return $xpress_config->is_multi_user; 
     218} 
     219 
     220 
    201221function xpress_substr($str, $start, $length, $trimmarker = '...') 
    202222{ 
     
    352372function xpress_conditional_title($display = true) 
    353373{ 
     374        $selected_author = xpress_selected_author(false); 
     375         
    354376        $output = __('Main', 'xpressme'); 
    355377        if (is_category()) 
     
    363385        if (is_year()) 
    364386                $output = sprintf(__('Archive for %s|Yearly archive page', 'xpressme'), get_the_time(__('Y', 'xpressme'))); 
    365         if (is_author()) 
    366                 $output = sprintf(__('Archive for the &#8216;%s&#8217; Author', 'xpressme'), get_author_name( get_query_var('author'))); 
     387        if (is_author()){ 
     388                if (empty($selected_author)) 
     389                        $output = sprintf(__('Archive for the &#8216;%s&#8217; Author', 'xpressme'), get_author_name( get_query_var('author'))); 
     390        } 
    367391        if (is_search()) 
    368392                $output = sprintf(__('Search Results of word &#8216;%s&#8217;', 'xpressme'), get_search_query()); 
     393         
     394        if (!empty($selected_author)) 
     395        $output = sprintf(__('Article of %s', 'xpressme'), $selected_author) . ' - ' . $output; 
    369396                 
    370397        if ($display)  
  • trunk/wp-content/plugins/xpressme/include/xpress_common_functions.php

    r147 r155  
    235235} 
    236236 
     237function xpress_set_author_cookie() 
     238{ 
     239        $author_cookie = get_xpress_dir_name() . "_select_author" ; 
     240        if(xpress_is_multi_user()){ 
     241                if (empty($_GET)){ 
     242        //              $GLOBALS["wp_xoops_author"] = null; 
     243                        setcookie($author_cookie, 0); 
     244                        $_COOKIE[$author_cookie] = 0; 
     245                         
     246                } else { 
     247                        $auth = intval( @$_GET["author"] ); 
     248                        if ($auth > 0){ 
     249                                setcookie($author_cookie, $auth); 
     250                                $_COOKIE[$author_cookie] = $auth; 
     251                        } 
     252                } 
     253        }else{ 
     254        //      $GLOBALS["wp_xoops_author"] = null; 
     255                setcookie($author_cookie, 0); 
     256                $_COOKIE[$author_cookie] = 0; 
     257        } 
     258} 
     259 
     260function xpress_query_filter(&$query) 
     261{ 
     262        $author_cookie = get_xpress_dir_name() . "_select_author" ; 
     263         
     264        if (strpos($query,'SELECT') !==0)  return $query; 
     265 
     266        $select_pattern = "SELECT(.*)post_author(.*)FROM"; 
     267        if (preg_match ( "/".$select_pattern."/i", $query, $select_match )) 
     268                return $query; 
     269 
     270        $query = preg_replace('/\s\s+/', ' ', $query); 
     271        if (!empty($_COOKIE[$author_cookie])){ 
     272                $pattern = "WHERE(.*)post_type(.*)=(.*)'post'"; 
     273                if ( preg_match ( "/".$pattern."/i", $query, $match ) ){ 
     274                        $where_str = "$match[0]"; 
     275                        $where_arry = split(' ',$where_str); 
     276                        $post_prefix = ''; 
     277                        foreach ($where_arry as $p){ 
     278                                if ( preg_match ( "/post_type/", $p, $match3 ) ){ 
     279                                        $post_prefix = preg_replace("/post_type/", "", $p); 
     280                                        break; 
     281                                } 
     282                        } 
     283                        preg_match ( "/post_type(.*)/", $where_str, $p_match ); 
     284                        $patern = $p_match[0]; 
     285                        $replace = $patern . " AND {$post_prefix}post_author = " . intval($_COOKIE[$author_cookie]) . " "; 
     286                        $query = preg_replace("/$patern/", $replace, $query); 
     287                } 
     288        } 
     289//      xpress_show_sql_quary($query); 
     290        return $query; 
     291} 
    237292?> 
  • trunk/wp-content/plugins/xpressme/language/xpressme-ja.po

    r150 r155  
    33"Project-Id-Version: XPressME Plugin\n" 
    44"POT-Creation-Date: \n" 
    5 "PO-Revision-Date: 2009-04-02 14:04+0900\n" 
     5"PO-Revision-Date: 2009-04-04 18:30+0900\n" 
    66"Last-Translator: toemon <toychee@toemon.com>\n" 
    77"Language-Team: \n" 
     
    1515"X-Poedit-SearchPath-0: .\n" 
    1616 
    17 #: xpressme_class.php:42 
     17#: xpressme_class.php:43 
    1818msgid "XPressME Settings" 
    1919msgstr "XPressME設定" 
    2020 
    21 #: xpressme_class.php:59 
    22 #: xpressme_class.php:186 
     21#: xpressme_class.php:60 
     22#: xpressme_class.php:206 
    2323msgid "Older Post" 
    2424msgstr "前の投稿へ" 
    2525 
    26 #: xpressme_class.php:60 
    27 #: xpressme_class.php:188 
     26#: xpressme_class.php:61 
     27#: xpressme_class.php:208 
    2828msgid "Newer Post" 
    2929msgstr "次の投稿へ" 
    3030 
    31 #: xpressme_class.php:62 
    32 #: xpressme_class.php:191 
     31#: xpressme_class.php:63 
     32#: xpressme_class.php:211 
    3333msgid "Older Entries" 
    3434msgstr "前ページへ" 
    3535 
    36 #: xpressme_class.php:63 
    37 #: xpressme_class.php:193 
     36#: xpressme_class.php:64 
     37#: xpressme_class.php:213 
    3838msgid "Newer Entries" 
    3939msgstr "次ページへ" 
    4040 
    41 #: xpressme_class.php:77 
     41#: xpressme_class.php:78 
    4242msgid "more" 
    4343msgstr "続きを読む" 
    4444 
    45 #: xpressme_class.php:244 
    46 #: xpressme_class.php:260 
    47 #: xpressme_class.php:628 
    48 #: xpressme_class.php:633 
    49 #: xpressme_class.php:643 
     45#: xpressme_class.php:264 
     46#: xpressme_class.php:280 
    5047#: xpressme_class.php:648 
     48#: xpressme_class.php:653 
     49#: xpressme_class.php:659 
     50#: xpressme_class.php:670 
     51#: xpressme_class.php:675 
    5152msgid "YES" 
    5253msgstr "はい" 
    5354 
    54 #: xpressme_class.php:245 
    55 #: xpressme_class.php:261 
    56 #: xpressme_class.php:629 
    57 #: xpressme_class.php:634 
    58 #: xpressme_class.php:644 
     55#: xpressme_class.php:265 
     56#: xpressme_class.php:281 
    5957#: xpressme_class.php:649 
     58#: xpressme_class.php:654 
     59#: xpressme_class.php:660 
     60#: xpressme_class.php:671 
     61#: xpressme_class.php:676 
    6062msgid "NO" 
    6163msgstr "いいえ" 
    6264 
    63 #: xpressme_class.php:303 
     65#: xpressme_class.php:323 
    6466msgid "Single Post Navi Setting" 
    6567msgstr "シングルポストナビの設定" 
    6668 
    67 #: xpressme_class.php:308 
    68 #: xpressme_class.php:353 
     69#: xpressme_class.php:328 
     70#: xpressme_class.php:373 
    6971msgid "Adjustment of Navi link display position" 
    7072msgstr "リンクの表示位置設定" 
    7173 
    72 #: xpressme_class.php:311 
     74#: xpressme_class.php:331 
    7375msgid "'Old Post Link' is displayed in the left, and 'Newer Post Link' is displayed in the right" 
    7476msgstr "以前の記事へのリンクを左に、より新しい記事へのリンクを右に表示" 
    7577 
    76 #: xpressme_class.php:312 
     78#: xpressme_class.php:332 
    7779msgid "'Newer Post Link' is displayed in the left, and 'Old Post Link' is displayed in the right" 
    7880msgstr "より新しい記事へのリンクを左に、古い記事へのリンクを右に表示" 
    7981 
    80 #: xpressme_class.php:318 
     82#: xpressme_class.php:338 
    8183msgid "Select Display name of PostNavi Link" 
    8284msgstr "表示するリンクテキストを選択" 
    8385 
    84 #: xpressme_class.php:321 
     86#: xpressme_class.php:341 
    8587msgid "Title of post" 
    8688msgstr "投稿記事のタイトルを表示" 
    8789 
    88 #: xpressme_class.php:322 
     90#: xpressme_class.php:342 
    8991msgid "Title of Navi" 
    9092msgstr "ナビタイトルを表示" 
    9193 
    92 #: xpressme_class.php:328 
     94#: xpressme_class.php:348 
    9395msgid "Display Navi Title of Old Post Link" 
    9496msgstr "古い記事へのナビタイトルを設定" 
    9597 
    96 #: xpressme_class.php:335 
     98#: xpressme_class.php:355 
    9799msgid "Display Navi Title of Newer Post Link" 
    98100msgstr "より新しい記事へのナビタイトルを設定" 
    99101 
    100 #: xpressme_class.php:348 
     102#: xpressme_class.php:368 
    101103msgid "Posts List Page Navi Setting" 
    102104msgstr "ポストリストページナビの設定" 
    103105 
    104 #: xpressme_class.php:356 
     106#: xpressme_class.php:376 
    105107msgid "'Old Page Link' is displayed in the left, and 'Newer Page Link' is displayed in the right" 
    106108msgstr "古いページへのリンクを左に、より新しいページへのリンクを右に表示" 
    107109 
    108 #: xpressme_class.php:357 
     110#: xpressme_class.php:377 
    109111msgid "'Newer Page Link' is displayed in the left, and 'Old Page Link' is displayed in the right" 
    110112msgstr "より新しいページへのリンクを左に、古いページへのリンクを右に表示" 
    111113 
    112 #: xpressme_class.php:363 
     114#: xpressme_class.php:383 
    113115msgid "Display Navi Title of Old Page Link" 
    114116msgstr "古いページへのナビタイトルを設定" 
    115117 
    116 #: xpressme_class.php:370 
     118#: xpressme_class.php:390 
    117119msgid "Display Navi Title of Newer Page Link" 
    118120msgstr "より新しいページへのナビタイトルを設定" 
    119121 
    120 #: xpressme_class.php:385 
     122#: xpressme_class.php:405 
    121123msgid "Role Setting at Login" 
    122124msgstr "ログイン時の権限設定" 
    123125 
    124 #: xpressme_class.php:388 
     126#: xpressme_class.php:408 
    125127msgid "XOOPS Groupe" 
    126128msgstr "XOOPSグループ名" 
    127129 
    128 #: xpressme_class.php:388 
     130#: xpressme_class.php:408 
    129131msgid "WordPress Role" 
    130132msgstr "WordPressでの権限" 
    131133 
    132 #: xpressme_class.php:388 
     134#: xpressme_class.php:408 
    133135msgid "Role is set at each login" 
    134136msgstr "ログイン時、常に権限を更新する" 
    135137 
    136 #: xpressme_class.php:414 
    137 #: xpressme_class.php:418 
    138 #: xpressme_class.php:421 
     138#: xpressme_class.php:434 
     139#: xpressme_class.php:438 
     140#: xpressme_class.php:441 
    139141msgid "Default Role of WordPress" 
    140142msgstr "WordPressのデフォルト権限" 
    141143 
    142 #: xpressme_class.php:415 
    143 #: xpressme_class.php:419 
    144 #: xpressme_class.php:422 
     144#: xpressme_class.php:435 
     145#: xpressme_class.php:439 
     146#: xpressme_class.php:442 
    145147msgid "Group User Doesn't Register" 
    146148msgstr "ユーザ登録しない" 
    147149 
    148 #: xpressme_class.php:451 
     150#: xpressme_class.php:471 
    149151msgid "Do Not Comment Integration." 
    150152msgstr "コメント統合しません。" 
    151153 
    152 #: xpressme_class.php:485 
     154#: xpressme_class.php:505 
    153155msgid "Comment integration with D3Forum" 
    154156msgstr "D3Forumとのコメント統合" 
    155157 
    156 #: xpressme_class.php:487 
     158#: xpressme_class.php:507 
    157159msgid "Select the forum of D3Forum that does the comment integration from the following lists." 
    158160msgstr "以下のリストからコメント統合をするD3Forumのフォーラムを選択してください。" 
    159161 
    160 #: xpressme_class.php:491 
     162#: xpressme_class.php:511 
    161163msgid "Select the Type of display of D3Forum comment." 
    162164msgstr "D3Forumの表示タイプを選択" 
    163165 
    164 #: xpressme_class.php:493 
    165 #: xpressme_class.php:496 
     166#: xpressme_class.php:513 
     167#: xpressme_class.php:516 
    166168msgid "Flat" 
    167169msgstr "フラット" 
    168170 
    169 #: xpressme_class.php:494 
    170 #: xpressme_class.php:497 
     171#: xpressme_class.php:514 
     172#: xpressme_class.php:517 
    171173msgid "Threaded" 
    172174msgstr "スレッド" 
    173175 
    174 #: xpressme_class.php:500 
     176#: xpressme_class.php:520 
    175177msgid "Select the order of display of D3Forum comment." 
    176178msgstr "D3Forumコメントの表示順を選択" 
    177179 
    178 #: xpressme_class.php:502 
    179 #: xpressme_class.php:505 
     180#: xpressme_class.php:522 
     181#: xpressme_class.php:525 
    180182msgid "DESC" 
    181183msgstr "降順" 
    182184 
    183 #: xpressme_class.php:503 
    184 #: xpressme_class.php:506 
     185#: xpressme_class.php:523 
     186#: xpressme_class.php:526 
    185187msgid "ASC" 
    186188msgstr "昇順" 
    187189 
    188 #: xpressme_class.php:509 
     190#: xpressme_class.php:529 
    189191msgid "Number of displays of D3Forum comments." 
    190192msgstr "D3Forumのコメント表示数" 
    191193 
    192 #: xpressme_class.php:513 
     194#: xpressme_class.php:533 
    193195msgid "The import and the export between Wordpress Comments and the D3Forum Posts can be done. " 
    194196msgstr "WordPressコメントとD3Forumポスト間の一括転送(エクスポート・インポート)" 
    195197 
    196 #: xpressme_class.php:514 
     198#: xpressme_class.php:534 
    197199msgid "Export to D3Forum" 
    198200msgstr "D3Forumへ一括エクスポート" 
    199201 
    200 #: xpressme_class.php:515 
     202#: xpressme_class.php:535 
    201203msgid "Import from D3Forum" 
    202204msgstr "D3Forumから一括インポート" 
    203205 
    204 #: xpressme_class.php:527 
     206#: xpressme_class.php:547 
    205207msgid "Contents Excerpt Setting" 
    206208msgstr "記事抜粋の設定" 
    207209 
    208 #: xpressme_class.php:532 
     210#: xpressme_class.php:552 
    209211msgid "Is the excerpt display done with the archive of contents?" 
    210212msgstr "記事のアーカイブで抜粋表示を行いますか?" 
    211213 
    212 #: xpressme_class.php:539 
     214#: xpressme_class.php:559 
    213215msgid "When ASCII character more than the set ratio is included, it is judged ASCII contents. " 
    214216msgstr "ASCII文字が含まれる比率が設定された値より大きい場合、ASCII文字コンテンツと判断します。" 
    215217 
    216 #: xpressme_class.php:546 
     218#: xpressme_class.php:566 
    217219msgid "Excerpt length of word for ASCII contents" 
    218220msgstr "ASCIIコンテンツの抜粋単語数" 
    219221 
    220 #: xpressme_class.php:553 
     222#: xpressme_class.php:573 
    221223msgid "Excerpt length of character for multibyte contents" 
    222224msgstr "マルチバイトコンテンツの抜粋文字数" 
    223225 
    224 #: xpressme_class.php:560 
     226#: xpressme_class.php:580 
    225227msgid "More Link Text (Is not displayed for the blank.)" 
    226228msgstr "Moreリンクテキスト(ブランクの場合リンクを表示しません。)" 
    227229 
    228 #: xpressme_class.php:572 
     230#: xpressme_class.php:592 
    229231msgid "Display Mode Setting" 
    230232msgstr "表示モード設定" 
    231233 
    232 #: xpressme_class.php:575 
     234#: xpressme_class.php:595 
    233235msgid "Select the XPressME Display Mode." 
    234236msgstr "XPressMEの表示モードの選択" 
    235237 
    236 #: xpressme_class.php:580 
     238#: xpressme_class.php:600 
    237239msgid "Xoops Mode" 
    238240msgstr "XOOPSモード" 
    239241 
    240 #: xpressme_class.php:584 
     242#: xpressme_class.php:604 
    241243msgid "WordPress Mode" 
    242244msgstr "WordPressモード" 
    243245 
    244 #: xpressme_class.php:588 
     246#: xpressme_class.php:608 
    245247msgid "User select" 
    246248msgstr "ユーザによる選択" 
    247249 
    248 #: xpressme_class.php:617 
     250#: xpressme_class.php:637 
    249251msgid "XPressME Configuration Page" 
    250252msgstr "XPressMEの設定ページ" 
    251253 
    252 #: xpressme_class.php:622 
     254#: xpressme_class.php:642 
    253255msgid "Media Upload Base Path" 
    254256msgstr "メディアアップロードのベースパス設定" 
    255257 
    256 #: xpressme_class.php:623 
     258#: xpressme_class.php:643 
    257259msgid "Use XOOPS UPLOAD PATH" 
    258260msgstr "XOOPSのアップロードパスを使用する。" 
    259261 
    260 #: xpressme_class.php:624 
     262#: xpressme_class.php:644 
    261263msgid "USE WordPress BASE_PATH" 
    262264msgstr "WordPressのベースパスを使用する。" 
    263265 
    264 #: xpressme_class.php:627 
     266#: xpressme_class.php:647 
    265267msgid "Thema Sidebar Display" 
    266268msgstr "テーマ表示時にサイドバー表示する。" 
    267269 
    268 #: xpressme_class.php:632 
     270#: xpressme_class.php:652 
    269271msgid "The change tracking of the post is preserved" 
    270272msgstr "投稿の変更履歴を有効にする。" 
    271273 
    272 #: xpressme_class.php:642 
     274#: xpressme_class.php:658 
     275msgid "Select Multi user mode" 
     276msgstr "マルチユーザーモードを選択" 
     277 
     278#: xpressme_class.php:669 
    273279msgid "Is the posts author views counted?" 
    274280msgstr "投稿者の閲覧をカウントしますか?" 
    275281 
    276 #: xpressme_class.php:647 
     282#: xpressme_class.php:674 
    277283msgid "Is SQL debugging window displayed?" 
    278284msgstr "SQLデバッグウィンドを表示しますか?" 
    279285 
    280 #: xpressme_class.php:659 
     286#: xpressme_class.php:686 
    281287msgid "Update Config" 
    282288msgstr "更新" 
    283289 
    284 #: xpressme_class.php:660 
     290#: xpressme_class.php:687 
    285291msgid "Preset Config" 
    286292msgstr "プリセット" 
    287293 
    288 #: include/custom_functions.php:238 
     294#: include/custom_functions.php:258 
    289295#, php-format 
    290296msgid "views :%d" 
    291297msgstr "閲覧数 :%d" 
    292298 
    293 #: include/custom_functions.php:354 
     299#: include/custom_functions.php:376 
    294300msgid "Main" 
    295301msgstr "メイン" 
    296302 
    297 #: include/custom_functions.php:356 
     303#: include/custom_functions.php:378 
    298304#, php-format 
    299305msgid "Archive for the &#8216;%s&#8217; Category" 
    300306msgstr "カテゴリー &#8216;%s&#8217; のアーカイブ" 
    301307 
    302 #: include/custom_functions.php:358 
     308#: include/custom_functions.php:380 
    303309#, php-format 
    304310msgid "Posts Tagged &#8216;%s&#8217;" 
    305311msgstr "&#8216;%s&#8217; タグのついている投稿" 
    306312 
    307 #: include/custom_functions.php:360 
     313#: include/custom_functions.php:382 
    308314#, php-format 
    309315msgid "Archive for %s|Daily archive page" 
    310316msgstr "%sの日別アーカイブ" 
    311317 
    312 #: include/custom_functions.php:360 
     318#: include/custom_functions.php:382 
    313319msgid "F jS, Y" 
    314320msgstr "Y年n月j日" 
    315321 
    316 #: include/custom_functions.php:362 
     322#: include/custom_functions.php:384 
    317323#, php-format 
    318324msgid "Archive for %s|Monthly archive page" 
    319325msgstr "%sの月別アーカイブ" 
    320326 
    321 #: include/custom_functions.php:362 
     327#: include/custom_functions.php:384 
    322328msgid "F, Y" 
    323329msgstr "Y年n月" 
    324330 
    325 #: include/custom_functions.php:364 
     331#: include/custom_functions.php:386 
    326332#, php-format 
    327333msgid "Archive for %s|Yearly archive page" 
    328334msgstr "%sの年別アーカイブ " 
    329335 
    330 #: include/custom_functions.php:364 
     336#: include/custom_functions.php:386 
    331337msgid "Y" 
    332338msgstr "Y年" 
    333339 
    334 #: include/custom_functions.php:366 
     340#: include/custom_functions.php:389 
    335341#, php-format 
    336342msgid "Archive for the &#8216;%s&#8217; Author" 
    337343msgstr "投稿者 &#8216;%s&#8217; のアーカイブ" 
    338344 
    339 #: include/custom_functions.php:368 
     345#: include/custom_functions.php:392 
    340346#, php-format 
    341347msgid "Search Results of word &#8216;%s&#8217;" 
    342348msgstr "&#8216;%s&#8217; の検索結果" 
    343349 
    344 #: include/custom_functions.php:382 
     350#: include/custom_functions.php:395 
     351#, php-format 
     352msgid "Article of %s" 
     353msgstr "%sの記事" 
     354 
     355#: include/custom_functions.php:410 
    345356#, php-format 
    346357msgid "From %1$s on site %2$s" 
    347358msgstr "サイト %2$s の %1$s より" 
    348359 
    349 #: include/custom_functions.php:398 
     360#: include/custom_functions.php:433 
    350361#, fuzzy 
    351362msgid "% TrackBack/Pingback" 
    352363msgstr "トラックバック・ピンバック % 件" 
    353364 
    354 #: include/custom_functions.php:400 
     365#: include/custom_functions.php:435 
    355366msgid "No Trackback/Pingback" 
    356367msgstr "トラックバック・ピンバックはありません" 
    357368 
    358 #: include/custom_functions.php:402 
     369#: include/custom_functions.php:437 
    359370msgid "One Trackback/Pingback" 
    360371msgstr "トラックバック・ピンバック 1 件" 
  • trunk/wp-content/plugins/xpressme/xpressme.php

    r147 r155  
    6969} 
    7070 
     71 
     72 
     73 
    7174//The trackback and the pingback are excluded from the count of the comment.  
    7275add_filter('get_comments_number', 'xpress_comment_count', 0); 
     76 
     77// Query filter for  MultiUser 
     78add_filter('query','xpress_query_filter'); 
     79add_action("init", "xpress_set_author_cookie"); 
    7380 
    7481// SQL debug windows 
  • trunk/wp-content/plugins/xpressme/xpressme_class.php

    r152 r155  
    2828        var $more_link_text; 
    2929        var $viewer_type; 
     30        var $is_multi_user; 
    3031        //constructor 
    3132        function XPressME_Class() 
     
    7778                $this->more_link_text = __('more', 'xpressme'); 
    7879                $this->viewer_type = 'xoops'; 
     80                $this->is_multi_user = false; 
    7981 
    8082        } 
     
    124126                        'excerpt_length_character' => $this->excerpt_length_character, 
    125127                        'more_link_text' => $this->more_link_text, 
    126                         'viewer_type' => $this->viewer_type 
     128                        'viewer_type' => $this->viewer_type, 
     129                        'is_multi_user' => $this->is_multi_user 
    127130                ); 
    128131                if ($mode == 'add_new') { 
     
    235238                $this->more_link_text = stripslashes(trim($_POST['ch_more_link_text'])); 
    236239                $this->viewer_type = stripslashes(trim($_POST['ch_viewer_type'])); 
    237                  
     240                $this->is_multi_user = stripslashes(trim($_POST['ch_is_multi_user'])); 
    238241                global $xoops_db; 
    239242                $table = get_wp_prefix() . 'group_role';         
     
    652655                                                                                                ); 
    653656                 
     657                echo                            $this->yes_no_radio_option('is_multi_user', 
     658                                                                                                __('Select Multi user mode','xpressme'), 
     659                                                                                                __('YES','xpressme'), 
     660                                                                                                __('NO','xpressme') 
     661                                                                                                ); 
     662                 
     663                 
    654664                echo                            $this->single_post_navi_option(); 
    655665                echo                            $this->posts_page_navi_option(); 
Note: See TracChangeset for help on using the changeset viewer.