Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 191
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 187
Total: 187

Author Topic: Help me program these awards... Add to list  (Read 14805 times)

0 Members and 1 Guest are viewing this topic.

Offline shuban

  • Hero Member
  • *****
  • Posts: 665
    • View Profile
    • Biology Forums
Help me program these awards... Add to list
« on: June 02, 2012, 06:07:20 pm »
How do I add:

Uploader award: Given to anyone who uploads a file

Thank-O-Matic award Recieved: Given to anyone who gets a "Thank-you"

Thank-O-Matic award Given: Given to anyone who gives a "Thank-you"


Buddy Award: Given to anyone who has 1 buddy added, 5 buddies added, 10 buddies, 20 buddies, 30 buddies

Shop Award: Owns item in SMFShop

Credit Award: Given to people with 100 credits, 200, 500, 1000, 2000, 3000 credits...

Zero Credit Award: Has no more credits!

Sent Shop item: Given to anyone who has sent credits or an item in SMFShop

Top Poster: Highest number of posts in the week.

Sticky post award: Given to anyone who gets a sticky topic.

Custom Profile Award: Anyone who has added information in about me section of ultimate profile.

Hidden Member: Given to anyone who chooses not to be shown in the memberlist.

Night owl Award: Given to anyone who posts late.

Let's try to program these :)
« Last Edit: June 10, 2012, 09:33:27 pm by shuban »

Offline FrizzleFried

  • Full Member
  • ***
  • Posts: 120
    • View Profile
Re: Help me program these awards... Add to list
« Reply #1 on: June 03, 2012, 04:25:22 pm »
WORD GAME AWARD - Award given for making a post/reply with an admin set word of the day/week/month.

"OTHER" GALLERY AWARDS - You know you'll be asked how to implement this mod in to the "other" Gallery out there... including:
  Gallery Upload Award - Perhaps with levels like 10/50/100/etc
  Gallery Comment Award - For making "X" number of comments (also would be nice to have levels)
  Gallery Rating Award - For rating "X" number of images (same with the levels)

KNOWLEDGE BASE AWARD - Award for x number of articles submitted/accepted

SMF CHESS AWARD - Award for being at the top of the SMF CHESS leaderboard

SMF QUIZ AWARD - Award for being at the top of the SMF QUIZ leaderboard


...and if there was some way to implement this system with the Advanced Reputation Mod... that would rock...

HIGHEST REP AWARD - Award for most rep (or a top 5)

Perhaps even GIVE reputation for achieving some of the other awards?!


Offline shuban

  • Hero Member
  • *****
  • Posts: 665
    • View Profile
    • Biology Forums
Re: Help me program these awards... Add to list
« Reply #2 on: June 04, 2012, 03:50:20 pm »
To add an award for individuals that have a location program:

Add this to badgeawards.php

Quote
$badgeAction = 'location';
   if ($memberContext[$memberID]['location'] != '' && !in_array($badgeAction,$currentBadges))
   {
      $badgeID = GetBadgeIDByAction($badgeAction);
         $ret = AddBadgeToMember($memberID,$badgeID,false);
         if ($ret == true)
         {
            $currentBadges[] = $badgeAction;
            $newBadges[]  = $badgeAction;
         }

   }

Here is a graphic I created.

Offline FrizzleFried

  • Full Member
  • ***
  • Posts: 120
    • View Profile
Re: Help me program these awards... Add to list
« Reply #3 on: June 04, 2012, 03:52:16 pm »
Thank you Shuban!  Adding it now.

Do i add the badge to the CUSTOM folder?
« Last Edit: June 04, 2012, 03:54:07 pm by FrizzleFried »

Offline shuban

  • Hero Member
  • *****
  • Posts: 665
    • View Profile
    • Biology Forums
Re: Help me program these awards... Add to list
« Reply #4 on: June 04, 2012, 04:03:54 pm »
Thank you Shuban!  Adding it now.

Do i add the badge to the CUSTOM folder?

When you add a badge, it asks for you to upload an image... So you choose the image. No manual image uploads required.

Offline shuban

  • Hero Member
  • *****
  • Posts: 665
    • View Profile
    • Biology Forums
Re: Help me program these awards... Add to list
« Reply #5 on: June 04, 2012, 04:11:28 pm »
Here is the gender badge :)

Quote
$badgeAction = 'gender';
   if ($memberContext[$memberID]['gender']['name'] != '' && !in_array($badgeAction,$currentBadges))
   {
      $badgeID = GetBadgeIDByAction($badgeAction);
         $ret = AddBadgeToMember($memberID,$badgeID,false);
         if ($ret == true)
         {
            $currentBadges[] = $badgeAction;
            $newBadges[]  = $badgeAction;
         }

   }

Enjoy

