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

PHP get_forumimg函数代码示例

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

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



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

示例1: forum

function forum(&$forum)
{
    global $_G;
    $lastvisit = $_G['member']['lastvisit'];
    if (!$forum['viewperm'] || $forum['viewperm'] && forumperm($forum['viewperm']) || !empty($forum['allowview']) || isset($forum['users']) && strstr($forum['users'], "\t{$_G['uid']}\t")) {
        $forum['permission'] = 2;
    } elseif (!$_G['setting']['hideprivate']) {
        $forum['permission'] = 1;
    } else {
        return FALSE;
    }
    if ($forum['icon']) {
        $forum['icon'] = get_forumimg($forum['icon']);
        $forum['icon'] = '<a href="forum.php?mod=forumdisplay&fid=' . $forum['fid'] . '"><img src="' . $forum['icon'] . '" align="left" alt="" /></a>';
    }
    $lastpost = array(0, 0, '', '');
    $forum['lastpost'] = is_string($forum['lastpost']) ? explode("\t", $forum['lastpost']) : $forum['lastpost'];
    $forum['lastpost'] = count($forum['lastpost']) != 4 ? $lastpost : $forum['lastpost'];
    list($lastpost['tid'], $lastpost['subject'], $lastpost['dateline'], $lastpost['author']) = $forum['lastpost'];
    $thisforumlastvisit = array();
    if ($_G['cookie']['forum_lastvisit']) {
        preg_match("/D\\_" . $forum['fid'] . "\\_(\\d+)/", $_G['cookie']['forum_lastvisit'], $thisforumlastvisit);
    }
    $forum['folder'] = ($thisforumlastvisit && $thisforumlastvisit[1] > $lastvisit ? $thisforumlastvisit[1] : $lastvisit) < $lastpost['dateline'] ? ' class="new"' : '';
    if ($lastpost['tid']) {
        $lastpost['dateline'] = dgmdate($lastpost['dateline'], 'u');
        $lastpost['authorusername'] = $lastpost['author'];
        if ($lastpost['author']) {
            $lastpost['author'] = '<a href="home.php?mod=space&username=' . rawurlencode($lastpost['author']) . '">' . $lastpost['author'] . '</a>';
        }
        $forum['lastpost'] = $lastpost;
    } else {
        $forum['lastpost'] = $lastpost['authorusername'] = '';
    }
    $forum['moderators'] = moddisplay($forum['moderators'], $_G['setting']['moddisplay'], !empty($forum['inheritedmod']));
    if (isset($forum['subforums'])) {
        $forum['subforums'] = implode(', ', $forum['subforums']);
    }
    return TRUE;
}
开发者ID:softhui,项目名称:discuz,代码行数:40,代码来源:function_forumlist.php


