Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4229
Latest: Ghost
New This Month: 3
New This Week: 0
New Today: 0
Stats
Total Posts: 43074
Total Topics: 7493
Most Online Today: 108
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 36
Total: 36

Author Topic: Still haven't gotten a custom badge to work  (Read 2199 times)

0 Members and 1 Guest are viewing this topic.

Offline shuban

  • Hero Member
  • *****
  • Posts: 665
    • View Profile
    • Biology Forums
Still haven't gotten a custom badge to work
« on: June 04, 2012, 03:26:51 pm »
I tried developing a badge for people who add a location...

Code: [Select]
$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;
}

}

I added it into here: http://biology-forums.com/index.php?action=badgeawards;sa=addbadge

And made reference to 'location'...

It was added properly, but when a member goes to add his/her location, the member doesn't get the badge, nor do they get an email reference.

What am I doing wrong?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16353
    • View Profile
Re: Still haven't gotten a custom badge to work
« Reply #1 on: June 04, 2012, 03:28:24 pm »
Posted an update in 1.0.5 adds an update to Profile.php to do better detection.
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: Still haven't gotten a custom badge to work
« Reply #2 on: June 04, 2012, 03:48:04 pm »
Posted an update in 1.0.5 adds an update to Profile.php to do better detection.

That made it work... Thanks :)

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
3568 Views
Last post January 28, 2008, 09:15:07 am
by draggar
10 Replies
4469 Views
Last post June 03, 2012, 07:53:10 pm
by SMFHacks
0 Replies
1543 Views
Last post June 07, 2012, 01:08:47 pm
by FrizzleFried
1 Replies
2543 Views
Last post June 07, 2012, 05:40:14 pm
by SMFHacks
0 Replies
2083 Views
Last post August 29, 2012, 08:27:40 am
by FrizzleFried

+- Recent Topics

Version 6.1.6 issues by davejo
Today at 02:21:44 pm

Follow / Follower Mod? by SMFHacks
September 23, 2023, 08:44:44 am

Looking for a good video player by replayuk
September 23, 2023, 12:17:39 am

[Mod]Discord Web Hooks by SMFHacks
September 22, 2023, 03:57:28 pm

SMF 2.1.4 Search by Anmer
September 22, 2023, 01:55:15 pm

Error in thise mode by Ghost
September 15, 2023, 08:42:24 am

Gallery Selection List Order by mickjav
September 07, 2023, 12:46:31 pm

[Mod]Tidy Child Boards 2.0 by Norwinjose
September 02, 2023, 11:42:54 am

PrettyUrls SEO Pro: Unable to submit sitemap to google search conmsole by SMFHacks
August 31, 2023, 10:55:22 am

PrettyURL - SEO4SMF Rewrites? by SMFHacks
August 28, 2023, 06:35:33 pm

Powered by EzPortal