织梦网站底部的Power by DedeCms怎么去掉

织梦网站底部的Power by DedeCms怎么去掉,第1张

学技巧网站制作为您解答:

DEDECMS V57版本出现后,在前台网页底部会出现织梦版权信息 “powered by dedecms”,很多人都不知道怎么去掉的(当然了,学技巧不建议你去掉,毕竟程序是人家开发的,你免费用了),因为这段代码并不存在于HTM模板中。其实还有一种方法,等等也教教大家。学技巧现在告诉大家怎么去除织梦底部的 powered by dedecms版权信息:方法一:

在include/dedesqlclasssphp文件中找到第588行:

1

2

3

4

$arrs1 = array(0x63,0x66,0x67,0x5f,0x70,0x6f,0x77,0x65,0x72,0x62,0x79);

$arrs2

=

array(0x20,0x3c,0x61,0x20,0x68,0x72,0x65,0x66,0x3d,0x68,0x74,0x74,0x70,0x3a,0x2f,0x2f,0x77,0x77,0x77,0x2e,0x64,0x65,0x64,0x65,0x63,0x6d,0x73,0x2e,0x63,0x6f,0x6d,0x20,0x74,0x61,0x72,0x67,0x65,0x74,0x3d,0x27,0x5f,0x62,0x6c,0x61,0x6e,0x6b,0x27,0x3e,0x50,0x6f,0x77,0x65,0x72,0x20,0x62,0x79,0x20,0x44,0x65,0x64,0x65,0x43,0x6d,0x73,0x3c,0x2f,0x61,0x3e);

改成:

1

2

$arrs1 = array();

$arrs2 = array();

方法二:大家可以在系统参数里自己添加一个变量,然后在模板调用这个变量。这个方法就是不用默认的{dede:globalcfg_powerby/}这个便签,比如你添加的变量,你模板调用可以是{dede:globalcfg_banquan/},这样也可以避免调用织梦官方版权信息。或者把默认的{dede:globalcfg_powerby/}这个变量删除也可以的。怎么通过dedecms后台语句删除变量呢?“SQL命令行工具”里 运行 :

1

Delete FROM dede_sysconfig where varname="这里写你自己写的名称,列如:cfg_powerby"

学技巧不太赞同第一种方法,感觉第二个还算比较实用点。大家运行sql语句的时候注意把数据表的前缀修改为自己的。

希望对你有所帮助

方法/步骤

1

进入后台,找到模块/文件管理器/include/dedesqlclassphp文件,找到第588行,如下:

$arrs1 = array(0x63,0x66,0x67,0x5f,0x70,0x6f,0x77,0x65,0x72,0x62,0x79); $arrs2 = array(0x20,0x3c,0x61,0x20,0x68,0x72,0x65,0x66,0x3d,0x68,0x74,0x74,0x70,0x3a,0x2f,0x2f, 0x77,0x77,0x77,0x2e,0x64,0x65,0x64,0x65,0x63,0x6d,0x73,0x2e,0x63,0x6f,0x6d,0x20,0x74,0x61,0x72, 0x67,0x65,0x74,0x3d,0x27,0x5f,0x62,0x6c,0x61,0x6e,0x6b,0x27,0x3e,0x50,0x6f,0x77,0x65,0x72,0x20, 0x62,0x79,0x20,0x44,0x65,0x64,0x65,0x43,0x6d,0x73,0x3c,0x2f,0x61,0x3e);

2

改成:

$arrs1 = array(); $arrs2 = array();

然后点击保存

3

保存后,点击生成/一键更新网站/更新所有/开始更新

4

如果修改这个还不能全部清洁底部信息,我们还再到模板中去修改一下,找到网页底部模板footerhtm,把版权调用{dede:globalcfg_powerby/}删除或修改!如图:

5

前台预览一下,是不是没有了!

6

其实建议带有powered by dedecms ,把链接去掉就可以了,毕竟是人家辛苦开发的!

您好,朋友。跟版网团队很高兴为您解答:

include/dedesqlclasssphp文件中找到第588行:

 

   

$arrs1 = array(0x63,0x66,0x67,0x5f,0x70,0x6f,0x77,0x65,0x72,0x62,0x79);

  $arrs2 =array(0x20,0x3c,0x61,0x20,0x68,0x72,0x65,0x66,0x3d,0x68,0x74,0x74,0x70,0x3a,0x2f,0x2f,

  0x77,0x77,0x77,0x2e,0x64,0x65,0x64,0x65,0x63,0x6d,0x73,0x2e,0x63,0x6f,0x6d,0x20,0x74,0x61,0x72,

  0x67,0x65,0x74,0x3d,0x27,0x5f,0x62,0x6c,0x61,0x6e,0x6b,0x27,0x3e,0x50,0x6f,0x77,0x65,0x72,0x20,

  0x62,0x79,0x20,0x44,0x65,0x64,0x65,0x43,0x6d,0x73,0x3c,0x2f,0x61,0x3e);

改成:

 

 $arrs1 = array();

  $arrs2 = array();

 

保存文件并上传即可。

希望我的回答能够帮到您!

dedecms去掉首页indexhml方法:

1、在主机里面设置默认首页,把indexhtml设置到第一位。

2、在FTP中如果有indexphp文件,直接删除indexhtml,进行动态浏览。

3、打开FTP网站的根目录,找到根目录的 indexphp 文件,删除里面的内容,将下面的代码粘贴进去,然后保存,一键生成全站即可 。

<php

if(!file_exists(dirname(__FILE__)'/data/commonincphp'))

{

     header('Location:install/indexphp');

     exit();

}

require_once (dirname(__FILE__)  "/include/commonincphp");

require_once DEDEINC"/arcpartviewclassphp";

$GLOBALS['_arclistEnv'] = 'index';

$row = $dsql->GetOne("Select  From `dede_homepageset`");

$row['templet'] = MfTemplet($row['templet']);

$pv = new PartView();

$pv->SetTemplet($cfg_basedir  $cfg_templets_dir  "/"  $row['templet']);

$pv->Display();

>

DABAN RP主题是一个优秀的主题,极致后台体验,无插件,集成会员系统
网站模板库 » 织梦网站底部的Power by DedeCms怎么去掉

0条评论

发表评论

提供最优质的资源集合

立即查看 了解详情