Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Leprechaun7377 on June 29, 2020, 12:20:14 PM

Title: Custom Achievements
Post by: Leprechaun7377 on June 29, 2020, 12:20:14 PM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=4262)

Add customizable achievements to your forum! No coding needed, manage it all from the admin UI.

Create your own achievements to be assigned to users. Achievement assignment can be done manually (including with a bulk assign/unassign ui) or automatically based on database fields. For automatic badges you decide what to reward. The script for automatic awarding runs every 2 hours, but you can configure that as needed. Achievements can also be assigned by providing a link to users that when clicked adds the assignment to their account (great for a puzzle or scavenger hunt).

Achievements show on profiles and users can select up to 4 achievements to show on posts.

Features

Support the developer (https://paypal.me/chrisjohndigital?locale.x=en_US)
Title: Re: Custom Achievements
Post by: sam666 on July 04, 2020, 07:20:58 AM
Great mod, thanks. Looks to be just the tool to encourage more user engagement  ;D
Title: Re: Custom Achievements
Post by: efk on July 04, 2020, 03:07:59 PM
Screenshots?
Title: Re: Custom Achievements
Post by: Leprechaun7377 on July 08, 2020, 04:14:40 PM
Here's a set of screenshots I have from a little bit before release. I don't think anything visually changed, but there might have been some minor adjustments like spacing after the screenshots.
Title: Re: Custom Achievements
Post by: efk on July 08, 2020, 09:42:23 PM
Can't see how does it looks like on profile. But mod itself looks similar to Member Awards mod and its purpose is awesome. I will install it in following days.
Title: Re: Custom Achievements
Post by: Dzonny on July 09, 2020, 09:39:33 AM
Nice one :)
I'd add screenshots in the mod description though.
Title: Re: Custom Achievements
Post by: Leprechaun7377 on July 09, 2020, 06:58:42 PM
Quote from: efk on July 08, 2020, 09:42:23 PM
Can't see how does it looks like on profile. But mod itself looks similar to Member Awards mod and its purpose is awesome. I will install it in following days.

I believe the two mods server similar purposes. Looking quickly at the Member Awards mod I believe mine is more flexible in that you can automatically give rewards based on nearly anything in the database though mine does require that you know the tables and columns of the database to accomplish that. I believe the Member Awards mod has a defined set of things that the awards can be automatically awarded from.

The screenshots I uploaded above did include the profile view, but I've added here a screenshot that shows more of the profile view for context.
Title: Re: Custom Achievements
Post by: Leprechaun7377 on July 09, 2020, 07:14:56 PM
Quote from: Dzonny on July 09, 2020, 09:39:33 AM
Nice one :)
I'd add screenshots in the mod description though.

Thanks! :)

I've added some screenshots in the mod description. I looked for but did not see how to add the "Below are some preview images of what the mod looks like when being used" that I see on some mods.
Title: Re: Custom Achievements
Post by: vbgamer45 on July 09, 2020, 08:49:50 PM
For that you just add an additional attachments as jpeg or png file and that makes it a screenshot.
Title: Re: Custom Achievements
Post by: Showstandards on December 13, 2020, 03:50:56 AM
Hi team,

For some reason this does not display on my posts or profiles.

I have assigned the award to the user but it's not displaying on profile or in posts by that user.

How can I get it to display on both profile and posts? Have I missed a setting?
Title: Re: Custom Achievements
Post by: efk on December 13, 2020, 07:31:48 PM
Did you tick Enabled box?
Title: Re: Custom Achievements
Post by: Leprechaun7377 on December 13, 2020, 07:37:38 PM
Did you assign an image to the achievements? I believe they won't show up if there's no image.

Achievements should always show up on profiles, but users can enable/disable achievements to show on their posts. If they aren't showing on posts, you should double check the user's settings for Achievements under Modify Profile.
Title: Re: Custom Achievements
Post by: Showstandards on December 13, 2020, 07:39:25 PM
Yes, it's enabled and yes, there is an image. I'm the user in question. Here's the show settings, profile. No achievements in post either.
Title: Re: Custom Achievements
Post by: Leprechaun7377 on December 13, 2020, 07:44:15 PM
Are there any errors showing up in the logs?
Title: Re: Custom Achievements
Post by: Showstandards on December 13, 2020, 08:31:41 PM
Quote from: Leprechaun7377 on December 13, 2020, 07:44:15 PM
Are there any errors showing up in the logs?

No, nothing recently from when I installed achievements addon, nothing related to achievements add on.
Title: Re: Custom Achievements
Post by: Leprechaun7377 on December 14, 2020, 06:59:37 AM
The mod needs to modify existing templates to display on posts and the profile. Did you install a theme after install? Did you check the install in other themes during install?
Title: Re: Custom Achievements
Post by: Showstandards on December 14, 2020, 06:15:35 PM
Quote from: Leprechaun7377 on December 14, 2020, 06:59:37 AM
The mod needs to modify existing templates to display on posts and the profile. Did you install a theme after install? Did you check the install in other themes during install?

