本文整理汇总了PHP中Comments::parse_comment_data方法的典型用法代码示例。如果您正苦于以下问题:PHP Comments::parse_comment_data方法的具体用法?PHP Comments::parse_comment_data怎么用?PHP Comments::parse_comment_data使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Comments
的用法示例。
在下文中一共展示了Comments::parse_comment_data方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isset
);
$smarty->assign('comment_topicsmiley', $comment_info['smiley']);
} else {
$smarty->assign('comment_title', isset($_REQUEST['comments_title']) ? $_REQUEST['comments_title'] : '');
$smarty->assign('comment_data', isset($_REQUEST['comments_data']) ? $_REQUEST['comments_data'] : '');
$smarty->assign('comment_topictype', isset($_REQUEST['comment_topictype']) ? $_REQUEST['comment_topictype'] : '');
$smarty->assign('comment_topictype', 'n');
$smarty->assign('comment_topicsummary', '');
$smarty->assign('comment_topicsmiley', '');
}
$smarty->assign('comment_preview', 'n');
if (isset($_REQUEST['comments_previewComment'])) {
check_ticket('view-forum');
$smarty->assign('comments_preview_title', $_REQUEST['comments_title']);
$smarty->assign('comments_preview_data', ($commentslib->parse_comment_data($_REQUEST['comments_data'])));
$smarty->assign('comment_title', $_REQUEST['comments_title']);
$smarty->assign('comment_data', $_REQUEST['comments_data']);
$smarty->assign('comment_topictype', $_REQUEST['comment_topictype']);
if ($forum_info['topic_summary'] == 'y') $smarty->assign('comment_topicsummary', $_REQUEST['comment_topicsummary']);
if ($forum_info['topic_smileys'] == 'y') $smarty->assign('comment_topicsmiley', $_REQUEST['comment_topicsmiley']);
$smarty->assign('openpost', 'y');
$smarty->assign('comment_preview', 'y');
}
// Check for settings
if (!isset($_REQUEST['comments_per_page'])) {
$_REQUEST['comments_per_page'] = $comments_per_page;
}
if (!isset($_REQUEST['thread_sort_mode'])) {
示例2: tra
} else {
$comment_info["title"] = "";
$_REQUEST["comments_title"] = "";
}
}
$smarty->assign('comment_title', ($prefs['forum_comments_no_title_prefix'] != 'y' ? tra('Re:') . ' ' : '') . $comment_info["title"]);
$smarty->assign('comments_reply_threadId', $_REQUEST["comments_reply_threadId"]);
} else {
$smarty->assign('comment_title', '');
$smarty->assign('comment_rating', '');
$smarty->assign('comment_data', '');
}
$smarty->assign('comment_preview', 'n');
if (isset($_REQUEST["comments_previewComment"]) || isset($msgError)) {
$smarty->assign('comments_preview_title', $_REQUEST["comments_title"]);
$smarty->assign('comments_preview_data', $commentslib->parse_comment_data(strip_tags($_REQUEST["comments_data"])));
$smarty->assign('comment_title', $_REQUEST["comments_title"]);
$smarty->assign('comment_rating', $_REQUEST["comment_rating"]);
$smarty->assign('comment_data', $_REQUEST["comments_data"]);
if (isset($_REQUEST["comments_previewComment"])) {
$smarty->assign('comment_preview', 'y');
}
}
// Always show comments when a display setting has been explicitely specified
if (isset($_REQUEST['comments_per_page']) || isset($_REQUEST['thread_style']) || isset($_REQUEST['thread_sort_mode'])) {
$comments_show = 'y';
}
if (!isset($_REQUEST["comments_commentFind"])) {
$_REQUEST["comments_commentFind"] = '';
} else {
$comments_show = 'y';
示例3: tra
$comment_title = tra('Re:') . ' ' . $comment_info["title"];
} else {
$comment_title = $comment_info["title"];
}
$smarty->assign('comment_title', $comment_title);
$smarty->assign('comments_reply_threadId', $_REQUEST["comments_reply_threadId"]);
} else {
$smarty->assign('comment_title', '');
$smarty->assign('comment_rating', '');
$smarty->assign('comment_data', '');
}
$smarty->assign('comment_preview', 'n');
if (isset($_REQUEST["comments_previewComment"]) || isset($_REQUEST["comments_postComment"])) {
$comment_preview = array();
$comment_preview['title'] = $_REQUEST["comments_title"];
$comment_preview['parsed'] = $commentslib->parse_comment_data(strip_tags($_REQUEST["comments_data"]));
$comment_preview['rating'] = $_REQUEST["comment_rating"];
$comment_preview['commentDate'] = $tikilib->now;
if (isset($_REQUEST["anonymous_name"])) {
$comment_preview['anonymous_name'] = $_REQUEST["anonymous_name"];
}
if (isset($_REQUEST["anonymous_email"])) {
$comment_preview['email'] = $_REQUEST["anonymous_email"];
}
if (isset($_REQUEST["anonymous_website"])) {
$comment_preview['website'] = $_REQUEST["anonymous_website"];
}
$smarty->assign('comment_preview_data', $comment_preview);
if (isset($_REQUEST["comments_previewComment"])) {
$smarty->assign('comment_preview', 'y');
}