标签 方法 下的文章

SeaCMS地图页按首字母调用时0-9内容不显示的解决方法

编辑 /include/main.class.php 文件第1294行,将

if(!empty($vletter)) $whereLetter=" and m.v_letter ='".strtoupper($vletter)."' "; else $whereLetter="";

修改为

if(!empty($vletter))if(strlen($vletter)>1){$whereLetter=" and m.v_letter  between '0' and '9'";}else{$whereLetter=" and m.v_letter ='".strtoupper($vletter)."' ";} else $whereLetter="";

SeaCMS播放页if判断无效的解决方法

常用判断(用于显示当前播放来源):

{playpage:playlist}<dd id="[playlist:ename]"{if:'{playpage:from}'<>'[playlist:from]'} style="display: none;"{else} style="display: block;"{end if}><p>资源来自<strong>[playlist:from]</strong>,[playlist:intro]</p><ul>[playlist:link]</ul></dd>{/playpage:playlist}

{playpage:playlist}{if:{playpage:from}==[playlist:from]}'#[playlist:ename]'{end if}{/playpage:playlist}

但上面的判断在最新版本,即6.46版中无效。

- 阅读剩余部分 -

杰奇cms时间不同步的解决方法

JIEQI CMS1.7 版本,无论本地测试还是web服务器,采集回来的数据,更新时间显示的都不是正确的时间,延迟十个小时左右,而服务器的时区和时间都是正确的。最终解决方法如下:
编辑 php.ini 文件,将

;date.timezone = 

修改为:

date.timezone = PRC

然后重启iis即可。

飞飞影视系统2.9 修改影片信息失败的解决方法

2.9版本数据库中新增了几个字段,执行以下SQL语句即可:

ALTER TABLE  `ff_vod`   
 ADD `vod_isfilm` tinyint(1) NOT NULL DEFAULT '1',
 ADD `vod_filmtime` int(11) NOT NULL,
 ADD `vod_length` smallint(3) NOT NULL,
 ADD `vod_weekday` mediumint(7) NOT NULL,
 ADD `vod_total` varchar(20) NOT NULL,
 ADD `vod_isend` tinyint(1) NOT NULL DEFAULT '1'

rtorrent+rutorrent使用中的常见问题及解决方法

1、rutorrent硬盘使用量不准确的解决方法

vi /var/rutorrent/rutorrent/conf/config.php

$topDirectory = '/';

修改为

$topDirectory = '/home/';

2、rtorrent频繁崩溃的原因和解决方法
错误日志

No connection to rTorrent. Check if it is really running. Check
$scgi_port and $scgi_host settings in config.php and scgi_port in
rTorrent configuration file

出现这种情况是“最大可用内存”这个参数设置过大造成的,解决方法很简单,比如把“最大可用内存”设置为1G,那么就在 .rtorrent.rc 文件里增加一行 max_memory_usage = 1024M 就可以了。
.rtorrent.rc 文件路径在 /home/用户名/.rtorrent.rc
比如你的用户名是2dan 那么路径就是 /home/2dan/.rtorrent.rc
然后删除 rtorrent.lock 文件并重启 rutorrent 即可

rm -rf /home/2dan/rtorrent/session/rtorrent.lock
/etc/init.d/autodl_2dan restart