当前位置: 首页>>代码示例>>PHP>>正文


PHP forum::trackTopics方法代码示例

本文整理汇总了PHP中forum::trackTopics方法的典型用法代码示例。如果您正苦于以下问题:PHP forum::trackTopics方法的具体用法?PHP forum::trackTopics怎么用?PHP forum::trackTopics使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在forum的用法示例。


在下文中一共展示了forum::trackTopics方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: postReply

    }
    $message = $forum['post_text'];
    //$message = $bbcode->bbcodeParser($message);
    //$message = bbcode_nl2br($message);
    /*
    		postmod
    		<li class="edit-icon"><a href="" title="Edit post"><span>Edit post</span></a></li>
    						<li class="delete-icon"><a href="" title="Delete post"><span>Delete post</span></a></li>
    						<li class="report-icon"><a href="" title="Report this post"><span>Report this post</span></a></li>
    						<li class="info-icon"><a href="" title="Information"><span>Information</span></a></li>
    						<li class="quote-icon"><a href="" title="Reply with quote"><span>Reply with quote</span></a></li>
    */
    $roster->tpl->assign_block_vars('forums', array('POST_SUBJECT' => $forum['post_subject'], 'POST_TIME' => date("F j, Y, g:i a", $forum['post_time']), 'POST_USERNAME' => $forum['post_username'], 'POST_MOD' => '', 'POST_BG' => $roster->switch_row_class(), 'POST_ADMIN' => $bg, 'POST_TEXT' => $message, 'POST_ID' => $forum['post_id'], 'TOPIC_ID' => $forum['topic_id'], 'FORUM_ID' => $forum['forum_id']));
    $f_id = $forum['forum_id'];
}
$functions->trackTopics('', $f_id, $_GET['tid'], $post_time = 0, $user_id = 0);
$roster->tpl->set_filenames(array('posts_main' => $addon['basename'] . '/forum_posts.html'));
$roster->tpl->display('posts_main');
if (!$roster->auth->allow_login) {
    $roster->auth->message = 'Sorry you must be logged in to post a reply';
    echo $roster->auth->getLoginForm();
    $roster->auth->message = '';
} else {
    $roster->tpl->assign_vars(array('S_ADD_TOPIC' => false, 'S_HTML_ENABLE' => false, 'S_TOPIC_HTML' => $addon['config']['forum_html_posts'], 'S_POSTER' => $roster->auth->user['usr'], 'S_POSTER_ID' => $roster->auth->user['id'], 'U_ADD_FORMACTION' => '', 'U_FORM_NAME' => 'add_comment', 'U_TEXT_NAME' => 'text', 'U_TYPE_ID' => $id));
    $roster->tpl->set_filenames(array('comments_add' => $addon['basename'] . '/forum_reply.html'));
    $roster->tpl->display('comments_add');
}
function postReply()
{
    global $roster, $addon;
    if (isset($_POST['html']) && $_POST['html'] == 1 && $roster->config['forum_html_posts'] >= 0) {
开发者ID:Sajaki,项目名称:wowroster_dev,代码行数:31,代码来源:topic.php


注:本文中的forum::trackTopics方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。