SMFHacks.com

Badge Awards => Support => Topic started by: SMFHacks on June 04, 2012, 12:26:49 pm

Title: Custom Badges
Post by: SMFHacks on June 04, 2012, 12:26:49 pm
Need a custom badge developed?

We can do it for one time fee of $20. Includes badge design and coding to get it integrated.
Two Custom Badges $30
Five Custom Badges for $50
Title: Re: Custom Badges
Post by: shuban on June 04, 2012, 03:05:14 pm
Need a custom badge developed?

We can do it for one time fee of $20. Includes badge design and coding to get it integrated.
Two Custom Badges $30
Five Custom Badges for $50

I'm not liking this... You have to pay for custom badges? Why not just develop them together for free? I can see how the graphics should cost money, but this should be public knowledge, especially to customers. One of the reasons I bought this was so that we could create badges/awards on our own.
Title: Re: Custom Badges
Post by: SMFHacks on June 04, 2012, 03:12:53 pm
The graphics would cost me about $5 to $10 a piece per badge.
The other part is for my time for developing/writing the code if you are unable to do it yourself. Which can be pretty complex depending on what is asked and then developing the code to modify SMF.
Title: Re: Custom Badges
Post by: FrizzleFried on June 24, 2012, 09:50:37 am
These badges aren't working... how are they earned and do/when will they work?

Invisible
Group
Old Browser
Quick Poster
Never Sleep

These badges don't work because I don't have SMF Gallery... but the images could be used for AEVA Gallery ... I just need the code (hint hint)

Photographer
Gallery

These badges don't work because I don't use the standard Karma system... but the images could be re used for ADVANCED REPUTATION SYSTEM... since you do give positive and negative karma via the Advanced Reputation System,  I'm guessing it may be simple to get those to work with Advanced Rep System?

Karma Good
Karma Bad
("Karma" is working with the Advanced Rep System)
Title: Re: Custom Badges
Post by: SMFHacks on June 25, 2012, 11:56:20 am
Old Browser works for people with IE6.

Invisible will be earned when a person logins in hidden still needd to code.
Quick Poster earned when posting twice in a row 60 seconds had issues with it still working on it.
Never Sleep - Long period of time logged in to the site. Thinking a year still have to do it.
Group - Not sure yet I think I am going to do a member of any group other than default.



The other badges for avea and karma system would have to look at those mods and see where the triggers can be placed to have the badges auto earned.
Title: Re: Custom Badges
Post by: Dasher on April 16, 2013, 09:51:37 am
@Shuban: You still can  ;D   SMFhacks is just giving an option for people who can't or don't want to themselves.
Title: Re: Custom Badges
Post by: Xar on July 07, 2014, 04:09:43 pm
Are you still doing this, and what would be the cost of coding only, without images (I can make the images myself)?
Title: Re: Custom Badges
Post by: SMFHacks on July 07, 2014, 04:14:22 pm
Maybe it would depend on action of the badge what it is recording.
Title: Re: Custom Badges
Post by: Xar on July 08, 2014, 02:47:58 pm
Actually I need 3 action badges which are gained when subscribing.
Well, I suppose if you write the code it could be used for all of them with a small modification?

What I basically want:
I have three subscriptions, each subscription should give a badge to them.
The subscriptions are of course, membergroup based.
Title: Re: Custom Badges
Post by: SMFHacks on July 08, 2014, 03:03:38 pm
Is it though the subscription system of SMF?
Title: Re: Custom Badges
Post by: Xar on July 08, 2014, 04:30:07 pm
Of course  :).
Title: Re: Custom Badges
Post by: SMFHacks on July 08, 2014, 04:40:19 pm
So the badge is awarded when someone pays for a subscription via the SMF forum via paypal.

Looks do able. Would need the subscribe id for each subscription to set it up.
Title: Re: Custom Badges
Post by: Xar on July 09, 2014, 09:45:55 am
Well just the first three.
So the ID's I have are 1, 2 and 3.
Title: Re: Custom Badges
Post by: SMFHacks on July 09, 2014, 10:52:51 am
Open Sources/ManagePaid.php
Find
Code: [Select]

// Add or extend a subscription of a user.
function addSubscription($id_subscribe, $id_member, $renewal = 0, $forceStartTime = 0, $forceEndTime = 0)
{
global $context, $smcFunc;

// Take the easy way out...
loadSubscriptions();

// Exists, yes?
if (!isset($context['subscriptions'][$id_subscribe]))
return;

$curSub = $context['subscriptions'][$id_subscribe];


Add After

Code: [Select]

// Badge Awards
global $sourcedir, $user_info;
require_once($sourcedir . '/badgeawards2.php');
if ($id_subscribe == 1)
{
Badges_AwardBadge($id_member,'karmagood');
}

if ($id_subscribe == 2)
{
Badges_AwardBadge($id_member,'karmabad');
}

if ($id_subscribe == 3)
{
Badges_AwardBadge($id_member,'karmabad');
}

// End Badge Awards




Just change karmabad in the above code to the action for each new subscription badge you want to assign.
Title: Re: Custom Badges
Post by: Xar on July 09, 2014, 11:40:07 am
Wow, amazing.

Many thanks!
Title: Re: Custom Badges
Post by: exit on May 06, 2018, 04:05:00 pm
Hi there, it would be nice to have badges for some of your other popular mods, like trader and classifieds.

For instance:
good trader = > 10 positive feedbacks
Active seller = > 10 ads posted
Title: Re: Custom Badges
Post by: SMFHacks on May 06, 2018, 04:07:24 pm
Yeah would have to have the icons designed.
Title: Re: Custom Badges
Post by: exit on May 06, 2018, 04:24:05 pm
Done :D on .svg so it can be easily ported to any size for format.

Attached to the post...
Title: Re: Custom Badges
Post by: SMFHacks on May 14, 2018, 02:47:36 pm
I can get them added if you make them transparent and the following sizes
178 x 153
32 x27

If you look at the existing you will note their is a border.