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


PHP forum::getCrumbsa方法代码示例

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


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

示例1: exit

/**
 * WoWRoster.net WoWRoster
 *
 * @copyright  2002-2011 WoWRoster.net
 * @license    http://www.gnu.org/licenses/gpl.html   Licensed under the GNU General Public License v3.
 * @version    SVN: $Id$
 * @link       http://www.wowroster.net
 * @package    News
 */
if (!defined('IN_ROSTER')) {
    exit('Detected invalid access to this file!');
}
if (!$roster->auth->getAuthorized($addon['config']['forum_start_topic'])) {
    echo $roster->auth->getLoginForm($addon['config']['forum_start_topic']);
    return;
    //To the addon framework
}
include $addon['dir'] . 'inc/function.lib.php';
$functions = new forum();
$x = $functions->getCrumbsa($_GET['id']);
// Assign template vars
$roster->tpl->assign_vars(array('S_ADD_TOPIC' => false, 'CRUMB' => $x, 'U_BACK' => makelink('guild-forum'), 'S_HTML_ENABLE' => false, 'S_TOPIC_HTML' => $addon['config']['forum_html_posts'], 'S_POSTER' => $_COOKIE['roster_user'], 'S_TOPIC_ACCESS' => $roster->auth->rosterAccess(array('name' => 'access', 'value' => '0')), 'U_FORMACTION' => makelink('guild-forum-forum&id=' . $_GET['id'])));
if ($addon['config']['forum_html_posts'] >= 0) {
    $roster->tpl->assign_var('S_HTML_ENABLE', true);
}
if ($addon['config']['forum_nicedit'] > 0) {
    roster_add_js('js/nicEdit.js');
    roster_add_js('bkLib.onDomLoaded(function() { nicEditors.allTextAreas({xhtml : true, fullPanel : true, iconsPath : \'' . $roster->config['img_url'] . 'nicEditorIcons.gif\'}) });', 'inline', 'header', false, false);
}
$roster->tpl->set_filenames(array('topic' => $addon['basename'] . '/topic_new.html'));
$roster->tpl->display('topic');
开发者ID:Sajaki,项目名称:wowroster,代码行数:31,代码来源:addtopic.php

示例2: forum

<?php

//$addon = getaddon('forum');
include $addon['dir'] . 'inc/function.lib.php';
$functions = new forum();
//roster_add_css(ROSTER_BASE . 'pages/forum/style.css','module');
//$view->extend('forum/forum_template', 'content', array('title' => $view->lang->get('forum')->get('forums')));
//
$forums = $functions->getForums();
$x = $functions->getCrumbsa('');
$roster->tpl->assign_vars(array('CRUMB' => $x));
/*
echo '<pre>';
print_r($forums);
echo '</pre>';
*/
foreach ($forums as $parent_id => $forum) {
    if ($roster->auth->getAuthorized($forum['access'])) {
        $roster->tpl->assign_block_vars('forums', array('FORUM_ID' => $forum['forumid'], 'LOCKED' => $forum['locked'], 'TITLE' => $forum['title']));
    }
    foreach ($forum['forums'] as $forum_id => $data) {
        if ($roster->auth->getAuthorized($data['access'])) {
            $is_read = false;
            //$functions->get_topic_tracking($forum['forum_id'], $forum['topicid'], $forum['r_date']);
            $icon = '';
            if (!empty($data['icon'])) {
                if (file_exists($roster->config['img_url'] . 'class/' . $data['icon'] . '.png')) {
                    $icon = $roster->config['img_url'] . 'class/' . $data['icon'] . '.png';
                } else {
                    if (remoteFileExists($roster->config['interface_url'] . 'Interface/Icons/' . $data['icon'] . '.png')) {
                        $icon = $roster->config['interface_url'] . 'Interface/Icons/' . $data['icon'] . '.png';
开发者ID:Sajaki,项目名称:wowroster_dev,代码行数:31,代码来源:index.php


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