No, the theme was there before I installed, I've only just installed it. I tried the default team, and with default it does show up in the profile but not in the posts. Is there something I need to change to make it work with a secondary theme?

I tried reinstall and the only thing that doesn't run is this, which I read is not essential?

12.   Execute Modification   ./Themes/default/languages/Modifications.english-utf8.php   Skipping file
Title: Re: Custom Achievements
Post by: Showstandards on December 14, 2020, 06:42:36 PM
I've got it working. Your reminder about templates made me have a proper look at install, and I didn't realise I had to check boxes next to the template before it installed them. I'm sorry guys! Thanks for the help!
Title: Re: Custom Achievements
Post by: Speed King on February 05, 2022, 12:27:00 PM
Just installed Custom Achievements mod on my 2.1 RC4 forum, PHP 8.0.
I get these errors:

[05-Feb-2022 14:38:34 Europe/Sofia] PHP Warning:  Undefined array key 2 in /home/bulataka/public_html/BNF/Sources/achievements/AchievementsAdmin.php on line 261
[05-Feb-2022 14:38:34 Europe/Sofia] PHP Warning:  Undefined array key 3 in /home/bulataka/public_html/BNF/Sources/achievements/AchievementsAdmin.php on line 261
[05-Feb-2022 14:38:34 Europe/Sofia] PHP Warning:  Undefined array key 1 in /home/bulataka/public_html/BNF/Sources/achievements/AchievementsAdmin.php on line 261
Title: Re: Custom Achievements
Post by: Strannik64 on February 14, 2022, 07:57:51 AM
How to make a reward for the number of topics created on the forum?
Title: Re: Custom Achievements
Post by: ATLANTIS29 on May 10, 2023, 08:20:26 AM
I know this is an old topic, so I know this might be a long shot but is there a way to change the max size of the image I want to use something 150x35 and some 35x35 which I thought I had done until I add a 2nd 3rd 4th achievement then it just squashes them down to fit on 1 row so how do i make it put 1 per row and maintain source image size?
Title: Re: Custom Achievements
Post by: vicente127 on September 16, 2023, 04:58:59 PM
Hello, I can't make the icons to work or show, only appears like a broken img, but the icons appear inside their config...

Captura de pantalla 2023-09-16 225805.png
Captura de pantalla 2023-09-16 225838.png
Title: Re: Custom Achievements
Post by: Diego Andrés on September 16, 2023, 05:29:51 PM
Inspect the expected path for those images.
Perhaps you need to add them to your theme as well?
Title: Re: Custom Achievements
Post by: vicente127 on September 16, 2023, 06:40:05 PM
I don't know, it's the default smf theme, and they are fine and accessible with the link :(
Title: Re: Custom Achievements
Post by: vicente127 on September 19, 2023, 06:48:23 AM
Quote from: Diego Andrés on September 16, 2023, 05:29:51 PMInspect the expected path for those images.
Perhaps you need to add them to your theme as well?

I found the issue, for some reason, the permissions were enough for the mod to show the images in the control panel, but they weren't enough to show for the 'public' so I just made the permissions 755 for the folder images inside achievements and now it works, thank you anyway, because in the end it helped inspecting the route of the image.

The new problem is inside posts... inspecting the images it shows like the images should be stored inside a folder called like the forum post and that's very weird... happens with Profile or any other URL that isn't index, since its there where the Source folder is stored.

Captura de pantalla 2023-09-19 125134.png
Title: Re: Custom Achievements
Post by: Kindred on September 19, 2023, 12:50:16 PM
Are you using prettyurls?
Title: Re: Custom Achievements
Post by: vicente127 on September 19, 2023, 05:17:32 PM
Yes, they are enabled.
Title: Re: Custom Achievements
Post by: vicente127 on September 20, 2023, 10:36:00 AM
Quote from: Kindred on September 19, 2023, 12:50:16 PMAre you using prettyurls?

This was the issue, any way to make them work together?
Title: Re: Custom Achievements
Post by: vbgamer45 on September 20, 2023, 12:44:12 PM
Looks like achievements images are using relative urls instead of absoulte which breaks subdirectories urls
Title: Re: Custom Achievements
Post by: Senkusha on December 21, 2023, 11:13:00 AM
This may be a dumb question, but what does Link do?
Title: Re: Custom Achievements
Post by: Diego Andrés on December 21, 2023, 01:14:16 PM
Where exactly?
Title: Re: Custom Achievements
Post by: Senkusha on December 21, 2023, 01:19:23 PM
In the Achievement Admin section:

LinkAvm.png
Title: Re: Custom Achievements
Post by: Diego Andrés on December 21, 2023, 01:34:34 PM
Looks like you use this to go a to a form where you can send the reward.