本帖最后由 shwan 于 2009-11-5 16:14 编辑
一直在SS版混,把我知道的告诉大家。希望有点用处。
1、提示无权限进行管理操作https://discuz.dismall.com/thread-1462166-1-1.html
2、升级后界面显示混乱。(A清空缓存。建议调试时后台关闭缓存。B查看模板中是否指定了正确的CSS路径)https://discuz.dismall.com/thread-1455431-1-1.html
3、采集到的新闻打不开页面。(未指定采集后自动入库的频道,或机器人设置有问题。)https://discuz.dismall.com/thread-1456504-1-1.html
4、创建更有利于搜索收录的频道首页。如meishi.htmlhttps://discuz.dismall.com/thread-1457060-1-1.html
5、图片无法采集到本地。常见情况是采集器提示“内容处理完成”后,迟迟不出来“图片处理完成”,卡住了。(由于源服务器和你的服务器资源限制、采集操作机器与目标服务器、源服务器之间的网速带宽限制,采集为本地成功率很低。如一定要这么做,建议在半夜上网人数最少、带宽环境最佳、服务器资源最丰富的时候操作。)
6、想要网站有一些便民功能,如万年历、家常菜谱、城市地图、股票查询、英汉词典、公交查询、火车查询、航班查询、手机号码归属地查询、IP查询、邮编查询、计算器等。https://discuz.dismall.com/viewth ... ;extra=#pid12269384
7、SS聚合应用出错。提示一般如下:- SupeSite info: MySQL Query Error
- User: solotraveler
- Time: 2009-10-28 10:20am
- Script: /admincp.php
- SQL: ALTER TABLE `论坛数据库`.`[Table]threads` ADD COLUMN blog tinyint(1) NOT NULL DEFAULT '0'
- Error: ALTER command denied to user 'SS数据库用户'@'localhost' for table '[Table]threads'
- Errno.: 1142
复制代码 是由于SS数据库没有被聚合应用数据库的基本操作权限所致。解决办法https://discuz.dismall.com/thread-1462451-1-1.html
8、深入数据库:调用所有你想调的数据(原创)。
官方调用虽然丰富,但是对于一些比较怪异的需求,还是需要直接从数据库中去调。虽然这样会一定程度增加数据库压力,但权衡之下对必要的数据还是值得的。
我在很久以前做过这样的事。源码没有了。你这么做:
(1)写一个php文件,如mynews.php。直接从数据库中调用你要的数据到一个数组,如$mynews。
大概源码如下:- $connect = mysql_connect("localhost","user","password");
- mysql_query("SET NAMES 'GBK'");
- $set_char="SET character_set_connection=gbk, character_set_results=gbk"; //指定编码,否则乱码
- $select = mysql_select_db('dbname', $connect);//选择数据库
- $sql = "SELECT * FROM supe_categories JOIN supe_spaceitems ON ( supe_spaceitems.catid = supe_categories.catid) where *** LIMIT 0 , 5";
- //查询数据库操作,limit后数字指从0到5条
- $query = mysql_query($sql, $connect) or die(mysql_error());
- while($row=mysql_fetch_array($query,MYSQL_ASSOC))
- {
- $addrnews[]=array('id'=>$row['itemid'],'title'=>$row['subject']);
- }
复制代码 (2)在你要用到的页面(PHP,不是模板,如index.php)include_once('./mynews.php');
(3)在对应的模板中 用以下句式调用:- <!--{loop $mynews $key $value}-->
- <li><a href="/?action-viewnews-itemid-$value[id]" target="_blank">$value[title]</a></li>
- <!--{/loop}-->
复制代码 9、supesite的 登陆框哪里改
\batch.panel.php文件
这一段为登录前,它的div对应css可以当前模板目录下css\common.css中修改。- else {
- $formhash = formhash();
- print <<<END
- var noseccode = $_SCONFIG[noseccode];
- document.write('<div class="welcome">欢迎访问众联网!</div>');
- document.write('<form action="$siteurl/batch.login.php?action=login" method="post" style="margin:0">');
- document.write('<input type="hidden" name="formhash" value="$formhash" />');
- document.write('<input type="hidden" name="loginsubmit" value="true" />');
- document.write('用户<input type="text" name="username" size="12" onfocus="addseccode();" class="input_tx"> ');
- document.write('<br>密码<input type="password" name="password" size="12" onfocus="addseccode();" class="input_tx"> ');
- document.write('<br><input type="image" name="loginsubmit" src="/templates/0/pic/login.gif"><img src="/templates/0/pic/reg.gif"><a href="/do.php?action=register">注册</a><img src="/templates/0/pic/rem.gif"><a href="/do.php?action=lostpasswd">找回密码</a> </form>');
- END;
- }
复制代码 这一段为登录后- document.write('<div class="welcome"><strong>$_SGLOBAL[supe_username]</strong>,欢迎回来!</div>');
- document.write('<div class="login_pic"><a href="http://home.0888.cc/cp.php?ac=avatar"><img src="$ucurl" alt="点击更换您的头像" width="48" hight="48" border="0"></a></div>');
- document.write('<div class="login_panl"><a href="$siteurl/cp.php" title="您在本站的相关信息">信息</a>|<a href="http://home.0888.cc/?$uid" title="进入多功能博客">博客</a>|<a href="$siteurl/batch.login.php?action=logout" title="安全退出">退出</a><br>');
- document.write('您有<a class="credit" href="$siteurl/cp.php?ac=credit" title="查看您的积分详细情况">{$_SGLOBAL['member']['credit']}</a>积分<br>是{$_SGLOBAL['grouparr'][$_SGLOBAL['member']['groupid']]['grouptitle']}</div>');
- END;
复制代码 演示:http://ss.0888.cc
10、如何在一个广告位中放多个广告。
https://discuz.dismall.com/thread-1467430-1-1.html
11、如何设置模型联动菜单 https://discuz.dismall.com/thread-1472175-1-1.html
12、order/i.dateline DESC 是按最新的发布顺序排列的那么按点击数发布顺序是怎么样的呢,时间是一个月内,或者固定时间内的,这样一个函数怎么写?
https://discuz.dismall.com/thread-1472127-1-1.html |