Skip to content
This repository has been archived by the owner on Jul 9, 2019. It is now read-only.

Commit

Permalink
Merge branch 'master' of https://github.com/ReFlar/gamification
Browse files Browse the repository at this point in the history
  • Loading branch information
KyrneDev committed May 24, 2018
2 parents d25e9a1 + 14d3f12 commit 10c1498
Show file tree
Hide file tree
Showing 5 changed files with 152 additions and 13 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Gamification by ReFlar

[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://gitlab.com/ReFlar/gamification/blob/master/LICENSE) [![Latest Stable Version](https://img.shields.io/packagist/v/reflar/gamification.svg)](https://gitlab.com/ReFlar/gamification)
[![MIT license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/reflar/gamification/blob/master/LICENSE.md) [![Latest Stable Version](https://img.shields.io/packagist/v/reflar/gamification.svg)](https://packagist.org/packages/reflar/gamification) [![Total Downloads](https://img.shields.io/packagist/dt/reflar/gamification.svg)](https://packagist.org/packages/reflar/gamification)

A [Flarum](http://flarum.org) extension that adds upvotes, downvotes, and ranks to your Flarum Community!

Expand Down Expand Up @@ -41,9 +41,9 @@ This Extension is meant as a replacement for the Flarum Likes Extension. Therefo

### Issues

- [Open an issue on Gitlab](https://gitlab.com/ReFlar/gamification/issues)
- [Open an issue on GitHub](https://github.com/ReFlar/gamification/issues)

### Links

- [on gitlab](https://gitlab.com/ReFlar/gamification)
- [on github](https://github.com/ReFlar/gamification)
- [on packagist](https://packagist.org/packages/ReFlar/gamification)
17 changes: 10 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@
"authors": [
{
"name": "Christian Lopez",
"email": "[email protected]",
"homepage": "https://reflar.io"
"email": "[email protected]",
"homepage": "https://redevs.org"
},

{
"name": "Charlie K",
"email": "[email protected]",
"homepage": "https://reflar.io"
"email": "[email protected]",
"homepage": "https://redevs.org"
}
],
"support": {
"issues": "https://gitlab.com/ReDevelopers/ReFlar/gamification/issues",
"source": "https://gitlab.com/ReDevelopers/ReFlar/gamification"
"issues": "https://github.com/ReDevelopers/ReFlar/gamification/issues",
"source": "https://github.com/ReDevelopers/ReFlar/gamification"
},
"require": {
"flarum/core": "^0.1.0-beta.7"
Expand All @@ -44,6 +44,9 @@
"backgroundColor": "#263238",
"color": "#fff"
}
},
"flagrow": {
"discuss": "https://discuss.flarum.org/d/5588-gamification-by-reflar"
}
}
}
}
67 changes: 67 additions & 0 deletions locale/it.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
core:
forum:
index_sort:
hot_button: Tendenze

reflar-gamification:
forum:
vote_title: Mostra Chi Ha Votato
nav:
name: Classifiche
ranking:
rank: Posizione
name: Utente
amount: Punteggio
notification:
upvote: "{username} ha votato positivamente il tuo messaggio"
downvote: "{username} ha votato negativamente il tuo messaggio"
user:
points: "Punteggio: {points}"
rank: "{rank}"
modal:
title: Votanti
upvotes_label: 'Positivi:'
downvotes_label: 'Negativi:'
mod_item: Visualizza Votanti
admin:
permissions:
vote_label: Vota positivamente/negativamente i messaggi
see_votes_label: Visualizza i voti positivi/negativi
see_ranking_page: Visualizza la classifica
nav:
desc: Ludicizzazione per la tua comunità Flarum
page:
rankings:
blocked:
placeholder: CDK2020, Ralkage, AngelAvila
title: Utenti Ignorati
help: Questi utenti non saranno mostrati nella classificha. I nomi utente devono essere separati da una virgola seguita da uno spazio.
title: Classifica
enable: Abilita immagini personalizzate
custom_image_1: 1ª posizione
custom_image_2: 2ª posizione
custom_image_3: 3ª posizione
votes:
points_title: Segnaposto Punteggio
points_placeholder: "Punteggio: "
color_holder: '#ffffff'
auto_upvote: Vota in automatico e positivamente i messaggi quando pubblicati
title: Voti
vote_color: Colore votato
icon_name: Icona voto positivo/negativo
icon_help: "Inserisci qualsiasi icona Font-Awesome che termina con -up e -down. Esempi: arrow, thumbs, chevron"
save_settings: Salva impostazioni
convert:
button: Converti Mi Piace in voti positivi
help: Converti i tuoi Mi Piace precedenti di flarum-ext-likes in voti positivi, così come calcola il gradimento per tutte le discussioni correnti.
converting: I tuoi Mi Piace sono in conversione. Ricarica il tuo sito tra qualche minuto per vedere i risultati. (I tempi di conversione potrebbero durare un po' a seconda del numero totale dei Mi Piace nel tuo forum)
converted: "Conversione con successo di {number} Mi Piace"
ranks:
title: Posizioni
ranks: Posizioni Personalizzate
number_title: Quanti distintivi di posizione devono essere mostrati?
help:
color: '#ffffff'
help: "Inserisci il numero richiesto di voti positivi, il nome della posizione, e il colore in esadecimale della posizione"
points: Punteggio
name: Nome
67 changes: 67 additions & 0 deletions locale/pl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
core:
forum:
index_sort:
hot_button: Popularne

reflar-gamification:
forum:
vote_title: Pokaż, kto zagłosował
nav:
name: Rankingi
ranking:
rank: Miejsce
name: Użytkownik
amount: Punkty
notification:
upvote: "{username} oddał głos w górę na twój post"
downvote: "{username} oddał głos w dół na twój post"
user:
points: "Punkty: {points}"
rank: "{rank}"
modal:
title: Głosujący
upvotes_label: 'Upvoters:'
downvotes_label: 'Downvoters:'
mod_item: Zobacz Głosujących
admin:
permissions:
vote_label: Posty w górę/dół
see_votes_label: Zobacz posty w górę/dół
see_ranking_page: Zobacz stronę rankingową
nav:
desc: Gamification dla twojej społeczności Flarum
page:
rankings:
blocked:
placeholder: CDK2020, Ralkage, AngelAvila
title: Zignorowani użytkownicy
help: Ci użytkownicy nie będą wyświetlani na stronie rankingu. Nazwy użytkowników powinny być oddzielone przecinkiem i spacją.
title: Rankingi
enable: Włącz niestandardowe zdjęcia
custom_image_1: Zdjęcie 1
custom_image_2: Zdjęcie 2
custom_image_3: Zdjęcie 3
votes:
points_title: Punkty Placeholder
points_placeholder: "Punkty: "
color_holder: '#ffffff'
auto_upvote: Automatycznie śledź posty po ich opublikowaniu
title: Głosy
vote_color: Głosowany kolor
icon_name: Ikonka głosów w górę/dół
icon_help: "Wprowadź dowolną ikonę Font-Awesome. Przykłady: arrow, thumbs, chevron"
save_settings: Zapisz ustawienia
convert:
button: Konwertuj polubienia na głosy w górę
help: Convert your previous likes from flarum-ext-likes into upvotes, as well as calculate the hotness for all current discussions.
converting: Your likes are now being converted. Refresh your site after a few minutes to see the process finished. (Conversion time might take a while depending on your total forum likes)
converted: "Pomyślnie skonwertowano wszystkie {number} polubień"
ranks:
title: Rangi
ranks: Rangi niestandardowe
number_title: Ile rang należy pokazywać?
help:
color: '#ffffff'
help: "Wprowadź wymaganą liczbę Głosów w górę, nazwę rangi oraz jej kolor"
points: Punkty
name: Nazwa
8 changes: 5 additions & 3 deletions migrations/2017_09_05_214452_add_time_attribute_to_users.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@

return [
'up' => function (Builder $schema) {
$schema->table('users', function (Blueprint $table) {
$table->dateTime('last_vote_time');
});
if (!$schema->hasColumn('users', 'last_vote_time')) {
$schema->table('users', function (Blueprint $table) {
$table->dateTime('last_vote_time');
});
}
},
'down' => function (Builder $schema) {
$schema->table('users', function (Blueprint $table) {
Expand Down

0 comments on commit 10c1498

Please sign in to comment.