Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
June 18, 2013, 11:14:39 pm

Login with username, password and session length
Members
Total Members: 10807
Latest: GoldDigger1950
Stats
Total Posts: 32558
Total Topics: 5507
Online Today: 95
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 1
Guests: 53
Total: 54
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2 Go Down Print
Author Topic: Help me program these awards... Add to list  (Read 2148 times)
shuban
Full Member
***
Offline Offline

Posts: 164


View Profile WWW
« 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 Smiley
« Last Edit: June 10, 2012, 09:33:27 pm by shuban » Logged

FrizzleFried
Badge Awards Member
Full Member
*****
Offline Offline

Posts: 128



View Profile
« 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?!

Logged
shuban
Full Member
***
Offline Offline

Posts: 164


View Profile WWW
« 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.
Logged

FrizzleFried
Badge Awards Member
Full Member
*****
Offline Offline

Posts: 128



View Profile
« 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 » Logged
shuban
Full Member
***
Offline Offline

Posts: 164


View Profile WWW
« 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.
Logged

shuban
Full Member
***
Offline Offline

Posts: 164


View Profile WWW
« Reply #5 on: June 04, 2012, 04:11:28 pm »

Here is the gender badge Smiley

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
Logged

FrizzleFried
Badge Awards Member
Full Member
*****
Offline Offline

Posts: 128



View Profile
« Reply #6 on: June 04, 2012, 04:40:40 pm »

Dumb question perhaps... but yo do mean badgeawards2.php ... right?
Logged
FrizzleFried
Badge Awards Member
Full Member
*****
Offline Offline

Posts: 128



View Profile
« 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?
Logged
FrizzleFried
Badge Awards Member
Full Member
*****
Offline Offline

Posts: 128



View Profile
« 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?
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11051


View Profile
« 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:
$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;
}

}
Logged
shuban
Full Member
***
Offline Offline

Posts: 164


View Profile WWW
« 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
Logged

FrizzleFried
Badge Awards Member
Full Member
*****
Offline Offline

Posts: 128



View Profile
« Reply #11 on: June 04, 2012, 05:25:03 pm »

Actually... it works now that the code was moved per SMFHACKS instruction.

Smiley

Logged
shuban
Full Member
***
Offline Offline

Posts: 164


View Profile WWW
« 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...
Logged

SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11051


View Profile
« 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.
Logged
FrizzleFried
Badge Awards Member
Full Member
*****
Offline Offline

Posts: 128



View Profile
« 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 » Logged
Pages: [1] 2 Go Up Print 
« previous next »
Jump to:  

Recent
[Today at 05:22:14 pm]

[Today at 07:27:33 am]

[Today at 06:10:04 am]

[June 17, 2013, 12:27:50 pm]

[June 16, 2013, 08:17:21 pm]

[June 16, 2013, 07:29:04 am]

[June 15, 2013, 08:34:38 pm]

[June 14, 2013, 10:28:18 pm]

[June 13, 2013, 11:00:52 pm]

[June 12, 2013, 03:37:47 am]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 1.563 seconds with 21 queries.