示例2: get_groupimg

    }
    $_G['forum']['icon'] = get_groupimg($_G['forum']['icon'], 'icon');
    $_G['grouptypeid'] = $_G['forum']['fup'];
    $_G['forum']['dateline'] = dgmdate($_G['forum']['dateline'], 'd');
    $nav = get_groupnav($_G['forum']);
    $groupnav = $nav['nav'];
    $onlinemember = grouponline($_G['fid']);
    $groupmanagers = $_G['forum']['moderators'];
    $groupcache = getgroupcache($_G['fid'], array('replies', 'views', 'digest', 'lastpost', 'ranking', 'activityuser', 'newuserlist'));
    $seotype = 'grouppage';
    $seodata['first'] = $nav['first']['name'];
    $seodata['second'] = $nav['second']['name'];
    $seodata['gdes'] = $_G['forum']['description'];
    $forumseoset = array();
}
$_G['forum']['banner'] = get_forumimg($_G['forum']['banner']);
list($navtitle, $metadescription, $metakeywords) = get_seosetting($seotype, $seodata, $forumseoset);
if (!$navtitle) {
    $navtitle = get_title_page($_G['forum']['name'], $_G['page']);
    $nobbname = false;
} else {
    $nobbname = true;
}
if (!empty($_G['gp_typeid']) && !empty($_G['forum']['threadtypes']['types'][$_G['gp_typeid']])) {
    $navtitle = strip_tags($_G['forum']['threadtypes']['types'][$_G['gp_typeid']]) . ' - ' . $navtitle;
}
if (!$metakeywords) {
    $metakeywords = $_G['forum']['name'];
}
if (!$metadescription) {
    $metadescription = $_G['forum']['name'];
开发者ID:kleitz,项目名称:sports,代码行数:31,代码来源:forum_forumdisplay.php


示例3: foreach

    foreach ($_G['forum_threadlist'] as $k => $thread) {
        $_G['forum_threadlist'][$k]['recommend'] = isset($memberrecommends[$thread['icontid']]) ? 1 : 0;
    }
}
foreach ($GLOBALS['sublist'] as $k => $sublist) {
    if ($sublist['icon']) {
        $icon = preg_match('/src="(.+?)"/', $sublist['icon'], $r) ? $r[1] : '';
        if (!preg_match('/^http:\\//', $icon)) {
            $icon = $_G['siteurl'] . $icon;
        }
        $GLOBALS['sublist'][$k]['icon'] = $icon;
    }
}
if ($_G['forum']['icon']) {
    require_once libfile('function/forumlist');
    if (strncasecmp($_G['forum']['icon'], 'http://', 7) !== 0) {
        $_G['forum']['icon'] = get_forumimg($_G['forum']['icon']);
        if (strncasecmp($_G['forum']['icon'], 'http://', 7) !== 0) {
            $_G['forum']['icon'] = $_G['siteurl'] . $_G['forum']['icon'];
        }
    }
}
$_G['forum']['threadcount'] = $_G['forum_threadcount'];
$variable = array('forum' => mobile_core::getvalues($_G['forum'], array('fid', 'fup', 'name', 'threads', 'posts', 'rules', 'autoclose', 'password', 'icon', 'threadcount', 'picstyle')), 'group' => mobile_core::getvalues($_G['group'], array('groupid', 'grouptitle')), 'forum_threadlist' => mobile_core::getvalues(array_values($_G['forum_threadlist']), array('/^\\d+$/'), array('tid', 'author', 'authorid', 'subject', 'subject', 'dbdateline', 'dateline', 'dblastpost', 'lastpost', 'lastposter', 'attachment', 'replies', 'readperm', 'views', 'digest', 'cover', 'recommend', 'recommend_add', 'reply', 'avatar', 'displayorder', 'coverpath', 'typeid')), 'groupiconid' => $groupiconIds, 'sublist' => mobile_core::getvalues($GLOBALS['sublist'], array('/^\\d+$/'), array('fid', 'name', 'threads', 'todayposts', 'posts', 'icon')), 'tpp' => $_G['tpp'], 'page' => $GLOBALS['page']);
if (!empty($_G['forum']['threadtypes']) || !empty($_GET['debug'])) {
    $variable['threadtypes'] = $_G['forum']['threadtypes'];
}
if (!empty($_G['forum']['threadsorts']) || !empty($_GET['debug'])) {
    $variable['threadsorts'] = $_G['forum']['threadsorts'];
}
$variable['forum']['password'] = $variable['forum']['password'] ? '1' : '0';
开发者ID:hacktea8,项目名称:d_z_s_t_u_d_e_n_t,代码行数:31,代码来源:sub_threadlist.php


示例4: _getForumInfo

 private function _getForumInfo($fid)
 {
     global $_G;
     $forum = $_G['forum'];
     require_once libfile('function/forumlist');
     $forumImage = get_forumimg($forum['icon']);
     $forumImage = (string) WebUtils::getHttpFileName($forumImage);
     $forumInfo = array();
     $forumInfo['id'] = (int) $fid;
     $forumInfo['title'] = $fid != 0 ? (string) WebUtils::emptyHtml($forum['name']) : '';
     $forumInfo['description'] = (string) WebUtils::emptyHtml($forum['description']);
     $forumInfo['icon'] = (string) $forumImage;
     return $forumInfo;
 }
开发者ID:frogoscar,项目名称:mobcent-discuz,代码行数:14,代码来源:TopicListAction.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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