Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索

[修改] 文章页如何去除discuz 的页头和页尾。

[复制链接]
intamd 发表于 2014-3-7 21:13:02 | 显示全部楼层 |阅读模式
能不能复制 portal.php改名abc.php地址也改成

原来
http://shuilu.cc/portal.php?mod=view&aid=32


改后
http://shuilu.cc/abc.php?mod=view&aid=32
求指救




============-=-=-=
portal.php好像没有关于页头页尾的。


<?php

/**
*      [Discuz!] (C)2001-2099 Comsenz Inc.
*      This is NOT a freeware, use is subject to license terms
*
*      $Id: portal.php 33234 2013-05-08 04:13:19Z andyzheng $
*/

define('APPTYPEID', 4);
define('CURSCRIPT', 'portal');

require './source/class/class_core.php';
$discuz = C::app();

$cachelist = array('userapp', 'portalcategory', 'diytemplatenameportal');
$discuz->cachelist = $cachelist;
$discuz->init();

require DISCUZ_ROOT.'./source/function/function_home.php';
require DISCUZ_ROOT.'./source/function/function_portal.php';

if(empty($_GET['mod']) || !in_array($_GET['mod'], array('list', 'view', 'comment', 'portalcp', 'topic', 'attachment', 'rss', 'block'))) $_GET['mod'] = 'index';


define('CURMODULE', $_GET['mod']);
runhooks();

$navtitle = str_replace('{bbname}', $_G['setting']['bbname'], $_G['setting']['seotitle']['portal']);
$_G['disabledwidthauto'] = 1;

require_once libfile('portal/'.$_GET['mod'], 'module');

?>



====================
回复

使用道具 举报

 楼主| intamd 发表于 2014-3-8 10:33:05 | 显示全部楼层
已搞定,做了个无页头的文章页。。。不动portal.php文件。
回复

使用道具 举报

兲楽 发表于 2014-3-9 00:22:47 | 显示全部楼层
intamd 发表于 2014-3-8 10:33
已搞定,做了个无页头的文章页。。。不动portal.php文件。

恭喜自己学会
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-11-25 04:26 , Processed in 0.113011 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表