求助:psychostats排行榜添加管理员加不上.
先建立好排行榜以后,运行了stats.pl,这样数据库中就有了玩家的数据了.然后采用1234 或者stone这样的名字建立管理员密码始终不成功.每次都返回pspass.pl的使用方法提示
例如
D:\ps224>pspass.pl -name stone -password zhuzhu
You must provide the identity of the player with a steamid, username,
player name or IP Address.
USAGE:
pspass.pl <identity> <password>
pspass.pl -steamid <steamid> -password <password>
pspass.pl -username <username> -password <password>
pspass.pl -name <player name> -password <password>
pspass.pl -ip <ipaddress> -password <password>
pspass.pl -c <config> <identity> <password>
其中stone是已经记录进系统的玩家的名字,zhuzhu是要加的密码.
请求指点...
实在不行,我打算改数据库,可是不知道怎么改,我看到plr表中记录了这些东西了,我直接给username passoword accesslevel赋值,修改以后登陆的时候提示密码错误.
实在非常的纳闷,苦闷..
望高手指点 D:\>cd ps22
不用杆直接输入psadmin.pl k 10
psadmin.pl 帐号"k" 权限"10"(1到10,10就是最高权限)
D:\ps22>psadmin.pl k 10
Player "k" matched the name "k". PLRID=37
Accesslevel updated to level "10"
设置好帐号权限后直接输入pspass.pl k 123456 意思玩家帐号k,密码123456
D:\ps22>pspass.pl k 123456
Player "k" matched the name "k". PLRID=37
Password updated for "k".
D:\ps22>
设置好后就可以登陆了 :D 是不是这样?好了说下。。 :mad: 多谢指点,我明天一早才能试。
不过我看是能成功的。
成功不成功我都给你汇报一下,谢谢。 还有一个问题是关于字体太小,我看有人说“至于字体,你修改一下css文件,把10px,9px的都改成11px就可以了。”
我不懂php,能告诉我改那个文件吗? D:\ps23>psadmin.pl AttACK 10
You must provide the identity of the player with a steamid, username,
player name or IP Address.
USAGE:
psadmin.pl <identity>
psadmin.pl -steamid <steamid> [-accesslevel <accesslevel>]
psadmin.pl -username <username> [-accesslevel <accesslevel>]
psadmin.pl -name <player name> [-accesslevel <accesslevel>]
psadmin.pl -ip <ipaddress> [-accesslevel <accesslevel>]
psadmin.pl -c <config> <identity>
If no accesslevel is given ADMIN is the default.
Valid access levels are:
1 = Normal User.
5 = Clan Admin.
10 = ADMIN.
D:\ps23>pspass.pl AttACK 123456
You must provide the identity of the player with a steamid, username,
player name or IP Address.
USAGE:
pspass.pl <identity> <password>
pspass.pl -steamid <steamid> -password <password>
pspass.pl -username <username> -password <password>
pspass.pl -name <player name> -password <password>
pspass.pl -ip <ipaddress> -password <password>
pspass.pl -c <config> <identity> <password>
D:\ps23>
没成功.
不过我已经找到数据库中的表,用sql加上了一个admin的帐户了,可以登陆,然后可以在那里给别人设置密码. As I thought about this some more I realized it might have been a combination of what I posted above after having done this:
install.pl -resetdb -profiles
This comes from a sticky thread at the top of this section for an error about a missing table you see during stats compiling. Apparently there is some sort of bug in the 2.3 installer that doesn't create that table.
So try the reset of the profiles first and then my suggestion from above. It DID work for me after that
http://www.psychostats.com/forums/viewtopic.php?t=11506&highlight=pspass Post by helena
还有一个问题是关于字体太小,我看有人说“至于字体,你修改一下css文件,把10px,9px的都改成11px就可以了。”
我不懂php,能告诉我改那个文件吗?
找到你的PSYCHO发布地址,如d:\usr\www\
下找到psweb.css用文本打开,内容大概如下
/* PsychoStats.com CSS style by Stormtrooper */
/* Not all classes within this file are actually used in the PSWEB theme */
BODY {
color: #FFFFFF;
background-color: #220000;
margin: 0px;
padding: 0px;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 16px;
}
A {
color: #990000;
text-decoration: none;
}
A:hover {
color: #EE0000;
}
TH,TD,DIV {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: normal;
font-size: 14px;
――――――――――――――――――――――――――――――――――――――――
TH,TD,DIV {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: normal;
font-size: 14px;
是修改主页上”玩家 | 战队“形式中间的那一杆的大小,修改方法修改以上14px;为15px;就大一号依次类推.
_____________________________________________________________
/* All sel* classes define styles for SELECT boxes only */
SELECT.sel-norm {
color: #000000;
background-color: #dddddd;
font-size: 12px;
border: 1px solid #000000;
以上是修改看玩家详细质料的时候历史图下面那个技巧得分杀人数。字母大小,修改方法如上
_______________________________________________________________
/* defines the class for 'text' that goes in a 'header' row */
.text-hdr {
color: #440000;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
font-size: 14px;
是修改"武器熟练度 "这类的字母大小.修改方法如上
______________________________________________________________
/* a smaller version of 'text-hdr' */
.text-hdr-small {
color: #440000;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
font-size: 12px;
是修改"武器熟练度"下面 "武器 杀人数死亡"的字母大小,修改方法如上
_______________________________________________________________
/* an alternate to the other 'text' class. This is generally only used on text that is not
displayed within a TABLE or DIV */
.text2 {
color: #FFFFFF;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: normal;
font-size: 12px;
是修改玩家在看详细质料的时候最有上脚的“战队成员”几个字母,修改方法如上
_________________________________________________________________
/* a smaller version of 'text2' */
.text2-small {
color: #FFFFFF;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: normal;
font-size: 9px;
是修改"最后更新于: May 12, 2005 5:11 pm"位置在最上脚,修改方法如上
________________________________________________________________
/* a larger version of 'text2' */
.text2-lrg {
color: #FFFFFF;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: normal;
font-size: 14px;
是修改"玩家质料"几个字.修改方法如上
______________________________________________________________
/* A label is the text that shows up on forms (this does not get used with <LABEL> tags
directly) */
.label {
color: #000000;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
font-size: 12px;
是修改玩家在看详细质料时候的所有信息的字母大小.修改方法如上
_____________________________________________________________
/* footer text (usually very small) */
.footer {
color: #FFFFFF;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
是修改"著作人: PsychoStats v2.2 © 2003,2004
中文语言包:Songsong(QQ:57403) 本页面处理总共使用0.096828 秒 "最下面几个版权信息字母的大小.修改方法如上
――――――――――――――――――――――――――――――――――――――――――
/* text within the menu options in the header of the overall site */
.menu {
color: #FFFFFF;
font-family: Verdana, Verdana, Arial, Helvetica, sans-serif;
font-weight: normal;
font-size: 10px;
详细质料里上面几个字母.修改方法如上
____________________________________________________________
/* standard text font styles used through the site. Be sure that the color of the tbl-shades
work well with this */
.text {
color: #000000;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: normal;
font-size: 12px;
是详细质料里的杀人数,死亡数等阿拉波数字大小。(这个应该比较关键),修改方法如上
_______________________________________________________________
/* a smaller version of 'text' */
.text-small {
color: #000000;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: normal;
font-size: 9px;
是射击命中分布图下面几个字母的大小。修改方法如上.
________________________________________________________________
其他还有几个应该用不到把。。你可以自己试验一下 :byebye: Post by helena
D:\ps23>psadmin.pl AttACK 10
You must provide the identity of the player with a steamid, username,
player name or IP Address.
USAGE:
psadmin.pl <identity>
psadmin.pl -steamid <steamid> [-accesslevel <accesslevel>]
psadmin.pl -username <username> [-accesslevel <accesslevel>]
psadmin.pl -name <player name> [-accesslevel <accesslevel>]
psadmin.pl -ip <ipaddress> [-accesslevel <accesslevel>]
psadmin.pl -c <config> <identity>
If no accesslevel is given ADMIN is the default.
Valid access levels are:
1 = Normal User.
5 = Clan Admin.
10 = ADMIN.
D:\ps23>pspass.pl AttACK 123456
You must provide the identity of the player with a steamid, username,
player name or IP Address.
USAGE:
pspass.pl <identity> <password>
pspass.pl -steamid <steamid> -password <password>
pspass.pl -username <username> -password <password>
pspass.pl -name <player name> -password <password>
pspass.pl -ip <ipaddress> -password <password>
pspass.pl -c <config> <identity> <password>
D:\ps23>
没成功.
不过我丫找到数据库中的?用sql加上了一个admin的帐户了,可以登陆,然后可以在那里给别人设置密码.
我用的方法就是我说的那个。是可以的。可能我的是PS22的问题把。。版本底了点。。不太清楚了 :burn:
页:
[1]