导航:首页 > 万维百科 > 帝国cms微信公众号回复插件

帝国cms微信公众号回复插件

发布时间:2020-12-11 12:02:43

1、帝国cms 批量定时审核 代码 或者插件 我知道帝国cms 可以设置任务自动刷新首页和栏目

在首页模板中加入下面代码,尽量放在底部。
<script language="javascript" type="text/javascript" src="/e/htmlindex/index_html.php"></script>

在 /e/ 建立文件夹 htmlindex 并设置 777权限

将下面代码保存在 /e/htmlindex/index_html.php

修改刷新时间,将文件中1200改为你想要的时间,单位为秒。

<?php
require("../class/connect.php");
include("../class/db_sql.php");
include("../class/config.php");
include("../class/functions.php");
include("../class/t_functions.php");
require LoadLang("pub/fun.php");
require("../data/dbcache/class.php");
require("../data/dbcache/MemberLevel.php");
include("../class/chtmlfun.php"); 
$link=db_connect();
$empire=new mysqlquery();
$filepath_s="indexhtmlhc.txt";
$time=time();
@$filemtime=(int)filemtime($filepath_s)+1200;
/*
函数解释
file_exists() 函数检查文件或目录是否存在。
mkdir() 函数创建目录。
time() 函数返回当前时间的 Unix 时间戳。
filemtime() 函数返回文件内容上次的修改时间。
*/
if (!file_exists($filepath_s)){
fopen($filepath_s, 'w');
@chmod($filepath_s, 0777);
ReIndex();
}elseif(!file_exists($filepath_s) || (filemtime($filepath_s)+1200)<time()){
fopen($filepath_s, 'w');
@chmod($filepath_s, 0777);
ReIndex();
}else{
// do nothing
}
db_close();
$empire=null;
?>

2、如何在信息反馈提交成功后,返回此反馈信息的ID 帝国cms

<input type=hidden name=ecmsfrom value="返回地址">
这个只能返回到规定的一个页面
需要根据提交者提交不同的id,返回不同的ID内容,
这种你要自己改代码了,或者是提交表单用JS改变 ecmsfrom变量的内容

3、如何将信息反馈调用到内容页,或是反馈信息本页 帝国cms

参考以下完整代码:
<table width=100% align=center cellpadding=3 cellspacing=1 class="tableborder">
  <form name='feedback' method='post' enctype='multipart/form-data' action='[!--news.url--]e/enews/index.php'>
    <input name='enews' type='hidden' value='AddFeedback'>
    <input type='hidden' name='bid' value='1'>
    <input type="hidden" name="ecmsfrom" value="[!--news.url--]mypages/dingdan.html">
    <tr>
      <td width='16%' height=25 bgcolor='ffffff'><div align="right">您的姓名:</div></td>
      <td bgcolor='ffffff'><input name='name' type='text' size='42'>
        (*)</td>
    </tr>
    <tr>
      <td width='16%' height=25 bgcolor='ffffff'><div align="right">职务:</div></td>
      <td bgcolor='ffffff'><input name='job' type='text' size='42'></td>
    </tr>
    <tr>
      <td width='16%' height=25 bgcolor='ffffff'><div align="right">公司名称:</div></td>
      <td bgcolor='ffffff'><input name='company' type='text' size='42'></td>
    </tr>
    <tr>
      <td width='16%' height=25 bgcolor='ffffff'><div align="right">联系邮箱:</div></td>
      <td bgcolor='ffffff'><input name='email' type='text' size='42'></td>
    </tr>
    <tr>
      <td width='16%' height=25 bgcolor='ffffff'><div align="right">联系电话:</div></td>
      <td bgcolor='ffffff'><input name='call' type='text' size='42'>
        (*)</td>
    </tr>
    <tr>
      <td width='16%' height=25 bgcolor='ffffff'><div align="right">网站:</div></td>
      <td bgcolor='ffffff'><input name='homepage' type='text' size='42'></td>
    </tr>
    <tr>
      <td width='16%' height=25 bgcolor='ffffff'><div align="right">联系地址:</div></td>
      <td bgcolor='ffffff'><input name='address' type='text' size="42"></td>
    </tr>
    <tr>
      <td width='16%' height=25 bgcolor='ffffff'><div align="right">信息标题:</div></td>
      <td bgcolor='ffffff'><input name='title' type='text' size="42"> (*)</td>
    </tr>
    <tr> 
      <td width='16%' height=25 bgcolor='ffffff'><div align="right">信息内容(*):</div></td>
      <td bgcolor='ffffff'><textarea name='saytext' cols='60' rows='12'></textarea> 
      </td>
    </tr>
    <tr>
      <td bgcolor='ffffff'></td>
      <td bgcolor='ffffff'><input type='submit' name='submit' value='提交'></td>
    </tr>
  </form>
</table>

4、帝国cms怎样实现博客那种回复、评论的功能

?

5、帝国cms 7.0插件怎么兼容7.2

1、安装程序升级。

menuclass表增加了groupids字段,此字段默认值设为空即可。
menu表增加了addhash 字段,建议将专此字段值设为1。

2、属hash过滤。

不传递参数的页面文件在验证登录之后加载函数 $ecms_hashur=hReturnEcmsHashStrAll();

传递参数的页面加载hCheckEcmsRHash();

3、表单过滤

在表单中加载 $hashhrefr['form'] 或 $hashhrefr['eform']

4、页面链接

传递hash参数使用 $hashhrefr['ehref'] 或 $hashhrefr['whehref'] , $hashhrefr['href']或 $hashhrefr['whhref']

加wh的返回"?"
加不e的传递两个参数,用于向数据库提交参数的情况

5、返回链接

函数执行完成,返回地址后面加 hReturnEcmsHashStrHref 和 hReturnEcmsHashStrHref2 前者返回href变量,后者返回ehref变量,参数0和1分别表示"?"的无和有

6、帝国cms怎么添加微信支付接口

ecshop老版的是没有微信支付接口的,必须安装官方的微信通插件,另外,你还要有通过认证的服务号,才能获取微信支付接口权限

7、帝国cms怎么设置回复可见

应该是要单独写这个功能,dede就有一个这样的插件,不过好像是收费的

8、帝国CMS6.6升级到7.0后,用留言功能提示如下述

你的标签貌似少了半个括号,要么是调用的格式写的不正确,我的有时候也是这个,最后检查都是少了东西,要么是格式的问题,仔细检查下,希望能帮助到你!

与帝国cms微信公众号回复插件相关的知识