[phpBB]论坛积分模块 Ultimate Points System 安装及配置

回复
头像
523066680
Administrator
Administrator
帖子: 573
注册时间: 2016年07月19日 12:14
联系:

[phpBB]论坛积分模块 Ultimate Points System 安装及配置

帖子 523066680 »

这里先感谢灵台方寸山的建议
灵台方寸山 写了:我不知道兼容性如何,搜索到的资料
这类东西是有人在用的。

Ultimate Points应该是其中的一个可以用实现这个功能的:
[DEV] Ultimate Points Extension
[github]phpBB Ultimate Points Extension 3.1.x

============================================分割线===========================================
相关调整:

在用户控制面板界面 Ultimate Points 选项卡中

有一项 POINTS_TRANSFER_RECIEVED ,language/en/common.php 中没有对应的条目
翻译时自己在277行添加 POINTS_TRANSFER_RECIEVED 条目,暂时翻为:收到的转款/捐赠

论坛积分信息页面右边列表
ultimatepoints/core/points_info.php

代码: 全选

???????//?Read?out?all?the?need?values
????????$info_attach?????????????=?($points_values['points_per_attach']?==?0)???sprintf($this->user->lang['INFO_NO_POINTS'],?$this->config['points_name'])?:????sprintf($this->functions_points->number_format_points($points_values['points_per_attach'])?.?' '?.?$this->config['points_name']);
????????$info_addtional_attach????=?($points_values['points_per_attach_file']?==?0)???sprintf($this->user->lang['INFO_NO_POINTS'],?$this->config['points_name'])?:?sprintf($this->functions_points->number_format_points($points_values['points_per_attach_file'])?.?' '?.?$this->config['points_name']);
????????$info_poll????????????????=?($points_values['points_per_poll']?==?0)???sprintf($this->user->lang['INFO_NO_POINTS'],?$this->config['points_name'])?:?sprintf($this->functions_points->number_format_points($points_values['points_per_poll'])?.?' '?.?$this->config['points_name']);
????????$info_poll_option????????=?($points_values['points_per_poll_option']?==?0)???sprintf($this->user->lang['INFO_NO_POINTS'],?$this->config['points_name'])?:?sprintf($this->functions_points->number_format_points($points_values['points_per_poll_option'])?.?' '?.?$this->config['points_name']);
????????$info_topic_word????????=?($points_values['points_per_topic_word']?==?0)???sprintf($this->user->lang['INFO_NO_POINTS'],?$this->config['points_name'])?:?sprintf($this->functions_points->number_format_points($points_values['points_per_topic_word'])?.?' '?.?$this->config['points_name']);
????????$info_topic_character????=?($points_values['points_per_topic_character']?==?0)???sprintf($this->user->lang['INFO_NO_POINTS'],?$this->config['points_name'])?:?sprintf($this->functions_points->number_format_points($points_values['points_per_topic_character'])?.?' '?.?$this->config['points_name']);
????????$info_post_word????????????=?($points_values['points_per_post_word']?==?0)???sprintf($this->user->lang['INFO_NO_POINTS'],?$this->config['points_name'])?:?sprintf($this->functions_points->number_format_points($points_values['points_per_post_word'])?.?' '?.?$this->config['points_name']);
????????$info_post_character????=?($points_values['points_per_post_character']?==?0)???sprintf($this->user->lang['INFO_NO_POINTS'],?$this->config['points_name'])?:?sprintf($this->functions_points->number_format_points($points_values['points_per_post_character'])?.?' '?.?$this->config['points_name']);
????????$info_cost_warning????????=?($points_values['points_per_warn']?==?0)???sprintf($this->user->lang['INFO_NO_COST'],?$this->config['points_name'])?:?sprintf($this->functions_points->number_format_points($points_values['points_per_warn'])?.?' '?.?$this->config['points_name']);
????????$info_reg_bonus????????????=?($points_values['reg_points_bonus']?==?0)???sprintf($this->user->lang['INFO_NO_POINTS'],?$this->config['points_name'])?:?sprintf($this->functions_points->number_format_points($points_values['reg_points_bonus'])?.?' '?.?$this->config['points_name']);
????????$info_points_bonus????????=?($points_values['points_bonus_chance']?==?0)???sprintf($this->user->lang['INFO_NO_POINTS'],?$this->config['points_name'])?:?sprintf($this->user->lang['INFO_BONUS_CHANCE_EXPLAIN'],?$this->functions_points->number_format_points($points_values['points_bonus_chance']),?$this->functions_points->number_format_points($points_values['points_bonus_min']),?$this->functions_points->number_format_points($points_values['points_bonus_max']),?$this->config['points_name']);
暂时改成了

