Archive for April, 2006

discuz 去掉主题前面的日期

Sunday, April 30th, 2006

论坛的主题按照某人的方法 在发表主题时,前面插入日期,现在看来。这个日期插得还不科学。
详情可以参看我在dz的帖子。
http://www.discuz.net/viewthread.php?tid=281364
为了挽救下自己,于是在dz是处找帖子。
还终于给我找到了。

update cdb_threads set subject=substring(subject,10);

这个,是错误的,你们可不要用啊。不然会将你的所有的帖子。不论前面有没有时间,全部截掉10个字符

下面的才是正确的

update cdb_threads set subject=substring(subject from 11) where position(’[' in subject)=1 and position(']‘ in subject)=10

php不太懂,稍微解释下 当你的主题前面有 [06-03-02]格式的日期时,上面的sql是这样执行的。
首页在所有的主题里面寻找,当主题的第一个字符是”["第10个字符是“]” 时,截去这个主题第11位前面的字符.

我的论坛是 [04-17] 所以代码就是

update cdb_threads set subject=substring(subject from 8) where position(’[' in subject)=1 and position(']‘ in subject)=7

kokoro新版aria skin

Thursday, April 27th, 2006

Clowleed都说不会升级tt了。我觉得用classic version到老不太可信。况且1.0与以前的版本根本就不是在一个档次的。果不其然,再若干天前以,就开始动手制作了这个aria的风格。还真是不错。有他一惯的风格。漂亮。哥们以前真是白为他担心了。本地下载

一天一个ip只弹一次的弹窗

Sunday, April 23rd, 2006

没办法,做站的都要用的这个东西,在落伍叫人帮找的。感谢落伍id 自选风格 兄弟

function setcookie(name, value, expire) {
window.document.cookie = name + “=” + escape(value) + ((expire == null) ? “” : (”; expires=” + expire.togmtstring()));
}

function getcookie(name) {
var search = name + “=”;
if (window.document.cookie.length > 0) { // if there are any cookies
offset = window.document.cookie.indexof(search);
if (offset != -1) { // if cookie exists
offset += search.length; // set index of beginning of value
end = window.document.cookie.indexof(”;”, offset) // set index of end of cookie value
if (end == -1)
end = window.document.cookie.length;
return unescape(window.document.cookie.substring(offset, end));
}
}
return null;
}

function register(name) {
var today = new date();
var expires = new date();
expires.settime(today.gettime() + 1000*60*60*24);
setcookie(”bearletpopup”, name, expires);
}

var exiturl=”http://www.bearlet.com”;

function openwin() {

var c = getcookie(”bearletpopup”);
if (c != null) {
return;
}
register(”9free”);

var featurestr=”””;

featurestr=”‘top=0,left=0,width=800,height=600,toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes, location=yes, status=yes,center:yes’”;
self.focus();

var exitwindow = window.open(exiturl,”, featurestr);

exitwindow.focus();

}

openwin();
window.focus()

将上在的代码另存为 popup.js
调用的时候在首页的header部份插入

<script language=”javascript” src=”http://www.bearlet.com/114.js”></script>

呵。如果要做测试把戏bearletpopup 改个名子。就可以重新弹。

和我爱贵溪的一强悍mm到吃饭。

Saturday, April 22nd, 2006

这位mm一直是论坛一个超级强人。拥有无数马列甲,得罪无数老大。总一个字,不服不行。

2008年7月后记:在南昌下火车的时候,看有一个陌生的MM盯着我,我也盯着看了十秒。???我摇摇头又走了,刚走几步,MM暴走:“你不认识我了,我是**啊。” “啊!”我椤了半分钟才反应过来。她现在在南昌工作,不知道研究生考得怎么样了。

域名备案跳过手机邮箱验证技巧

Saturday, April 22nd, 2006

这一则方法很早就在落伍看到了.但是因为用的少.所以一直也没有公布出来.最近因为要备一个米.所以顺便贴了上来.给那些手机和邮箱不能收到验证码的站长们用吧.

1:登陆:http://www.miibeian.gov.cn/
2:注册(注册完了手机上收不到短信,没有验证码)
3:退回主页(http://www.miibeian.gov.cn/
4:输入用户名、密码、验证码后点击登陆
5:此时需输入“手机验证码”和“邮箱验证码”—-不要输入
6:在地址栏里输入“http://www.miibeian.gov.cn/index_icp.jsp
7:回车
8:进行备案吧

祝你好运,朋友,可表做违法的事情啊