+Wed, 12 Jul 2006 Florent Bruneau <florent.bruneau@m4x.org>
+ * Add the list of subscriptions after the spool
+
Tue, 11 Jul 2006 Florent Bruneau <florent.bruneau@m4x.org>
* Bugfix: body conversion from unknown charset
return false;
}
}
+ if (count($this->profile['subscribe']) > 0) {
+ $this->_newGroup(false);
+ }
return true;
}
return true;
}
- function _newGroup()
+ function _newGroup($showNew = true)
{
$this->_require('groups');
$this->groups = new BananaGroups(BANANA_GROUP_SUB);
- if ($this->groups->type == BANANA_GROUP_SUB) {
+ if ($showNew && $this->groups->type == BANANA_GROUP_SUB) {
$this->newgroups = new BananaGroups(BANANA_GROUP_NEW);
}
}
$res .= '</td></tr>';
}
- $res .= '<tr><th colspan="2">'._b_('Apercu').'</th></tr>';
+ $res .= '<tr><th colspan="2">' . _b_('Apercu de ')
+ . makeHREF(Array('group' => $banana->state['group']),
+ $banana->state['group'])
+ . '</th></tr>';
$ndx = $banana->spool->getndx($this->id);
- $res .= '<tr><td class="thrd" colspan="2">'.$banana->spool->to_html($ndx-$banana->tbefore, $ndx+$banana->tafter, $ndx).'</td></tr>';
-
+ $res .= '<tr><td class="thrd" colspan="2">'
+ . $banana->spool->to_html($ndx-$banana->tbefore, $ndx+$banana->tafter, $ndx)
+ . '</td></tr>';
return $res.'</table>';
}
}
$res .= '<tr><td colspan="3">'._b_('Aucun message dans ce forum').'</td></tr>';
}
+ global $banana;
+ if (is_object($banana->groups)) {
+ $res .= '<tr><td colspan="3" class="subs">'
+ . $banana->groups->to_html()
+ . '</td></tr>';
+ }
+ $res .= '<tr><th colspan="3" class="subs">'
+ . makeHREF(Array('subscribe' => 1), 'GĂ©rer mes abonnements')
+ . '</th></tr>';
+
return $res .= '</table>';
}
table.banana_thread div.tree { float: left; padding-right: 0.3em; }
table.banana_thread span.cur { font-style: italic; }
+table.banana_thread table { border: 0px; padding: 0px; margin: 0px; width: 100%; }
+table.banana_thread td.subs { padding: 0%; }
/** MESSAGE VIEW **/