FriendsOfFlarum Gamification
[deleted]
Aleram You should try adjusting this section
.TagsPage .sideNavOffset {
float: left !important;
width: 85% !important;
}
More than likely, you need to reduce the 85% figure to make it float to the right correctly.
[deleted]
Aleram odd. That works for me. Can you post the CSS you've used ?
Hello,
I just have a question, why is it possible to vote to your own posts ? It's not very fair.
Thanks for your answer can I change it myself myself directly in vendor files easyly ?
- Edited
Kyrne Yes a setting would be ideal.
[update]
Could I simply add a condition in SaveVotesToDatabase line 105 in order to check that the user id is not the id of the current user ? => https://github.com/FriendsOfFlarum/gamification/blob/3656f5c7bd0ad624ecbcea036f61c8ea93659332/src/Listeners/SaveVotesToDatabase.php#L105
OK I ask you for a quick fix, is this ok for you in SaveVotesToDatabase
public function vote($post, $isDownvoted, $isUpvoted, $actor, $user)
{
if($user->id !== $actor->id){
I save only if the user id don't equal the actor id
Thanks for your help.
[deleted]
Aleram That's odd. The same CSS works for me
Im getting
Next Doctrine\DBAL\Driver\PDOException: SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'last_vote_time' in /www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:119
if i want to active the extension. Do i need to delete this column manually?
[deleted]
StephanMhl Yes, you'll need to manually drop it - did you have the extension installed before ?
[deleted] not that I'd remember it.
activation works now. But i cannot convert my old likes
[2019-10-10 15:32:12] production.ERROR: Error: Call to a member function increment() on null in /www/html/vendor/fof/gamification/src/Gamification.php:123
[deleted]
StephanMhl Hmmm... Which version of MariaDB are you using ? (or perhaps MySQL)
[deleted]
StephanMhl Did you also run php flarum migrate
from the SSH console ?
- Edited
im using a docker container from
https://github.com/tiredofit/docker-flarum
with mariaDB 10.3.9
i now look for a way to call flarum migrate
[deleted]
StephanMhl DB version should be ok