diff --git a/change_log.txt b/change_log.txt index 339161f..d3cb323 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,6 +1,7 @@ v1.0.2 -Category support added for compliments - ADDED Compliment user settings page - ADDED +Linebreaks are removed on compliment messages - FIXED +Compliments message links are clickable - ADDED v1.0.1 Use singular name instead of slug name - FIXED diff --git a/css/bp-compliments.css b/css/bp-compliments.css index 2a71d42..200bad3 100644 --- a/css/bp-compliments.css +++ b/css/bp-compliments.css @@ -176,52 +176,4 @@ width: 32px; height: 32px; margin: 0 auto; -} - -.comp-modal-category { - border-bottom: 1px solid #ddd; - list-style-type: none; - font-size: 14px; -} - -.comp-modal-category > li { - float: left; - margin-bottom: -1px; -} - -.comp-modal-category > li > a { - position: relative; - display: block; - padding: 10px 15px; - margin-right: 2px; - line-height: 1.42857143; - border: 1px solid transparent; - border-radius: 4px 4px 0 0; -} - -.comp-modal-category > li > a:hover { - border-color: #eee #eee #ddd; -} - -.comp-modal-category > li.selected > a, -.comp-modal-category > li.selected > a:hover, -.comp-modal-category > li.selected > a:focus { - color: #555; - cursor: default; - background-color: #fff; - border: 1px solid #ddd; - border-bottom-color: transparent; - opacity: 1; - font-weight: normal; -} - -.comp-modal-category:before, -.comp-modal-category:after { - display: table; - content: ""; - line-height: 0; -} - -.comp-modal-category:after { - clear: both; -} +} \ No newline at end of file diff --git a/includes/bp-compliments-forms.php b/includes/bp-compliments-forms.php index f747008..a6328c1 100644 --- a/includes/bp-compliments-forms.php +++ b/includes/bp-compliments-forms.php @@ -14,9 +14,8 @@ * * @param int $pid The post ID. * @param int $receiver_id Compliment receiver ID. - * @param int $category_id Compliment category ID. */ -function bp_compliments_modal_form($pid = 0, $receiver_id = 0, $category_id = 0) { +function bp_compliments_modal_form($pid = 0, $receiver_id = 0 ) { if (!$receiver_id && bp_displayed_user_id()) { $receiver_id = bp_displayed_user_id(); } @@ -27,56 +26,12 @@ function bp_compliments_modal_form($pid = 0, $receiver_id = 0, $category_id = 0)