Lines Matching +full:comments +(+path:plugin +path:discussion) -(+path:plugin +path:discussion +path:lang)

19                 'desc'   => 'returns the header of the comments column for pagelist',
24 'desc' => 'returns the link to the discussion section with number of comments',
27 'number of comments (optional)' => 'integer'),
32 'desc' => 'returns pages with discussion sections, sorted by recent comments',
40 'desc' => 'returns recently added or edited comments individually',
69 $cfile = metaFN($id, '.comments');
70 $comments = unserialize(io_readFile($cfile, false));
72 $num = $comments['number'];
73 if ((!$comments['status']) || (($comments['status'] == 2) && (!$num))) return '';
81 $comment = $num.' '.$this->getLang('comments');
89 * Returns an array of pages with discussion sections, sorted by recent comments
108 // add pages with comments to result
116 $file = metaFN($id, '.comments');
117 if (!@file_exists($file)) continue; // skip if no comments file
122 …|| (($status == 2) && (!$number))) continue; // skip if comments are off or closed without comments
135 'comments' => $this->td($id, $number),
152 * Returns an array of recently added comments to a given page or namespace
249 $data = unserialize(io_readFile(metaFN($recent['id'], '.comments'), false));
260 if (!isset($data['comments'][$tcid])) return false;
262 if ($data['comments'][$tcid]['show'] != 1) return false;
264 $parent_id = $data['comments'][$tcid]['parent'];
268 if (is_array($data['comments'][$cid]['user'])) {
269 $recent['name'] = $data['comments'][$cid]['user']['name'];
271 $recent['name'] = $data['comments'][$cid]['name'];
273 $recent['desc'] = strip_tags($data['comments'][$cid]['xhtml']);