Browse Source

tag display with item

pull/1/head
Friendika 10 years ago
parent
commit
790c4a4e1a
2 changed files with 12 additions and 1 deletions
  1. +9
    -0
      include/text.php
  2. +3
    -1
      mod/tagger.php

+ 9
- 0
include/text.php View File

@ -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'];


+ 3
- 1
mod/tagger.php View File

@ -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;


Loading…
Cancel
Save