ElkArte Community

Extending Elk => Addons => Topic started by: Spuds on May 22, 2014, 12:31:43 pm

Title: [ADDON] Member Awards
Post by: Spuds on May 22, 2014, 12:31:43 pm
This is based on my updated member awards 3.0 (which is still a work in progress), although several sites seem to be using it with success.  Anyway I've been busy converting this over to Elkarte and the only edits still being made are the template ones to show the award boxes. 
This will work on 1.1 only at this point and PHP 7.x+

Member Awards V1.1.1

License
This Elkarte addon is released under a MPL V1.1 license, a copy of it with its provisions is included with the package.

Introduction
A system where members can be given awards to display in their profile and posts.

Features

Repository / Download
https://addons.elkarte.net/feature/Member-Awards.html / https://github.com/Spuds/Elk-Member-Awards/releases/download/1.1.1/elk-Member-Awards-1.1.1.zip
Title: Re: [ADDON][WIP] Member Awards
Post by: emanuele on May 24, 2014, 03:41:14 am
Quote from: Spuds – This will NOT work on beta 2 or even the current repo as I added a couple of hooks to make this work (PR in process).
/me feels Spuds is cheating. :P
Title: Re: [ADDON][WIP] Member Awards
Post by: overscan on November 28, 2014, 04:48:22 am
Not sure if this is abandoned but -

Title: Re: [ADDON][WIP] Member Awards
Post by: Spuds on November 28, 2014, 10:10:38 am
Thanks for the fix, you can be sure that if I worked on it, there will be a case problem somewhere :P
Title: Re: [ADDON][WIP] Member Awards
Post by: overscan on November 28, 2014, 01:12:21 pm
I would never do LAMP stack / php development on Windows. I say this as a senior Wintel engineer at a large IT provider :)

The safest approach to filename case in mixed Windows/Linux development is to use all lower case in filenames. Any time you use upper case you risk breakage.
Title: Re: [ADDON][WIP] Member Awards
Post by: Spuds on November 28, 2014, 07:21:03 pm
Indeed... they are so easy to miss, just look at all my but reports  O:-) . 

Generally I do my work on my windows machine and the directory I write to is on my *nix VPS.  So I save it and run the test on the *nix machine.  But there are times when I'm less than disciplined with that approach, you know for those safe, easy changes or when I'm lacking a good connection, then the wamp stack kicks in. 

I really should just set up one of my spare boxes to be a *nix machine and be done with the crazyness.
Title: Re: [ADDON][WIP] Member Awards
Post by: Eliana Tamerin on February 06, 2015, 03:03:55 pm
Hey, so, I'm going to use this on a board. Hurray, you have a user! ("C'mon, man, you know I'm good for it. Just one more hit, please.")

So, ahem, anyways, I have a few suggestions:

Also, a couple bugs to report:
Title: Re: [ADDON][WIP] Member Awards
Post by: Spuds on February 07, 2015, 04:52:03 pm
OK I'll get to looking at those, thanks for the reports (watch the repo for updates)
Title: Re: [ADDON][WIP] Member Awards
Post by: THC on March 01, 2015, 07:35:07 pm
I'd like to see this go a lot further. :)
Title: Re: [ADDON][WIP] Member Awards
Post by: Obamatron on March 30, 2015, 04:45:18 pm
Getting an error here. I'm not sure it was happening before 1.0.3. Re-installing didn't help, though I didn't try deleting all the associated data.
Spoiler (click to show/hide)
Title: Re: [ADDON][WIP] Member Awards
Post by: emanuele on March 30, 2015, 04:55:19 pm
/me feels Spuds forgot a tiny little text string. :P

As a temporary measure you can add:
Code: [Select]
$txt['awards'] = 'Awards';
to your Addons.english.php (or Addons.{your_language}.php).
Title: Re: [ADDON][WIP] Member Awards
Post by: Auctor Lucan on November 30, 2018, 02:39:28 am
Hi there!

I am working on my fresh install of 1.1.5 and I am getting this error message for Member Awards (which we love on my site) and I would be awesome if you guys could help me out. I have the Silence theme installed, icons modded in accordance with the Addon thread for that theme. (See attachment)

Should I install it and see how it goes? :)

Best,

Auctor Lucan
Title: Re: [ADDON][WIP] Member Awards
Post by: tino on March 05, 2021, 11:41:58 am
@Spuds do you have a version of this which works on Elkarte 1.1?
Title: Re: [ADDON][WIP] Member Awards
Post by: Spuds on March 05, 2021, 11:52:19 am
Just checked my local repo and there is no 1.1, so apparently I never updated it :( .... There are a few un pushed changes to do with directory structure but I have no idea what they are about any longer.  Looks like I got sidetracked!
Title: Re: [ADDON][WIP] Member Awards
Post by: tino on March 05, 2021, 12:41:54 pm
Thanks for the reply, any idea on the work needed to get it working? I don’t know the changes from 1.0 to 1.1 well enough really.
Title: Re: [ADDON][WIP] Member Awards
Post by: Spuds on March 05, 2021, 03:32:39 pm
Its been awhile since I did updates,  I think the main areas were

- in how settings are saved (1.1 uses the settings abstract class) and the theme layers.
- the theme class was improved and I think it will all work but may add depreciated calls to the elk error log. 
- the exception class was updated so calls to things like fatal language are out and you need to use exceptions
- menu class was added/upgraded, again I think the code takes care of all that but its depreciated
- bbc class was added so any custom bbc needs to be redone

Probably a few other things that I'm forgetting now.
Title: Re: [ADDON][WIP] Member Awards
Post by: Spuds on December 10, 2021, 08:31:33 pm
Attached is a 1.1 / 7.4 version, most of this was in the repo already but this adds some more fixin's

There is a 'Rankings' branch in the repo as well, that is where this addon is going but I'm not sure if / when I'll finish that, so till then use the attached.

ETA: Found a couple of small template errors and an error when adding to the db, fixed in this new attachment
Title: Re: [ADDON] Member Awards
Post by: Spuds on December 29, 2022, 06:34:42 pm
Small bump to version 1.1.1  :shocked:

This update fixes a few issues reported since the 1.1 release.  The link is on the addon site (see first post).