• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP visitedforums函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中visitedforums函数的典型用法代码示例。如果您正苦于以下问题:PHP visitedforums函数的具体用法?PHP visitedforums怎么用?PHP visitedforums使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: intval

        $groupnames[$row['tid']]['fid'] = $row['fid'];
        $groupnames[$row['tid']]['views'] = $row['views'];
    }
}
$stemplate = $sortexpiration = null;
if ($_G['forum']['threadsorts']['types'] && $sortoptionarray && $templatearray) {
    $sortid = intval($_G['gp_sortid']);
    $sortlistarray = showsorttemplate($_G['gp_sortid'], $_G['fid'], $sortoptionarray, $templatearray, $_G['forum_threadlist'], $threadids);
    $stemplate = $sortlistarray['template'];
    $sortexpiration = $sortlistarray['expiration'];
    if (($_G['gp_searchoption'] || $_G['gp_searchsort']) && empty($searchsorttids)) {
        $_G['forum_threadlist'] = $multipage = '';
    }
}
$separatepos = $separatepos ? $separatepos + 1 : 0;
$_G['setting']['visitedforums'] = $_G['setting']['visitedforums'] ? visitedforums() : '';
$oldthreads = array();
$oldtopics = isset($_G['cookie']['oldtopics']) ? $_G['cookie']['oldtopics'] : 'D';
if ($_G['setting']['visitedthreads'] && $oldtopics) {
    $oldtids = array_slice(explode('D', $oldtopics), 0, $_G['setting']['visitedthreads']);
    $oldtidsnew = array();
    foreach ($oldtids as $oldtid) {
        $oldtid && ($oldtidsnew[] = $oldtid);
    }
    if ($oldtidsnew) {
        $query = DB::query("SELECT tid, subject FROM " . DB::table('forum_thread') . " WHERE tid IN (" . dimplode($oldtidsnew) . ")");
        while ($oldthread = DB::fetch($query)) {
            $oldthreads[$oldthread['tid']] = $oldthread['subject'];
        }
    }
}
开发者ID:kleitz,项目名称:sports,代码行数:31,代码来源:forum_forumdisplay.php