代码: 全选

	// Read out all the need values
		$info_attach 			= sprintf($this->functions_points->number_format_points($points_values['points_per_attach']) . ' ' . $this->config['points_name']);
		$info_addtional_attach	= sprintf($this->functions_points->number_format_points($points_values['points_per_attach_file']) . ' ' . $this->config['points_name']);
		$info_poll				= sprintf($this->functions_points->number_format_points($points_values['points_per_poll']) . ' ' . $this->config['points_name']);
		$info_poll_option		= sprintf($this->functions_points->number_format_points($points_values['points_per_poll_option']) . ' ' . $this->config['points_name']);
		$info_topic_word		= sprintf($this->functions_points->number_format_points($points_values['points_per_topic_word']) . ' ' . $this->config['points_name']);
		$info_topic_character	= sprintf($this->functions_points->number_format_points($points_values['points_per_topic_character']) . ' ' . $this->config['points_name']);
		$info_post_word			= sprintf($this->functions_points->number_format_points($points_values['points_per_post_word']) . ' ' . $this->config['points_name']);
		$info_post_character	= sprintf($this->functions_points->number_format_points($points_values['points_per_post_character']) . ' ' . $this->config['points_name']);
		$info_cost_warning		= sprintf($this->functions_points->number_format_points($points_values['points_per_warn']) . ' ' . $this->config['points_name']);
		$info_reg_bonus			= sprintf($this->functions_points->number_format_points($points_values['reg_points_bonus']) . ' ' . $this->config['points_name']);
		$info_points_bonus		= sprintf($this->user->lang['INFO_BONUS_CHANCE_EXPLAIN'], $this->functions_points->number_format_points($points_values['points_bonus_chance']), $this->functions_points->number_format_points($points_values['points_bonus_min']), $this->functions_points->number_format_points($points_values['points_bonus_max']), $this->config['points_name']);
显示效果
拥有现金: 141.20 币
信息
每个帖子附件的点数: 0.00 币
每个附件的点数: 0.00 币
新的投票点数: 0.00 币
新投票中每项的点数: 0.00 币
新主题中每个词的点数: 0.00 币
新主题中每个字符的点数: 0.00 币
新回复中每个词的点数: 0.00 币
新回复中每个字符的点数: 0.00 币
警告一次的处罚: 5.00 币
注册账号奖励点数: 50.00 币
头像
523066680
Administrator
Administrator
帖子: 573
注册时间: 2016年07月19日 12:14
联系:

概览页面显示用户名称的区域太窄

帖子 523066680 »

概览页面显示用户名称的区域太窄
wordwarp.png
(7.01 KiB) 已下载 1859 次
而银行界面下的显示空间足够宽
nowordwarp.png
(12.38 KiB) 已下载 1861 次
ultimatepoints/ext/dmzx/ultimatepoints/styles/all/theme/ultimatepoints.css

代码: 全选

.points-main-lists {
    text-align: left;
    display: inline-flex;
    margin: 1%;
    width: 20%;
    min-width: 130px;
}
对应
wordwarp.png
(7.01 KiB) 已下载 1859 次
修改方法
display: inline-flex; 改为 display: inline-block;
修改后几个排行版块默认是向下对齐的,添加语句
vertical-align: top; 问题解决
001.png
(15.57 KiB) 已下载 1762 次
头像
523066680
Administrator
Administrator
帖子: 573
注册时间: 2016年07月19日 12:14
联系:

用户资料下方显示金币信息换行修改

帖子 523066680 »

原本显示

代码: 全选

拥有现金: 1.79 
[捐赠][抢夺][修改]
储蓄: 0.00
[修改]
改为

代码: 全选

拥有现金: 1.79 [捐赠][抢夺][修改]
储蓄: 0.00 [修改]
文件路径:
全选
/ext/dmzx/ultimatepoints/styles/all/template/event/viewtopic_body_postrow_custom_fields_before.html
<a href="{postrow.U_POINTS_DONATE}">前面的<br />去掉,
<a href="{postrow.U_BANK_MODIFY}">前面的<br />去掉

{postrow.L_DONATE}以及 {postrow.L_MOD_USER_POINTS} 前面保留一个空格

<a href="{postrow.U_POINTS_DONATE}"> {postrow.L_DONATE}</a>

<a href="{postrow.U_BANK_MODIFY}"> {postrow.L_MOD_USER_POINTS}</a>
头像
paktc
出类拔萃
出类拔萃
帖子: 65
注册时间: 2016年07月21日 20:34
联系:

Re: [phpBB]论坛积分模块 Ultimate Points System 安装及配置

帖子 paktc »

积分Bug,我发现发帖后所获得的积分,即使删帖后也仍然保留。莫非是设置问题?
回复

在线用户

正浏览此版面之用户: 没有注册用户 和 0 访客