Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
nodebb-plugin-ns-awards
Advanced tools
Changelog
[7.0.0] - 2022-07-12
Readme
A system for rewarding forum users. The plugin allows admin to define set of awards that could be granted to users for special accomplishments.
Plugin introduces a new entity for your board: Award
. It could be anything: ribbon, medal, special rank, etc.
Awards
control panel in Admin Control PanelAccount
or Post
page templates.Awards Overview | Create New Award |
---|---|
Give an Award | User's Rewards Overview |
---|---|
Rewards Logs | Settings |
---|---|
Use flex template - awards_profile_flex.tpl
for Persona v4. Place it wherever you like.
<!-- IMPORT partials/awards_profile_flex.tpl -->
Use topic partial to show awards for every post. Award's metadata is the same as for Profile template.
Example Persona Theme, edit node_modules/nodebb-theme-persona/templates/partials/topic/post.tpl
:
<!-- IMPORT partials/awards_topic.tpl -->
The plugin injects rewards to the several places. It could be useful for theme enthusiasts. It's possible to configure a limit or disable a feature in the settings.
nsRewards
with a list of rewards.nsRewards
with a list of rewards.The overview page is based on Flexbox with simple CSS class name set. Also, all layout is based on em values.
Key CSS Classes:
ns-awards-overview__item
, container for the list itemns-awards-overview__image
, since award image is responsive, it's possible to adjust a width of image containerns-awards-overview__users
, list of the awarded usersAccount/Profile page can include awards.
Key CSS Classes:
ns-awards-profile
, container, uses Flexboxns-awards-profile__image
, image representation of the awardEvery post in the topic view can include awards.
Key CSS Classes:
ns-awards-topic
, container, uses Flexboxns-awards-topic__item
, holder for the awardns-awards-topic__image
, image representation of the awardThe plugin provides external API via hooks. All API methods accept single object as a parameter. Every API request should be authenticated with a token. Tokens could be generated in the ACP.
Example of the request to get all available awards:
{
auth: {
token: '50bfa42d-31e2-434e-9634-505b973ee40e'
}
}
filter:ns.awards.getAwards
Get all available awards.
Parameters:
{Object} payload
{Object} payload.auth
- Authentication{String} payload.auth.token
- Authentication StringReturns:
{Object} result
{Array} result.awards
, returns the list of Award objectsstatic:ns.awards.rewardUser
Give an award to the user. It's important to specify who will grant the award.
Parameters:
{Object} payload
{Number} awardId
- Award Id{Number} fromUserId
- User Id who is giving the award{Number} toUserId
- User Id who is receiving the award{String} reason
- The message to explain why award was given{Object} payload.auth
- Authentication{String} payload.auth.token
- Authentication StringFAQs
System for rewarding forum users. It allows admin to define set of awards that could be granted to users for special accomplishments.
The npm package nodebb-plugin-ns-awards receives a total of 17 weekly downloads. As such, nodebb-plugin-ns-awards popularity was classified as not popular.
We found that nodebb-plugin-ns-awards demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.