diff options
author | Friendika <info@friendika.com> | 2011-10-24 17:25:49 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-10-24 17:25:49 -0700 |
commit | 790c4a4e1a583b9e8ad909f8d562a62c8d700ad5 (patch) | |
tree | 735f346b698a40d306f0c621cc6cd1d03a982f1f | |
parent | 3b33c0d075fcce7f10468ad749742950077768b3 (diff) | |
download | volse-hubzilla-790c4a4e1a583b9e8ad909f8d562a62c8d700ad5.tar.gz volse-hubzilla-790c4a4e1a583b9e8ad909f8d562a62c8d700ad5.tar.bz2 volse-hubzilla-790c4a4e1a583b9e8ad909f8d562a62c8d700ad5.zip |
tag display with item
-rw-r--r-- | include/text.php | 9 | ||||
-rw-r--r-- | mod/tagger.php | 4 |
2 files changed, 12 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php index ba6c2531f..a9763fd21 100644 --- a/include/text.php +++ b/include/text.php @@ -787,6 +787,15 @@ function prepare_body($item,$attach = false) { $s .= '<div class="clear"></div></div>'; } + $arr = explode(',',$item['tag']); + if(count($arr)) { + $s .= '<div class="body-tag">'; + foreach($arr as $r) { + $s .= bbcode($r) . ' '; + } + $s .= '</div>'; + } + $prep_arr = array('item' => $item, 'html' => $s); call_hooks('prepare_body_final', $prep_arr); return $prep_arr['html']; diff --git a/mod/tagger.php b/mod/tagger.php index 4127aaadd..7114ed0ce 100644 --- a/mod/tagger.php +++ b/mod/tagger.php @@ -11,7 +11,9 @@ function tagger_content(&$a) { return; } - $term= notags(trim($_GET['term'])); + $term = notags(trim($_GET['term'])); + // no commas allowed + $term = str_replace(',','',$term); if(! $term) return; |