Changeset 81
- Timestamp:
- Jan 31, 2009, 10:48:11 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/oninstall.php
r80 r81 132 132 group_type varchar(10) NOT NULL default '' , 133 133 role varchar(20) NOT NULL default '' , 134 login_all smallint(5) unsigned NOT NULL default '0' , 134 135 KEY groupid (groupid) 135 136 )$charset_collate;"; -
trunk/include/onupdate.php
r80 r81 123 123 group_type varchar(10) NOT NULL default '' , 124 124 role varchar(20) NOT NULL default '' , 125 login_all smallint(5) unsigned NOT NULL default '0' , 125 126 KEY groupid (groupid) 126 127 )$charset_collate;"; -
trunk/wp-content/plugins/xpressme/language/xpressme-ja.po
r79 r81 3 3 "Project-Id-Version: XPressME Plugin\n" 4 4 "POT-Creation-Date: \n" 5 "PO-Revision-Date: 2009-01-31 10:14+0900\n"5 "PO-Revision-Date: 2009-01-31 22:42+0900\n" 6 6 "Last-Translator: toemon <toychee@toemon.com>\n" 7 7 "Language-Team: \n" … … 20 20 21 21 #: xpressme_class.php:47 22 #: xpressme_class.php:13 322 #: xpressme_class.php:139 23 23 msgid "to Old Post" 24 24 msgstr "前の投稿へ" 25 25 26 26 #: xpressme_class.php:48 27 #: xpressme_class.php:1 3527 #: xpressme_class.php:141 28 28 msgid "to Newer Post" 29 29 msgstr "次の投稿へ" 30 30 31 #: xpressme_class.php:1 4132 #: xpressme_class.php:2 7633 #: xpressme_class.php:28 134 #: xpressme_class.php:30 231 #: xpressme_class.php:167 32 #: xpressme_class.php:280 33 #: xpressme_class.php:285 34 #: xpressme_class.php:306 35 35 msgid "YES" 36 36 msgstr "はい" 37 37 38 #: xpressme_class.php:1 4239 #: xpressme_class.php:2 7740 #: xpressme_class.php:28 241 #: xpressme_class.php:30 338 #: xpressme_class.php:168 39 #: xpressme_class.php:281 40 #: xpressme_class.php:286 41 #: xpressme_class.php:307 42 42 msgid "NO" 43 43 msgstr "いいえ" 44 44 45 #: xpressme_class.php: 18645 #: xpressme_class.php:208 46 46 msgid "Role Setting at Login" 47 47 msgstr "ログイン時の権限設定" 48 48 49 #: xpressme_class.php: 18949 #: xpressme_class.php:211 50 50 msgid "XOOPS Groupe" 51 51 msgstr "XOOPSグループ名" 52 52 53 #: xpressme_class.php: 18953 #: xpressme_class.php:211 54 54 msgid "WordPress Role" 55 55 msgstr "WordPressでの権限" 56 56 57 #: xpressme_class.php: 18958 msgid " Only First Login"59 msgstr " 最初のログイン時のみ"57 #: xpressme_class.php:211 58 msgid "Role is set at each login" 59 msgstr "ログイン時、常に権限を更新する" 60 60 61 #: xpressme_class.php:210 62 #: xpressme_class.php:212 63 msgid "— No role for this blog —" 64 msgstr "— このブログでの権限なし —" 61 #: xpressme_class.php:232 62 #: xpressme_class.php:236 63 #: xpressme_class.php:239 64 msgid "Default Role of WordPress" 65 msgstr "WordPressのデフォルト権限" 65 66 66 #: xpressme_class.php:266 67 #: xpressme_class.php:233 68 #: xpressme_class.php:237 69 #: xpressme_class.php:240 70 msgid "Group User Doesn't Register" 71 msgstr "ユーザ登録しない" 72 73 #: xpressme_class.php:270 67 74 msgid "XPressME Configuration Page" 68 75 msgstr "XPressMEの設定ページ" 69 76 70 #: xpressme_class.php:27 077 #: xpressme_class.php:274 71 78 msgid "Media Upload Base Path" 72 79 msgstr "メディアアップロードのベースパス設定" 73 80 74 #: xpressme_class.php:27 181 #: xpressme_class.php:275 75 82 msgid "Use XOOPS UPLOAD PATH" 76 83 msgstr "XOOPSのアップロードパスを使用する。" 77 84 78 #: xpressme_class.php:27 285 #: xpressme_class.php:276 79 86 msgid "USE WordPress BASE_PATH" 80 87 msgstr "WordPressのベースパスを使用する。" 81 88 82 #: xpressme_class.php:27 589 #: xpressme_class.php:279 83 90 msgid "Thema Sidebar Display" 84 91 msgstr "テーマ表示時にサイドバー表示する。" 85 92 86 #: xpressme_class.php:28 093 #: xpressme_class.php:284 87 94 msgid "The change tracking of the post is preserved" 88 95 msgstr "投稿の変更履歴を有効にする。" 89 96 90 #: xpressme_class.php:28 597 #: xpressme_class.php:289 91 98 msgid "Display Navi Title of Old Post Link" 92 99 msgstr "古い記事へのナビタイトルを設定" 93 100 94 #: xpressme_class.php:2 88101 #: xpressme_class.php:292 95 102 msgid "Display Navi Title of Newer Post Link" 96 103 msgstr "新しい記事へのナビタイトルを設定" 97 104 98 #: xpressme_class.php:29 1105 #: xpressme_class.php:295 99 106 msgid "Select Display name of PostNavi Link" 100 107 msgstr "投稿記事リンクナビのタイトル設定" 101 108 102 #: xpressme_class.php:29 2109 #: xpressme_class.php:296 103 110 msgid "Title of post" 104 111 msgstr "投稿記事のタイトルを表示" 105 112 106 #: xpressme_class.php:29 3113 #: xpressme_class.php:297 107 114 msgid "Title of Navi" 108 115 msgstr "ナビタイトルを表示" 109 116 110 #: xpressme_class.php: 296117 #: xpressme_class.php:300 111 118 msgid "Adjustment of Navi link display position" 112 119 msgstr "投稿記事ナビリンクの表示位置設定" 113 120 114 #: xpressme_class.php: 297121 #: xpressme_class.php:301 115 122 msgid "'Old Post Link' is displayed in the left, and 'Newer Post Link' is displayed in the right" 116 123 msgstr "古い記事へのリンクを左に、より新しい記事へのリンクを右に表示" 117 124 118 #: xpressme_class.php: 298125 #: xpressme_class.php:302 119 126 msgid "'Newer Post Link' is displayed in the left, and 'Old Post Link' is displayed in the right" 120 127 msgstr "より新しい記事へのリンクを左に、古い記事へのリンクを右に表示" 121 128 122 #: xpressme_class.php:30 1129 #: xpressme_class.php:305 123 130 msgid "Is the posts author views counted?" 124 131 msgstr "投稿者の閲覧をカウントしますか?" 125 132 126 #: xpressme_class.php:31 0133 #: xpressme_class.php:314 127 134 msgid "Update Config" 128 135 msgstr "更新" 129 136 130 #: xpressme_class.php:31 1137 #: xpressme_class.php:315 131 138 msgid "Preset Config" 132 139 msgstr "プリセット" -
trunk/wp-content/plugins/xpressme/xpressme_class.php
r79 r81 62 62 } 63 63 } 64 if (!empty($xoops_db)) // at install trap 65 $this->GroupeRoleRead(); 64 66 } 65 67 … … 103 105 $role = ''; 104 106 foreach ($before_groupes as $before_groupe) { 105 if ($groupe->groupid == $before_groupe->groupid) $role = $before_groupe->role; 107 if ($groupe->groupid == $before_groupe->groupid) { 108 $role = $before_groupe->role; 109 $login_all = $before_groupe->login_all; 110 } 106 111 } 107 112 108 113 $insert_sql = "INSERT INTO $table "; 109 $insert_sql .= "(groupid , name , description , group_type , role ) ";114 $insert_sql .= "(groupid , name , description , group_type , role , login_all) "; 110 115 $insert_sql .= "VALUES ("; 111 116 $insert_sql .= $groupe->groupid . ', '; … … 113 118 $insert_sql .= "'" . $groupe->description . "' , "; 114 119 $insert_sql .= "'" . $groupe->group_type . "' , "; 115 $insert_sql .= "'" . $role . "')"; 120 $insert_sql .= "'" . $role . "' , "; 121 $insert_sql .= $login_all . ")"; 116 122 $xoops_db->query($insert_sql); 117 123 } … … 136 142 $this->is_author_view_count = stripslashes(trim($_POST['ch_is_author_view_count'])); 137 143 144 global $xoops_db; 145 $table = get_wp_prefix() . 'group_role'; 146 // $sql= "SELECT * FROM $table"; 147 // $this->groupe_role = $xoops_db->get_results($sql); // before Read 148 149 foreach ($this->groupe_role as $groupe) { 150 $post_name = 'role_gid_' . $groupe->groupid; 151 $role = stripslashes(trim($_POST[$post_name])); 152 $post_name = 'login_all_gid_' . $groupe->groupid; 153 $login_all = stripslashes(trim($_POST[$post_name])); 154 if (empty($login_all)) $login_all = '0'; 155 $groupe->role = $role; 156 $groupe->login_all = $login_all; 157 $update_sql = "UPDATE $table "; 158 $update_sql .= 'SET '; 159 $update_sql .= "role = '$role' , "; 160 $update_sql .= "login_all = $login_all "; 161 $update_sql .= "WHERE (groupid = '$groupe->groupid' )"; 162 $xoops_db->query($update_sql); 163 } 138 164 } 139 165 … … 178 204 function groupe_role_option(){ 179 205 global $wp_roles , $xoops_db; 180 $this->GroupeRoleRead();181 // $table = get_xoops_prefix() . 'groups';182 // $sql= "SELECT * FROM $table WHERE group_type <> 'Anonymous'";183 // $groupes = array_diff($this->$groupe_role,array());184 206 185 207 $form = ''; … … 187 209 $form .= '<td>'; 188 210 $form .= "<table>\n"; 189 $form .= '<tr><td>' . __('XOOPS Groupe', 'xpressme') . '</td><td>' . __('WordPress Role', 'xpressme') . '</td><td>' . __(' Only First Login', 'xpressme') . "</td></tr>\n";211 $form .= '<tr><td>' . __('XOOPS Groupe', 'xpressme') . '</td><td>' . __('WordPress Role', 'xpressme') . '</td><td>' . __('Role is set at each login', 'xpressme') . "</td></tr>\n"; 190 212 foreach ($this->groupe_role as $groupe) { 191 213 $form .= "<tr>"; … … 207 229 $role_list .= "<option value=\"{$role}\"{$selected}>{$name}</option>\n"; 208 230 } 209 if ( $group_has_role ) 210 $role_list .= '<option value="">' . __('— No role for this blog —', 'xpressme') . "</option>\n"; 211 else 212 $role_list .= '<option value="" selected="selected">' . __('— No role for this blog —', 'xpressme') . "</option>\n"; 213 $form .= $role_list . "</select>\n</td></tr>\n"; 231 if ( $group_has_role ) { 232 $role_list .= '<option value="default">' . __('Default Role of WordPress', 'xpressme') . "</option>\n"; 233 $role_list .= '<option value="">' . __('Group User Doesn\'t Register', 'xpressme') . "</option>\n"; 234 } else { 235 if ($select_value == 'default'){ 236 $role_list .= '<option value="default" selected="selected">' . __('Default Role of WordPress', 'xpressme') . "</option>\n"; 237 $role_list .= '<option value="">' . __('Group User Doesn\'t Register', 'xpressme') . "</option>\n"; 238 } else { 239 $role_list .= '<option value="default">' . __('Default Role of WordPress', 'xpressme') . "</option>\n"; 240 $role_list .= '<option value="" selected="selected">' . __('Group User Doesn\'t Register', 'xpressme') . "</option>\n"; 241 } 242 } 243 $form .= $role_list . "</select>\n</td>"; 244 if ($groupe->login_all){ 245 $form .= '<td> <input type="checkbox" name="login_all_gid_' . $groupe->groupid . '" value="1" checked ></td>'; 246 } else { 247 $form .= '<td> <input type="checkbox" name="login_all_gid_' . $groupe->groupid . '" value="1"></td>'; 248 } 249 $form .= "</tr>\n"; 214 250 } 215 251 $form .= "</table></td></tr>\n"; … … 220 256 function option_page() 221 257 { 222 /* 223 $script = <<< _TAB_ 224 <script type="text/javascript"> 225 $(function() { 226 $('#jqtab-example2 > ul').tabs({fxFade:true,fxSpeed:'fast'}); 227 }); 228 </script> 229 230 <div id="jqtab-example2"> 231 <ul> 232 <li><a href="#tab2-1"><span>JavaScript</span></a></li> 233 <li><a href="#tab2-2"><span>Document</span></a></li> 234 <li><a href="#tab2-3"><span>Links</span></a></li> 235 </ul> 236 237 <div id="tab2-1"> 238 $('#jqtab-example1 > ul')<br> 239 .tabs({ fxFade: true, fxSpeed: 'fast' }); 240 </div> 241 242 <div id="tab2-2"> 243 �E��E��E�\�E�b�E�htabs�E�̈��E��E�A�E�t�E�F�E�C�E�h�E�G�E�t�E�F�E�N�E�gfxFade�E�ƃG�E�t�E�F�E�N�E�g�E�X�E�s�E�[�E�hfxSpeed 244 ("slow", "normal", "fast" ,�E�܂��E�̓~�E��E��E�b) �E��E�w�E�肵�E�Ă��E�܂��E�B 245 </div> 246 247 <div id="tab2-3"> 248 �E�\�E�[�E�X 249 </div> 250 </div>; 251 _TAB_; 252 253 echo $script; 254 */ 258 255 259 if (!empty($_POST['submit_update'])) { 256 260 $this->ReadPostData();
Note: See TracChangeset
for help on using the changeset viewer.