WordPress.org

Plugin Directory

Changeset 628370


Ignore:
Timestamp:
11/21/12 23:53:35 (17 months ago)
Author:
ssamture
Message:

1.2.1 Released.

Location:
mh-board/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • mh-board/trunk/includes/mh-functions.php

    r627983 r628370  
    352352    $category =@ wp_get_object_terms($post->ID,'board_cat'); 
    353353 
    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); 
    355355 
    356356    $mh_board_permission = empty($mh_board_per_o[mh_get_user_role()]['read']) ? false : true; 
     
    359359    } 
    360360} 
     361add_action('mh_board_write_permission','mh_board_write_permission'); 
     362function 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} 
    361376?> 
  • mh-board/trunk/includes/mh-post-type.php

    r625099 r628370  
    131131        case "mhauthor" : 
    132132            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; 
    135140            } 
    136             echo get_the_author($post->post_author); 
     141            echo $author.'('.$email.')'; 
    137142            break; 
    138143        case "count": 
  • mh-board/trunk/mh-board.php

    r627983 r628370  
    1616 * Author:      MinHyeong Lim 
    1717 * Author URI:  http://ssamture.net 
    18  * Version:     1.2 
     18 * Version:     1.2.1 
    1919 * Text Domain: mhboard 
    2020 * Domain Path: /mhb-languages/ 
    2121 */ 
    22 define('MH_BOARD_VERSION','1.2'); 
     22define('MH_BOARD_VERSION','1.2.1'); 
    2323define('MH_BOARD_UPDATE_URL','http://ssamture.net/mh_board.xml'); 
    2424ini_set('memory_limit', -1); 
  • mh-board/trunk/mhb-languages/mhboard.po

    r627983 r628370  
    99"Content-Type: text/plain; charset=UTF-8\n" 
    1010"Content-Transfer-Encoding: 8bit\n" 
    11 "PO-Revision-Date: 2012-11-21 09:38+0900\n" 
     11"PO-Revision-Date: 2012-11-22 08:47+0900\n" 
    1212"Last-Translator: MinHyeong Lim <ssamture@gmail.com>\n" 
    1313"Language-Team: Minhyeong Lim <ssamture@gmail.com>\n" 
     
    207207msgstr "공지" 
    208208 
     209#includes/mh-functions.php:358,372 
     210msgid "Access Denied" 
     211msgstr "접근 권한이 없습니다." 
     212 
  • mh-board/trunk/readme.txt

    r627983 r628370  
    4242 
    4343== Changelog == 
    44 = 0.6.2 = 
    45 First released. 
    4644 
    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 
    5249 
    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. 
    5756 
    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'); 
    9362 
    9463= 1.0 = 
     
    10170* Bugfix : Etc. 
    10271 
    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 
    10874 
    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 
    11577 
     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 = 
     120First released. 
    116121== Upgrade Notice == 
    117122 
  • mh-board/trunk/templates/default/mhboard-write.php

    r627983 r628370  
    11<?php 
    22global $mh_board,$mh_board_options; 
     3if(isset($_GET['board_cat'])){ 
     4    do_action('mh_board_write_permission'); 
     5} 
    36$mh_default_category = $mh_board_options['mh_default_category']; 
    47 
     
    114117                <?php 
    115118                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); 
    117120                    $mh_board_permission = empty($mh_board_per_o[mh_get_user_role()]['write']) ? false : true; 
    118121                    if($mh_board_permission): 
  • mh-board/trunk/templates/style.css

    r627983 r628370  
    7878    width:100%; 
    7979    height:260px; 
     80    background-color:#fff; 
    8081} 
    8182#mh-board thead th{ 
Note: See TracChangeset for help on using the changeset viewer.