示例2: gmdate

    }
    $thread['dateline'] = gmdate($dateformat, $thread['dateline'] + $timeoffset * 3600);
    $thread['lastpost'] = gmdate("{$dateformat} {$timeformat}", $thread['lastpost'] + $timeoffset * 3600);
    if (in_array($thread['displayorder'], array(1, 2, 3))) {
        $thread['id'] = 'stickthread_' . $thread['tid'];
        $separatepos++;
    } elseif (in_array($thread['displayorder'], array(4, 5))) {
        $thread['id'] = 'floatthread_' . $thread['tid'];
    } else {
        $thread['id'] = 'normalthread_' . $thread['tid'];
    }
    $iscircle && $thread['sgid'] && ($sgids[] = $thread['sgid']);
    $threadlist[] = $thread;
}
$separatepos = $separatepos ? $separatepos + 1 : ($announcement ? 1 : 0);
$visitedforums = $visitedforums ? visitedforums() : '';
$forumselect = $forummenu = '';
$typeselect = typeselect($typeid, '', 'onchange="if(this.options[this.selectedIndex].className) {this.form.action=this.form.action + \'&previewpost=yes&showpreview=no\';this.form.submit();}"');
$usesigcheck = $discuz_uid && $sigstatus ? 'checked="checked"' : '';
$allowpost = !$forum['postperm'] && $allowpost || $forum['postperm'] && forumperm($forum['postperm']) || !empty($forum['allowpost']);
$showpoll = $showtrade = $showreward = $showactivity = $showdebate = $showvideo = 0;
if ($forum['allowpostspecial']) {
    $showpoll = $forum['allowpostspecial'] & 1;
    $showtrade = $forum['allowpostspecial'] & 2;
    $showreward = isset($extcredits[$creditstrans]) && $forum['allowpostspecial'] & 4;
    $showactivity = $forum['allowpostspecial'] & 8;
    $showdebate = $forum['allowpostspecial'] & 16;
    $showvideo = $forum['allowpostspecial'] & 32 && $videoopen;
}
if ($allowpost) {
    $allowpostpoll = $allowpostpoll && $showpoll;
开发者ID:BGCX262,项目名称:zyyhong-svn-to-git,代码行数:31,代码来源:forumdisplay.php


示例3: forumperm

    $allowfastpost = false;
}
$_G['group']['allowpost'] = $_G['forum']['allowpost'] != -1 && (!$_G['forum']['postperm'] && $_G['group']['allowpost'] || $_G['forum']['postperm'] && forumperm($_G['forum']['postperm']) || $_G['forum']['allowpost']);
$_G['forum']['allowpostattach'] = isset($_G['forum']['allowpostattach']) ? $_G['forum']['allowpostattach'] : '';
$allowpostattach = $allowpostreply && ($_G['forum']['allowpostattach'] != -1 && ($_G['forum']['allowpostattach'] == 1 || !$_G['forum']['postattachperm'] && $_G['group']['allowpostattach'] || $_G['forum']['postattachperm'] && forumperm($_G['forum']['postattachperm'])));
if ($_G['group']['allowpost']) {
    $_G['group']['allowpostpoll'] = $_G['group']['allowpostpoll'] && $_G['forum']['allowpostspecial'] & 1;
    $_G['group']['allowposttrade'] = $_G['group']['allowposttrade'] && $_G['forum']['allowpostspecial'] & 2;
    $_G['group']['allowpostreward'] = $_G['group']['allowpostreward'] && $_G['forum']['allowpostspecial'] & 4 && isset($_G['setting']['extcredits'][$_G['setting']['creditstrans']]);
    $_G['group']['allowpostactivity'] = $_G['group']['allowpostactivity'] && $_G['forum']['allowpostspecial'] & 8;
    $_G['group']['allowpostdebate'] = $_G['group']['allowpostdebate'] && $_G['forum']['allowpostspecial'] & 16;
} else {
    $_G['group']['allowpostpoll'] = $_G['group']['allowposttrade'] = $_G['group']['allowpostreward'] = $_G['group']['allowpostactivity'] = $_G['group']['allowpostdebate'] = FALSE;
}
$_G['forum']['threadplugin'] = $_G['group']['allowpost'] && $_G['setting']['threadplugins'] ? is_array($_G['forum']['threadplugin']) ? $_G['forum']['threadplugin'] : dunserialize($_G['forum']['threadplugin']) : array();
$_G['setting']['visitedforums'] = $_G['setting']['visitedforums'] && $_G['forum']['status'] != 3 ? visitedforums() : '';
$relatedthreadlist = array();
$relatedthreadupdate = $tagupdate = FALSE;
$relatedkeywords = $tradekeywords = $_G['forum_firstpid'] = '';
if (!isset($_G['cookie']['collapse']) || strpos($_G['cookie']['collapse'], 'modarea_c') === FALSE) {
    $collapseimg['modarea_c'] = 'collapsed_no';
    $collapse['modarea_c'] = '';
} else {
    $collapseimg['modarea_c'] = 'collapsed_yes';
    $collapse['modarea_c'] = 'display: none';
}
$threadtag = array();
viewthread_updateviews($archiveid);
$_G['setting']['infosidestatus']['posts'] = $_G['setting']['infosidestatus'][1] && isset($_G['setting']['infosidestatus']['f' . $_G['fid']]['posts']) ? $_G['setting']['infosidestatus']['f' . $_G['fid']]['posts'] : $_G['setting']['infosidestatus']['posts'];
$postfieldsadd = $specialadd1 = $specialadd2 = $specialextra = '';
$tpids = array();
开发者ID:MCHacker,项目名称:discuz-docker,代码行数:31,代码来源:forum_viewthread.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP visual_composer函数代码示例发布时间:2022-05-23
下一篇:
PHP visible_activity函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap