resource not found when I custom Rank
FriendsOfFlarum Gamification
Cathas9lives I’ll investigate, but in the meantime, can you please create an issue in the Gamification repo with any relevant logs and information that would be useful to us and speed up our investigation?
Good afternoon!
Thank you for the expansion. Everything works, but there is a problem with the layout.
Menu crawls up on the rating page
How can I leave the menu in its place and display the rating page to the right of it? Wherever discussions are normally displayed
Ralkage Failed to load resource: the server responded with a status of 404 (Not Found) api :ranks(1)
Ralkage in beta 10
[deleted]
- Edited
Aleram Yes, I noticed that also. Depending on the size of your screen, you could use the below
@media (min-width: 992px) {
.TagsPage .sideNav {
float: left !important;
white-space: inherit !important;
}
.TagsPage .sideNavOffset {
float: left !important;
width: 85% !important;
}
.TagsPage .sideNav>ul>li, .TagsPage .sideNav .Dropdown-menu>li {
display: inherit !important;
}
.rankings {
margin-top: 20px !important;
}
}
@media (min-width: 768px) {
.sideNav .Dropdown--select .Dropdown-menu {
margin-top: 20px !important;
}
}
[deleted]
Can anyone help with this ?
https://discuss.flarum.org/d/20671-friendsofflarum-gamification/46
Still getting this error
- Edited
[deleted] when you get a chance, reach out to me on Discord you can try to run
php flarum migrate
again to see if it'll create that post_votes
table which looks to be missing in your situation.
Can you also check to see if you spot any of the Gamification migrations records in the migrations
table? You'd need to delete those related records in that table in order to run any of the Gamification migration again from scratch (more specifically post_votes
table first and possibly the foreign key constraint one)
- Edited
0.1.5
Fixed Issues 
- Fixed a foreign key constraint issue caused by the
2019_08_09_000000_add_votes_foreign_keys
migration when ran for the first time after it was later added to this extension and missing entities already had existed. This check will ensure that any rows with non-existent entities will get deleted so that the foreign key constraint can be added without any issues.
Updating 
composer update fof/gamification
php flarum migrate
[deleted] this should fix your issue
[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.