当前位置:首页 > ZBlog专栏 > 正文内容

不改系统列表数量情况下自定义列表数量

拓源主题11个月前 (12-09)ZBlog专栏323
挂接口:Add_Filter_Plugin('Filter_Plugin_ViewList_Core','appid_Filter_Plugin_ViewList_Core'); function appid_Filter_Plugin_ViewList_…

挂接口:

Add_Filter_Plugin('Filter_Plugin_ViewList_Core','appid_Filter_Plugin_ViewList_Core');
function appid_Filter_Plugin_ViewList_Core(&$type,&$page,&$category,&$author,&$datetime,&$tag,&$w,&$pagebar) {
    if($type == 'index'){
    //$pagebar->PageCount = 20;
    //$pagebar = new Pagebar($zbp->option['ZC_INDEX_REGEX']);
    $pagebar->PageCount = 20;
    //$pagebar->PageNow = $page;
    //$pagebar->PageBarCount = $zbp->pagebarcount;
    }
}


扫描二维码推送至手机访问。

文章内容摘自网络,如有侵权请联系本站删除。

本文链接:https://zbp.toyean.com/tpure/column/159.html

分享给朋友:

相关文章

Bing每日壁纸

Bing每日壁纸

function AppID_bingimg(){ global $zbp; $str=file_get_contents('https://cn.bing.com/HPImageArchive.aspx?idx=0&n=1');  &…

遗忘管理员密码解决方法

遗忘管理员密码解决方法

遗忘管理员密码解决方法,在根目录创建php文件访问:<?php require 'zb_system/function/c_system_base.php'; $uid = 1;  //这里为管理员用户ID; SetLog…

判断是否显示分页

判断是否显示分页

判断超过1页时再显示分页:{if $pagebar && $pagebar.PageAll > 1}     <div class="pagebar"…

通过接口干扰文章详情日期显示为当前时间

通过接口干扰文章详情日期显示为当前时间

通过接口干扰文章详情日期显示为当前时间:挂接口://Add_Filter_Plugin('Filter_Plugin_ViewPost_Template', 'AppID_Today'); function AppID_Today(&$t…

阅读下一篇:

判断是否显示分页

拓源主题11个月前 (12-09)ZBlog专栏299

判断超过1页时再显示分页:

{if $pagebar && $pagebar.PageAll > 1}
    <div class="pagebar">
        {template:pagebar}
    </div>
{/if}


阅读全文

发表评论

访客

看不清,换一张

◎欢迎参与讨论,请在这里发表您的看法和观点。