Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4260
Latest: Verrick
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 43323
Total Topics: 7527
Most Online Today: 276
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 299
Total: 300

Author Topic: Still haven't gotten a custom badge to work  (Read 2995 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: 16464
    • 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
4302 Views
Last post January 28, 2008, 09:15:07 am
by draggar
10 Replies
5483 Views
Last post June 03, 2012, 07:53:10 pm
by SMFHacks
0 Replies
2345 Views
Last post June 07, 2012, 01:08:47 pm
by FrizzleFried
1 Replies
3770 Views
Last post June 07, 2012, 05:40:14 pm
by SMFHacks
0 Replies
2972 Views
Last post August 29, 2012, 08:27:40 am
by FrizzleFried

+- Recent Topics

Failed to open stream: File name too long by Randem
June 21, 2024, 10:40:41 am

Attachment images Upsidedown or Sideways by SMFHacks
June 18, 2024, 10:53:24 am

JSON decode error: The maximum stack depth has been exceeded by SMFHacks
June 14, 2024, 10:15:16 pm

“Insert from Gallery” by donk
June 10, 2024, 01:26:57 pm

Pretty Urls extras by SMFHacks
May 13, 2024, 10:28:54 am

Mod question by Verrick
May 11, 2024, 02:42:50 pm

i have paid but cant download ad pro. by SMFHacks
May 02, 2024, 11:29:38 pm

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

Powered by EzPortal