Changeset 628370
- Timestamp:
- 11/21/2012 11:53:35 PM (13 years ago)
- Location:
- mh-board/trunk
- Files:
-
- 8 edited
-
includes/mh-functions.php (modified) (2 diffs)
-
includes/mh-post-type.php (modified) (1 diff)
-
mh-board.php (modified) (1 diff)
-
mhb-languages/mhboard-ko_KR.mo (modified) (previous)
-
mhb-languages/mhboard.po (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
templates/default/mhboard-write.php (modified) (2 diffs)
-
templates/style.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
mh-board/trunk/includes/mh-functions.php
r627983 r628370 352 352 $category =@ wp_get_object_terms($post->ID,'board_cat'); 353 353 354 $mh_board_per_o = get_option('mh_board_permission_'.$category[0]-> slug);354 $mh_board_per_o = get_option('mh_board_permission_'.$category[0]->term_id); 355 355 356 356 $mh_board_permission = empty($mh_board_per_o[mh_get_user_role()]['read']) ? false : true; … … 359 359 } 360 360 } 361 add_action('mh_board_write_permission','mh_board_write_permission'); 362 function mh_board_write_permission(){ 363 global $post; 364 365 if(isset($_GET['board_cat'])){ 366 $category =@ get_term_by('slug',$_GET['board_cat'],'board_cat'); 367 368 $mh_board_per_o = get_option('mh_board_permission_'.$category->term_id); 369 370 $mh_board_permission = empty($mh_board_per_o[mh_get_user_role()]['write']) ? false : true; 371 if(!$mh_board_permission){ 372 wp_die(__('Access Denied','mhboard')); 373 } 374 } 375 } 361 376 ?> -
mh-board/trunk/includes/mh-post-type.php
r625099 r628370 131 131 case "mhauthor" : 132 132 if($post->post_author == 0){ 133 $author = get_post_meta($post->ID,'guest_info',true); 134 echo $author['guest_name']; 133 $guest_info = get_post_meta($post->ID,'guest_info',true); 134 $email = $guest_info['guest_email']; 135 $author = $guest_info['guest_name']; 136 }else{ 137 $user_data = get_userdata($post->post_author); 138 $author = $user_data->display_name; 139 $email = $user_data->user_email; 135 140 } 136 echo get_the_author($post->post_author);141 echo $author.'('.$email.')'; 137 142 break; 138 143 case "count": -
mh-board/trunk/mh-board.php
r627983 r628370 16 16 * Author: MinHyeong Lim 17 17 * Author URI: http://ssamture.net 18 * Version: 1.2 18 * Version: 1.2.1 19 19 * Text Domain: mhboard 20 20 * Domain Path: /mhb-languages/ 21 21 */ 22 define('MH_BOARD_VERSION','1.2 ');22 define('MH_BOARD_VERSION','1.2.1'); 23 23 define('MH_BOARD_UPDATE_URL','http://ssamture.net/mh_board.xml'); 24 24 ini_set('memory_limit', -1); -
mh-board/trunk/mhb-languages/mhboard.po
r627983 r628370 9 9 "Content-Type: text/plain; charset=UTF-8\n" 10 10 "Content-Transfer-Encoding: 8bit\n" 11 "PO-Revision-Date: 2012-11-2 1 09:38+0900\n"11 "PO-Revision-Date: 2012-11-22 08:47+0900\n" 12 12 "Last-Translator: MinHyeong Lim <ssamture@gmail.com>\n" 13 13 "Language-Team: Minhyeong Lim <ssamture@gmail.com>\n" … … 207 207 msgstr "공지" 208 208 209 #includes/mh-functions.php:358,372 210 msgid "Access Denied" 211 msgstr "접근 권한이 없습니다." 212 -
mh-board/trunk/readme.txt
r627983 r628370 42 42 43 43 == Changelog == 44 = 0.6.2 =45 First released.46 44 47 = 0.6.2 = 48 * New : Automatic link. 49 * New : Link re-create when modify the permalink. 50 * Bugfix : Non category error. 51 * Bugfix. 45 = 1.2.1 = 46 * Bugfix : Permission Bugfix. 47 * New : Add email column in admin 48 * New : Write textarea background 52 49 53 = 0.7.0 = 54 * New : Add nonmembers writing permission set. 55 * New : Writing strengthening security. 56 * New : Add editor. 50 = 1.2 = 51 * Bugfix : Permission Bugfix. 52 * Change : If wrting in the category list, category select box hide. 53 * Change : Category select box hide in the Edit view. 54 * New : add list button. 55 * New : add cancel button. 57 56 58 = 0.7.1 = 59 * Bugfix : Link using the default permalink bug fixes 60 61 = 0.7.3 = 62 * Bugfix : Admin panel, the entire board was missing bug fixes. 63 64 = 0.8.0 = 65 * New : Category display/hide 66 * New : Reply display/hide 67 * New : Private article did not go to the dashboard so that the administrator can change. 68 69 = 0.9.0 = 70 * New : Button style 71 * New : support responsive web 72 * New : Shortcode to generate support 73 74 = 0.9.1 = 75 * Bugfix. 76 77 = 0.9.2 = 78 * Bugfix. 79 80 = 0.9.3 = 81 * Bugfix : limit loading 82 83 = 0.9.4 = 84 * Bugfix : add & edit link 85 * New : If you are an administrator, a private Posts Comments can be registered to add 86 * New : permalink for MH Board 87 88 = 0.9.5 = 89 * New : attachment 90 91 = 0.9.6 = 92 * Bugfix : function optimize 57 = 1.1 = 58 * New : add permission.게시판 권한 기능 추가 59 * New : Default Category setting. 글 쓰기 시 기본 카테고리 지정 추가 60 * New : Reply comment. 61 * New : add function for devloper. get_recent_mh_board('board_cat slug', 'count'); 93 62 94 63 = 1.0 = … … 101 70 * Bugfix : Etc. 102 71 103 = 1.1 = 104 * New : add permission.게시판 권한 기능 추가 105 * New : Default Category setting. 글 쓰기 시 기본 카테고리 지정 추가 106 * New : Reply comment. 107 * New : add function for devloper. get_recent_mh_board('board_cat slug', 'count'); 72 = 0.9.6 = 73 * Bugfix : function optimize 108 74 109 = 1.2 = 110 * Bugfix : Permission Bugfix. 111 * Change : If wrting in the category list, category select box hide. 112 * Change : Category select box hide in the Edit view. 113 * New : add list button. 114 * New : add cancel button. 75 = 0.9.5 = 76 * New : attachment 115 77 78 = 0.9.4 = 79 * Bugfix : add & edit link 80 * New : If you are an administrator, a private Posts Comments can be registered to add 81 * New : permalink for MH Board 82 83 = 0.9.3 = 84 * Bugfix : limit loading 85 86 = 0.9.2 = 87 * Bugfix. 88 89 = 0.9.1 = 90 * Bugfix. 91 92 = 0.9.0 = 93 * New : Button style 94 * New : support responsive web 95 * New : Shortcode to generate support 96 97 = 0.8.0 = 98 * New : Category display/hide 99 * New : Reply display/hide 100 * New : Private article did not go to the dashboard so that the administrator can change. 101 102 = 0.7.3 = 103 * Bugfix : Admin panel, the entire board was missing bug fixes. 104 105 = 0.7.1 = 106 * Bugfix : Link using the default permalink bug fixes 107 108 = 0.7.0 = 109 * New : Add nonmembers writing permission set. 110 * New : Writing strengthening security. 111 * New : Add editor. 112 113 = 0.6.2 = 114 * New : Automatic link. 115 * New : Link re-create when modify the permalink. 116 * Bugfix : Non category error. 117 * Bugfix. 118 119 = 0.6.2 = 120 First released. 116 121 == Upgrade Notice == 117 122 -
mh-board/trunk/templates/default/mhboard-write.php
r627983 r628370 1 1 <?php 2 2 global $mh_board,$mh_board_options; 3 if(isset($_GET['board_cat'])){ 4 do_action('mh_board_write_permission'); 5 } 3 6 $mh_default_category = $mh_board_options['mh_default_category']; 4 7 … … 114 117 <?php 115 118 foreach($categories as $category){ 116 $mh_board_per_o = get_option('mh_board_permission_'.$category-> slug);119 $mh_board_per_o = get_option('mh_board_permission_'.$category->term_id); 117 120 $mh_board_permission = empty($mh_board_per_o[mh_get_user_role()]['write']) ? false : true; 118 121 if($mh_board_permission): -
mh-board/trunk/templates/style.css
r627983 r628370 78 78 width:100%; 79 79 height:260px; 80 background-color:#fff; 80 81 } 81 82 #mh-board thead th{
Note: See TracChangeset
for help on using the changeset viewer.