Advertisement:

Author Topic: Member Awards (2.0 Compatible!)  (Read 832996 times)

Offline Spuds

  • SMF Hero
  • ******
  • Posts: 1,798
  • Gender: Male
Member Awards (2.0 Compatible!)
« on: September 18, 2006, 03:14:03 PM »
Link to Mod

Notice: Development for SMF 1.1.x has ceased. Only compatibility and security fixes will be released.

Member Awards v2.2.3
By: JBlaze
Former Author: Fustrate
Original Author: JayBachatero


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

Features
  • This mod allows users with the permission to upload images that will serve as rewards.
  • These images can be assigned a name as well as from what they were earned (Ex. Contest, or the name of a game)
  • The image and the details assigned with the image are stored and can then be assigned to members.
  • Awards can be uploaded, assigned, and viewed in the admin panel.
  • The same image can be assigned to multiple members.
  • Once assigned, the member can view his/her album, as well as others.
  • They will be able to select their favorite image, as well as see who else has earned that award.
  • Those with correct permissions can edit the image and information assigned to that image, as well as completely delete it.
  • And more!

Support
Please use the modification thread for support with this modification. Personal messages for support are discouraged.

Languages
o English
o English UTF-8
If you have any translations for any other languages, I would be grateful if you would send them to me via PM or in the Mods topic.

Changelog
> Comment
+ Addition
- Error/bug fix

Version 2.2.3, November 8th, 2010
! Minor bugfixes

Version 2.2.2, November 4th, 2010
> Compatibility update for 2.0 RC4

Version 2.2.1, May 29th, 2010
- Fixed profile awards view bug. (Thanks to C4G-TK)
- Fixed assign error for members with less than 3 characters.

Version 2.2 May 11th, 2010
> Mod taken over by JBlaze
- Fixed pagination error in profile
- Fixed auto-suggest feature in admin
- Fixed other small errors
+ Rewrote admin and profile templates to be more "curvy"

Version 2.1.7 August 23rd, 2009
> This is the first "landmark" release. The upgrades were getting too big, so you'll now need to update to 2.1.6 before updating any further.
- Fixed admin area pagination bug
- Can now favorite multiple awards (finally!)
+ Added an "Awards List" in the member profile
« Last Edit: September 30, 2011, 09:38:19 AM by Spuds »

Offline littleone

  • Full Member
  • ***
  • Posts: 482
  • Gender: Male
Re: Member Awards
« Reply #1 on: September 18, 2006, 05:30:08 PM »
Ive been working with this mod since Friday, and its flawless now :)  I love it and Jay did an amazing job at it.  You guys will love this :)

Offline Fatherguido

  • Semi-Newbie
  • *
  • Posts: 56
  • Gender: Male
    • SportzMania,LLC
Re: Member Awards
« Reply #2 on: September 18, 2006, 06:08:46 PM »
Awesome! Can't wait to try it out

Offline JayBachatero

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,562
  • Gender: Male
    • @jaycreations on Twitter
    • JayBachatero.com
Re: Member Awards
« Reply #3 on: September 18, 2006, 06:11:12 PM »
Hey littleone how about some screenshots?  Since you have your page full of awards already :P.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Offline DrDom

  • Semi-Newbie
  • *
  • Posts: 53
Re: Member Awards
« Reply #4 on: September 18, 2006, 06:19:47 PM »
hi,
I like the idea of this mod a lot, and so installed it to try it on my test setup, which is a clean install of SMF 1.1 RC3, all seemed fine as I tested the different aspects of it, then I came across this error.

Code: [Select]
Database Error

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')
ORDER BY realName ASC' at line 4
File: C:\xampp\htdocs\SMFRC3\Sources\ManageAwards.php
Line: 635


This error only ocurs when the regular members is selected by itself, if any other group is selected with it then there is no error.




Offline JayBachatero

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,562
  • Gender: Male
    • @jaycreations on Twitter
    • JayBachatero.com
Re: Member Awards
« Reply #5 on: September 18, 2006, 06:45:11 PM »
DrDom try this file.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Offline DrDom

  • Semi-Newbie
  • *
  • Posts: 53
Re: Member Awards
« Reply #6 on: September 18, 2006, 06:56:09 PM »
hi jay,
Thanks for the speedy reply, i have tried the attached file, and now have this error

Code: [Select]
Database Error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')
ORDER BY realName ASC' at line 4
File: C:\xampp\htdocs\SMFRC3\Sources\ManageAwards.php
Line: 638

It looks like the same error but a different line number.
also if this helps, I am using
MySQL 4.1.14
PHP Version 5.0.5
Apache/2.0.54
 

Offline JayBachatero

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,562
  • Gender: Male
    • @jaycreations on Twitter
    • JayBachatero.com
