齐博CMS V7.0 Final 真静态后伪静态页面全部没法访问临时解决办法

作者:hykj007 发布时间:February 29, 2012 分类:默认分类 No Comments

齐博CMS V7.0 Final 真静态后伪静态页面全部没法访问临时解决办法,这样造成的结果有可能被百度认为是作弊。
do/showsp.php
do/list.php
do/bencandy.php
查找
&&$webdb[NewsMakeHtml]==2
删除

齐博CMS V7.0 Final ck编辑器上传图片自动用标题作为alt参数,方便seo

作者:hykj007 发布时间:February 29, 2012 分类:默认分类 No Comments

1.jpg
查找ewebeditor\ckeditor\plugins\image\dialogs里面的image.js,

accessKey:'A','default':''

修改为:

保存,清除一下浏览器缓存即可。
再次上传时,图片的alt标签自动以标题为标签

齐博CMS V7.0 Final 首页幻灯片(带文章标题)

作者:hykj007 发布时间:February 28, 2012 分类:默认分类 No Comments

齐博CMS V7.0 Final 首页幻灯片(带文章标题)
效果:
1.jpg

阅读剩余部分...

齐博CMS V7.0 Final 百度地图生成,出现生成错误!

作者:hykj007 发布时间:February 27, 2012 分类:默认分类 No Comments

解决办法:
在hack\googlemap目录下面admin.php文件
107行

$content=str_replace(array(">","<"),array("",""),$content);

后面加上下面的代码
$patterns = array ("'&(ldquo);'i","'&(rdquo);'i","'&(lsquo);'i","'&(rsquo);'i","'&(mdash);'i","'&(hellip);'i","'&(middot|bull);'i","'&(nbsp);'i","'&(times);'i","'&r([a-zA-Z0-9]*)'i");
$replace = array ('"','"',"'","'",'—','…','.','','×','"');
$rs[title] = preg_replace ($patterns, $replace, $rs[title]);
$content = preg_replace ($patterns, $replace, $content);

这只是根据我的情况写的, 如果还有其他字符, 可以再自己加上

齐博CMS V7.0 Final 创建新模型出错!

作者:hykj007 发布时间:February 22, 2012 分类:默认分类 No Comments

齐博CMS V7.0 Final 创建新模型出错!mysql版本:MySQL 5.5.3-m3

数据库连接出错:CREATE TABLE `qb_article_content_122` ( `id` mediumint(7) NOT NULL auto_increment, `aid` int(10) NOT NULL default '0', `rid` mediumint(7) NOT NULL default '0', `fid` mediumint(7) NOT NULL default '0', `uid` mediumint(7) NOT NULL default '0', `my_content` mediumtext NOT NULL, PRIMARY KEY (`id`), KEY `fid` (`fid`), KEY `uid` (`uid`), KEY `aid` (`aid`) ) TYPE=MyISAM DEFAULT CHARSET=gbk AUTO_INCREMENT=1 ;

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM DEFAULT CHARSET=gbk AUTO_INCREMENT=1' at line 12
1064

临时解决办法,在PHPMYADMIN中运行SQL命令

CREATE TABLE `qb_article_content_122` ( `id` mediumint(7) NOT NULL auto_increment, `aid` int(10) NOT NULL default '0', `rid` mediumint(7) NOT NULL default '0', `fid` mediumint(7) NOT NULL default '0', `uid` mediumint(7) NOT NULL default '0', `my_content` mediumtext NOT NULL, PRIMARY KEY (`id`), KEY `fid` (`fid`), KEY `uid` (`uid`), KEY `aid` (`aid`) ) Engine=MyISAM DEFAULT CHARSET=gbk AUTO_INCREMENT=1 ;

phpmyadmin Wrong permissions on configuration file, should not be world writable!

作者:hykj007 发布时间:February 19, 2012 分类:默认分类 No Comments

登陆phpMyAdmin,出现这样的提示

Wrong permissions on configuration file, should not be world writable!

phpMyAdmin要在755权限下才能正常工作(777不行)。
解决办法:
cd /data/vhosts
chmod -R 755 phpMyAdmin

齐博CMS V7.0 Final 特定栏目数据备份实验

作者:hykj007 发布时间:February 19, 2012 分类:默认分类 No Comments

齐博V7文章数据库
文章内容在:qb_reply
文章标题及相关属性:qb_article
ID库: qb_article_db
保存用户的UID与帐号及密码:qb_members
用phpmyadmin打开数据库
查询栏目的内容:

SELECT * 
FROM  `qb_reply` 
WHERE  `fid` =21
LIMIT 0 , 270

阅读剩余部分...

齐博CMS V7.0 Final 首页幻灯片

作者:hykj007 发布时间:February 17, 2012 分类:默认分类 No Comments

效果:
1.jpg

阅读剩余部分...

齐博CMS V7.0 Final 万能表单自定义字段实现“指定会员组可见”

作者:hykj007 发布时间:February 17, 2012 分类:默认分类 No Comments

V7版本实现求职和招聘表单里的联系方式指定会员组可见,其它会员级不能查看。
无权限会员组登陆后的效果:

阅读剩余部分...

chrome下使用Proxy Switchy翻墙

作者:hykj007 发布时间:February 14, 2012 分类:默认分类 No Comments

一、首先要有国外的vps,然后下载Proxy Switchy插件:https://chrome.google.com/webstore?hl=zh-CN
二、角本写法:PLINK.EXE -C -D 127.0.0.1:7070 -N -pw password username@server
plink工具在 putty工具包中下载http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
如果隐藏dos窗口可用RunHiddenConsole.exe
三、代理列表:https://autoproxy-gfwlist.googlecode.com/svn/trunk/gfwlist.txt

阅读剩余部分...