SMFHacks.com
SMFHacks
Community Suite
SMF Gallery Pro
SMF Store
SMF Classifieds
Newsletter Pro
Downloads System Pro
Ad Seller Pro
Badge Awards
Hacks and Mods
Latest SMF Hacks
TopTen Hacks
Styles and Themes
Add a Hack
Manage Hacks
Earn Money from Your Forum with these tips
SMF Theme Generator
SMF Package Parser
Free SMF Hosting
Buy Website Traffic
Site Showcase
Email Marketing Software
Search Forums
Advanced search
User
Welcome,
Guest
. Please
login
or
register
.
May 18, 2013, 01:01:41 am
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Stats
Members
Total Members: 10755
Latest:
henrywilliams0173
Stats
Total Posts: 32348
Total Topics: 5473
Online Today: 42
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 42
Total: 42
SMFHacks.com
Forum
Badge Awards
Presales
Help me program these awards... Add to list
0 Members and 1 Guest are viewing this topic.
« previous
next »
Pages:
[
1
]
Author
Topic: Help me program these awards... Add to list (Read 1798 times)
shuban
Badge Awards Customer
Full Member
Offline
Posts: 163
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
»
Logged
Biology-Forums.com - For All Your Science Needs
FrizzleFried
Badge Awards Member
Full Member
Offline
Posts: 128
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?!
Logged
shuban
Badge Awards Customer
Full Member
Offline
Posts: 163
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.
Logged
Biology-Forums.com - For All Your Science Needs
FrizzleFried
Badge Awards Member
Full Member
Offline
Posts: 128
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
»
Logged
shuban
Badge Awards Customer
Full Member
Offline
Posts: 163
Re: Help me program these awards... Add to list
«
Reply #4 on:
June 04, 2012, 04:03:54 pm »
Quote from: FrizzleFried on June 04, 2012, 03:52:16 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
Biology-Forums.com - For All Your Science Needs
shuban
Badge Awards Customer
Full Member
Offline
Posts: 163
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
Logged
Biology-Forums.com - For All Your Science Needs
FrizzleFried
Badge Awards Member
Full Member
Offline
Posts: 128
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?
Logged
FrizzleFried
Badge Awards Member
Full Member
Offline
Posts: 128
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?
Logged
FrizzleFried
Badge Awards Member
Full Member
Offline
Posts: 128
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?
Logged
SMFHacks
Administrator
Hero Member
Offline
Posts: 10987
Re: Help me program these awards... Add to list
«
Reply #9 on:
June 04, 2012, 05:05:51 pm »
Quote from: FrizzleFried 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?
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
Badge Awards Customer
Full Member
Offline
Posts: 163
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
Logged
Biology-Forums.com - For All Your Science Needs
FrizzleFried
Badge Awards Member
Full Member
Offline
Posts: 128
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.
Logged
shuban
Badge Awards Customer
Full Member
Offline
Posts: 163
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...
Logged
Biology-Forums.com - For All Your Science Needs
SMFHacks
Administrator
Hero Member
Offline
Posts: 10987
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.
Logged
FrizzleFried
Badge Awards Member
Full Member
Offline
Posts: 128
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
»
Logged
Pages:
[
1
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
SMFHacks.com
-----------------------------
=> News
=> Site Discussion
===> Suggestions
===> Bugs
-----------------------------
SMF Gallery Pro
-----------------------------
=> Announcements
=> Presales
=> Support
===> Bugs
===> Feature Requests
-----------------------------
SMF Store
-----------------------------
=> Announcements
=> Presales
=> Support
===> Guides and Tips
===> Feature Requests
===> Bugs
-----------------------------
SMF Classifieds
-----------------------------
=> Announcements
=> Presales
=> Support
===> Bugs
===> Feature Requests
-----------------------------
Downloads System Pro
-----------------------------
=> Announcements
=> Presales
=> Support
===> Feature Requests
===> Bugs
-----------------------------
Ad Seller Pro
-----------------------------
=> Presales
=> Support
-----------------------------
Menu Editor Pro
-----------------------------
=> Presales Menu Editor Pro
=> Bug Reports
-----------------------------
Inline Personal Messages
-----------------------------
=> Presales
=> Support
=> Bug Reports
-----------------------------
Newsletter Pro
-----------------------------
=> Presales
=> Support
===> Feature Requests
-----------------------------
Badge Awards
-----------------------------
=> Presales
=> Support
-----------------------------
Tweet Topics/FB Post System
-----------------------------
=> Presales
-----------------------------
Social Login Pro
-----------------------------
=> Presales
-----------------------------
SMF Gallery Lite
-----------------------------
=> SMF Gallery Lite
-----------------------------
Modifications/Themes
-----------------------------
=> General SMF Forum
=> Modifications Talk
===> Latest Mods
===> Modification Showcase
=> Theme Talk
===> Theme Showcase
===> Latest Themes
Recent
Feature Requests for SMF ...
by
Secure
[May 16, 2013, 10:13:46 pm]
stuck on "Processing" scr...
by
SMFHacks
[May 15, 2013, 11:32:14 pm]
[Request] - Award for any...
by
SMFHacks
[May 15, 2013, 11:31:24 pm]
SMF Gallery Pro 5.0.1 not...
by
SMFHacks
[May 12, 2013, 09:10:43 am]
Golf Theme
by
Serglike
[May 10, 2013, 03:49:55 am]
Display ads on every page...
by
SMFHacks
[May 07, 2013, 07:12:40 pm]
Edited simple ad code and...
by
ApplianceJunk
[May 07, 2013, 02:37:14 pm]
"non" error on bulk uploa...
by
SMFHacks
[May 06, 2013, 10:29:56 pm]
Can I give member an ad p...
by
fernowl
[May 04, 2013, 03:22:01 pm]
How to configure the Auto...
by
SMFHacks
[May 04, 2013, 01:08:57 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Loading...