Re: Member Awards
« Reply #7 on: September 18, 2006, 06:58:54 PM »
My mistake.  Silly me.  I just added something that it would sitll cause the error.  The problem is taht if you only have registered memebrs selected is a different query and the post value is unset so it's empty since it only one was selected.  I added a check to see if it was NOT empty but ended up doing if it was empty. :-[
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Offline DrDom

  • Semi-Newbie
  • *
  • Posts: 53
Re: Member Awards
« Reply #8 on: September 18, 2006, 07:03:41 PM »
hi jay,
perfect, it now works a treat, thank you for the speedy replies, and keep up the great work, its much appreciated.

regards

Offline JayBachatero

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,562
  • Gender: Male
    • @jaycreations on Twitter
    • JayBachatero.com
Re: Member Awards
« Reply #9 on: September 18, 2006, 07:22:37 PM »
Ok good.  I just updated the mod to 1.0.1.  Keep testing.:P
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Offline DrDom

  • Semi-Newbie
  • *
  • Posts: 53
Re: Member Awards
« Reply #10 on: September 18, 2006, 07:48:28 PM »
hi Jay,
MEMBER AWARDS
In Select Membergroups, if you select "Moderator", click next to continue, select an image,

under the image where it says "select Members" it's empty, no moderators names show up, obviously if I then click next to continue it displays this,

An Error Has Occurred!
You must select a member and/or award in order to continue

The same applies if a group is selected that has no members, so i was wondering, if it was possible to put a check in place to test if there are members in the group, and if no members , then dont display that group for selection.

Regards

Offline JayBachatero

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,562
  • Gender: Male
    • @jaycreations on Twitter
    • JayBachatero.com
Re: Member Awards
« Reply #11 on: September 18, 2006, 07:54:01 PM »
Umm do you have moderators though?

EDIT:  Since this is not a big bug I'll leave this for when something major shows up.  Or do oyu have members in the moderator group and it's not showing on the page?
« Last Edit: September 18, 2006, 07:56:22 PM by Jay The Code Monkey »
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Offline DrDom

  • Semi-Newbie
  • *
  • Posts: 53
Re: Member Awards
« Reply #12 on: September 18, 2006, 08:52:59 PM »
hi Jay,

Umm do you have moderators though?

yes i put moderators in place for the testing.

regards

Offline JayBachatero

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,562
  • Gender: Male
    • @jaycreations on Twitter
    • JayBachatero.com
Re: Member Awards
« Reply #13 on: September 18, 2006, 08:54:16 PM »
So they are not showing up?  Moderators or global moderators?
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Offline DrDom

  • Semi-Newbie
  • *
  • Posts: 53
Re: Member Awards
« Reply #14 on: September 18, 2006, 09:33:27 PM »
hi Jay,
Moderators do not show up, Global Moderators do show up

Regards

Offline JayBachatero

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,562
  • Gender: Male
    • @jaycreations on Twitter
    • JayBachatero.com
Re: Member Awards
« Reply #15 on: September 18, 2006, 09:38:34 PM »
Meh here you go.  I should've used the same stuff from manage news >_<.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Offline DrDom

  • Semi-Newbie
  • *
  • Posts: 53
Re: Member Awards
« Reply #16 on: September 18, 2006, 10:15:34 PM »
hi jay,
That seems to have cured it, at least thats got a few bugs sorted, and as its now 3:14 am here in the UK, i'm now going to get some sleep.

Regards

Offline JayBachatero

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,562
  • Gender: Male
    • @jaycreations on Twitter
    • JayBachatero.com
Re: Member Awards
« Reply #17 on: September 18, 2006, 10:22:17 PM »
Alright thanks for reporting these bugs.  I'll update the mod later this week and wait for other reports.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Offline TechnoDragon

  • Jr. Member
  • **
  • Posts: 374
  • Gender: Male
  • With great power comes great resposibility...
    • Dragon Talk Forum
Re: Member Awards
« Reply #18 on: September 19, 2006, 01:27:01 AM »
i know this may be a silly and worthless question...but any chance of making this work for rc2?  i have so many mods and code hacks to my borad that it is just not feasible to upgrade to rc3
Don't tell me to get into shape...I have a shape...It is round!


Offline Vinspire

  • Sr. Member
  • ****
  • Posts: 852
  • Gender: Male
    • The Box Of Heart Forum
Re: Member Awards
« Reply #19 on: September 19, 2006, 02:12:18 AM »
i know this may be a silly and worthless question...but any chance of making this work for rc2?  i have so many mods and code hacks to my borad that it is just not feasible to upgrade to rc3

I am facing the same problem too. Anyway, could someone post up the screenie for this mod please ?

Thanks :)