Exemple #1
0
    $topicToolbar = smile::topicToolbar($emoid_selected, $fbConfig->rtewidth);
    echo $topicToolbar;
    ?>
            </td>
        </tr>
            <?php 
}
?>

        <?php 
if ($fbConfig->rtewidth == 0) {
    $useRte = 0;
} else {
    $useRte = 1;
}
$fbTextArea = smile::fbWriteTextarea('message', $htmlText, $fbConfig->rtewidth, $fbConfig->rteheight, $useRte, $fbConfig->disemoticons);
echo $fbTextArea;
if ($setFocus == 0) {
    echo '<tr><td style="display:none;"><script type="text/javascript">document.postform.message.focus();</script></td></tr>';
}
//check if this user is already subscribed to this topic but only if subscriptions are allowed
if ($fbConfig->allowsubscriptions == 1) {
    if ($id == 0) {
        $fb_thread = -1;
    } else {
        $kunena_db->setQuery("SELECT thread FROM #__fb_messages WHERE id='{$id}'");
        $fb_thread = $kunena_db->loadResult();
    }
    $kunena_db->setQuery("SELECT thread FROM #__fb_subscriptions WHERE userid='{$kunena_my->id}' AND thread='{$fb_thread}'");
    $fb_subscribed = $kunena_db->loadResult();
    if ($fb_subscribed == "" || $id == 0) {