Discuz 模板分析记录

_G

_G[forum]

网站首页

{$_G[‘siteurl’]}

公告设置

{lang announcements}
$announcements 公告列表
  • 欢迎访问(2015-10-21)
  • 欢迎访问(2015-10-21)


  • 获取当前导航 ID

    获取当前导航 logo

    循环获取导航
    激活当前导航

  • 论坛版块列表
    论坛子版本排列数 $cat[‘forumcolumns’];
    循环论坛版块ID
    版块自定义图标 $forum[icon]

    获取板块URL

     

    $_G[‘setting’][‘topnavs’][0] 顶部导航左侧数组
    $_G[‘setting’][‘topnavs’][1] 顶部导航右侧数组

     

    父板块

    
    $catlist      总分区数据  
    $cat        每一个分区数据
    
    Array
    (
        [fid] => 1                版块ID
        [fup] => 0
        [type] => group            分类
        [name] => Discuz!            分区名称
        [status] => 1
        [displayorder] => 0
        [styleid] => 0
        [threads] => 0
        [posts] => 0
        [todayposts] => 0
        [yesterdayposts] => 0
        [rank] => 0
        [oldrank] => 0
        [lastpost] => 
        [domain] =>             绑定域名
        [allowsmilies] => 0
        [allowhtml] => 0
        [allowbbcode] => 0
        [allowimgcode] => 0
        [allowmediacode] => 0
        [allowanonymous] => 0
        [allowpostspecial] => 0
        [allowspecialonly] => 0
        [allowappend] => 0
        [alloweditrules] => 0
        [allowfeed] => 1
        [allowside] => 0
        [recyclebin] => 0
        [modnewposts] => 0
        [jammer] => 0
        [disablewatermark] => 0
        [inheritedmod] => 0
        [autoclose] => 0
        [forumcolumns] => 3                论坛首页下级子版块横排
        [catforumcolumns] => 3            分区下级子版块横排
        [threadcaches] => 0
        [alloweditpost] => 1
        [simple] => 0
        [modworks] => 0
        [allowglobalstick] => 1
        [level] => 0
        [commoncredits] => 0
        [archive] => 0
        [recommend] => 0
        [favtimes] => 0
        [sharetimes] => 0
        [disablethumb] => 0
        [disablecollect] => 0
        [description] => 
        [password] => 
        [icon] => 
        [redirect] => 
        [attachextensions] => 
        [creditspolicy] => 
        [formulaperm] => 
        [moderators] => 
        [rules] => 
        [threadtypes] => 
        [threadsorts] => 
        [viewperm] => 
        [postperm] => 
        [replyperm] => 
        [getattachperm] => 
        [postattachperm] => 
        [postimageperm] => 
        [spviewperm] => 
        [seotitle] => 
        [keywords] => 
        [seodescription] => 
        [supe_pushsetting] => 
        [modrecommend] => 
        [threadplugin] => 
        [replybg] => 
        [extra] => Array
            (
                [namecolor] => #CC6699    分区名称颜色
            )
    
        [jointype] => 0
        [gviewperm] => 0
        [membernum] => 0
        [dateline] => 0
        [lastupdate] => 0
        [activity] => 0
        [founderuid] => 0
        [foundername] => 
        [banner] => 
        [groupnum] => 0
        [commentitem] => 
        [relatedgroup] => 
        [picstyle] => 0
        [widthauto] => 0
        [noantitheft] => 0
        [noforumhidewater] => 0
        [noforumrecommend] => 0
        [livetid] => 0
        [price] => 0
        [forumscount] => 14
        [forums] => Array        子版块ID数组
            (
                [0] => 2
                [1] => 36
                [2] => 37
                [3] => 38
                [4] => 39
                [5] => 40
                [6] => 41
                [7] => 42
                [8] => 43
                [9] => 44
                [10] => 45
                [11] => 46
                [12] => 47
                [13] => 48
            )
    
        [collapseimg] => collapsed_no.gif        卷帘图片
        [forumcolwidth] => 32.9%
        [endrows] =>
    ) 子板块
    [fid] => 2                版块ID
    [fup] => 1
    [type] => forum                分类
    [name] => Apache + PHP +MySQL        版块名称
    [status] => 1
    [displayorder] => 0            显示顺序
    [styleid] => 0
    [threads] => 8                主题
    [posts] => 8                帖数
    [todayposts] => 0            今天
    [yesterdayposts] => 0            昨天
    [rank] => 1
    [oldrank] => 1
    [lastpost] => Array            最后帖子信息
        (
            [0] => 0
            [1] => 0
            [2] => 
            [3] => 
            [author] => tianlunvip
            [dateline] => 2015-8-16 19:42
            [subject] => fasfdsafsafas
            [tid] => 97
            [authorusername] => tianlunvip
        )
    
    [domain] => 
    [allowsmilies] => 1
    [allowhtml] => 0
    [allowbbcode] => 1
    [allowimgcode] => 1
    [allowmediacode] => 1
    [allowanonymous] => 0
    [allowpostspecial] => 1
    [allowspecialonly] => 0
    [allowappend] => 0
    [alloweditrules] => 0
    [allowfeed] => 1
    [allowside] => 0
    [recyclebin] => 1
    [modnewposts] => 0
    [jammer] => 0
    [disablewatermark] => 0
    [inheritedmod] => 0
    [autoclose] => 0
    [forumcolumns] => 0                论坛版块下级子版块横排
    [catforumcolumns] => 0
    [threadcaches] => 0
    [alloweditpost] => 1
    [simple] => 0
    [modworks] => 0
    [allowglobalstick] => 1
    [level] => 0
    [commoncredits] => 0
    [archive] => 0
    [recommend] => 0
    [favtimes] => 0
    [sharetimes] => 0
    [disablethumb] => 0
    [disablecollect] => 0
    [description] => 
    [password] => 
    [icon] =>   版块图标
    [redirect] => http://www.haha.com        版块转向 URL
    [attachextensions] => 
    [creditspolicy] => a:0:{}
    [formulaperm] => a:5:{i:0;s:0:"";i:1;s:0:"";s:7:"message";s:0:"";s:5:"medal";N;s:5:"users";s:0:"";}
    [moderators] => 
    [rules] => 
    [threadtypes] => 
    [threadsorts] => 
    [viewperm] => 
    [postperm] => 
    [replyperm] => 
    [getattachperm] => 
    [postattachperm] => 
    [postimageperm] => 
    [spviewperm] => 
    [seotitle] => 
    [keywords] => 
    [seodescription] => 
    [supe_pushsetting] => 
    [modrecommend] => a:8:{s:4:"open";s:1:"0";s:3:"num";i:10;s:8:"imagenum";i:0;s:10:"imagewidth";i:300;s:11:"imageheight";i:250;s:9:"maxlength";i:0;s:9:"cachelife";i:0;s:8:"dateline";i:0;}
    [threadplugin] => N;
    [replybg] => 
    [extra] => Array
        (
            [namecolor] => #996699            版块名称颜色
            [iconwidth] => 70            图标宽度 (单位: px)
        )
    
    [jointype] => 0
    [gviewperm] => 0
    [membernum] => 0
    [dateline] => 0
    [lastupdate] => 0
    [activity] => 0
    [founderuid] => 0
    [foundername] => 
    [banner] => c8/common_2_banner.png        顶部图片
    [groupnum] => 0
    [commentitem] => 
    [relatedgroup] => 
    [picstyle] => 0
    [widthauto] => 0
    [noantitheft] => 0
    [noforumhidewater] => 0
    [noforumrecommend] => 0
    [livetid] => 0
    [price] => 0
    [permission] => 2
    [folder] => 
    [orderid] => 0
    [subforums] => 
    
    

    附件内容

    Array ( 
    [imgFile] => Array ( 
    [name] => shop.png 
    [type] => image/png 
    [size] => 9154 
    [key] => imgFile 
    [ext] => png 
    [md5] => c22bf6a7e2897e324b7b52e6690a799a 
    [sha1] => 1c80d948f2ac34b5f4c8e2a4c8480c6d813be119 
    [savename] => 564c75413fc36.png 
    [savepath] => 2015-11-18/ ) ) 
    

     

    赞(0) 打赏
    取消

    感谢您的支持,我会继续努力的!

    扫码支持
    扫码打赏,您说多少就多少

    打开支付宝扫一扫,即可进行扫码打赏哦

    分享从这里开始,精彩与您同在

    评论

      暂无评论...