Offline FrizzleFried

  • Full Member
  • ***
  • Posts: 120
    • View Profile
Re: Help me program these awards... Add to list
« Reply #6 on: June 04, 2012, 04:40:40 pm »
Dumb question perhaps... but yo do mean badgeawards2.php ... right?

Offline FrizzleFried

  • Full Member
  • ***
  • Posts: 120
    • View Profile
Re: Help me program these awards... Add to list
« Reply #7 on: June 04, 2012, 04:48:18 pm »
I pasted the code in to the badgeawards2.php file...

I added the 2 badges through admin.

I ran the Rrebadge Members routine... and...

Nothing.  No one got the two badges.

Did I do something wrong or will each member have to go in and re-edit their location to get the badge?

Offline FrizzleFried

  • Full Member
  • ***
  • Posts: 120
    • View Profile
Re: Help me program these awards... Add to list
« Reply #8 on: June 04, 2012, 04:53:23 pm »
I am doing something wrong as I just changed my location and gender and didn't get the badges.  I put the code above right under the MOBLE code in the badgeawards2.php file.  I labelled the badges Location and Gender... and action label I put "location" and "gender"... where did I go wrong?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Help me program these awards... Add to list
« Reply #9 on: June 04, 2012, 05:05:51 pm »
I am doing something wrong as I just changed my location and gender and didn't get the badges.  I put the code above right under the MOBLE code in the badgeawards2.php file.  I labelled the badges Location and Gender... and action label I put "location" and "gender"... where did I go wrong?

You want to put those in function Badge_CheckMember

Add after
Code: [Select]
$badgeAction = 'avatar';
if ($memberContext[$memberID]['avatar']['image'] != '' && !in_array($badgeAction,$currentBadges))
{
$badgeID = GetBadgeIDByAction($badgeAction);
$ret = AddBadgeToMember($memberID,$badgeID,false);
if ($ret == true)
{
$currentBadges[] = $badgeAction;
$newBadges[]  = $badgeAction;
}

}
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline shuban

  • Hero Member
  • *****
  • Posts: 665
    • View Profile
    • Biology Forums
Re: Help me program these awards... Add to list
« Reply #10 on: June 04, 2012, 05:19:46 pm »
Moreover, you may want to double check if those codes are compatible with 2.x, I'm using 1.x... SMFHacks could confirm this.

In your case, it's badgeawards2.php

Offline FrizzleFried

  • Full Member
  • ***
  • Posts: 120
    • View Profile
Re: Help me program these awards... Add to list
« Reply #11 on: June 04, 2012, 05:25:03 pm »
Actually... it works now that the code was moved per SMFHACKS instruction.

:)


Offline shuban

  • Hero Member
  • *****
  • Posts: 665
    • View Profile
    • Biology Forums
Re: Help me program these awards... Add to list
« Reply #12 on: June 04, 2012, 06:51:42 pm »
I changed the location badge, looked awkward...

Just resize it to 32 by 27 using windows resizer...

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Help me program these awards... Add to list
« Reply #13 on: June 10, 2012, 02:01:20 pm »
Is this the list everyone wants? If you can describe how each badge will look that will help or general idea


I like some of the graphics but I want everything to have a uniform look in order for me to include them into the mod.

So send me a list and I will then design them.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline FrizzleFried

  • Full Member
  • ***
  • Posts: 120
    • View Profile
Re: Help me program these awards... Add to list
« Reply #14 on: June 10, 2012, 04:52:11 pm »
My personal want list is above...

What ever badges you work on I recommend you focus on longevity badges first... ones that can have multiple iterations (IE: 10 gallery comment, 25 gallery comments, 50 gallery comments... or 10 posts rated,  25 posts rated,  50 posts rated, etc)... badges that are earned once get old fast.

I'm most interested in the Aeva Gallery badges first as I am trying to initiate activity in that area of my site.

EDIT: I will add one more that I seemed to manage to forget... and it's now being worked on by you I do believe...

Knowledge Base...

It would be awesome for a set of badges for KB... author badge (1, 10, 25)... rater badge (1, 10, 25, 50, etc).... comment badge (you get the trend).
« Last Edit: June 12, 2012, 07:16:38 am by FrizzleFried »

 

Related Topics

  Subject / Started by Replies Last post
8 Replies
8092 Views
Last post June 27, 2008, 05:17:42 pm
by CG Icon
0 Replies
10882 Views
Last post May 28, 2012, 08:30:10 pm
by SMFHacks
2 Replies
4567 Views
Last post January 25, 2013, 10:48:41 am
by AAMT
2 Replies
6769 Views
Last post August 25, 2014, 03:45:23 pm
by Parsnipnose3000
4 Replies
5318 Views
Last post September 11, 2014, 10:11:17 pm
by GenesisMUGEN

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

Powered by EzPortal