Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 282
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 279
Total: 279

Author Topic: New User - Instant Badges ... Needs Tweaking  (Read 3620 times)

0 Members and 1 Guest are viewing this topic.

Offline FrizzleFried

  • Full Member
  • ***
  • Posts: 120
    • View Profile
New User - Instant Badges ... Needs Tweaking
« on: June 06, 2012, 12:29:22 am »
Ok... so I sign up as a new user.  During the process I simply fill out the fields as normal...

These are the badges I get right away:

Combination To Test123
Level 2 To Test123
Level 1 To Test123
Karma To Test123
Webmaster To Test123
Gender To Test123
Location To Test123
Avatar To Test123

OK... now, how do we get the COMBINATION badge to ignore this first set of badges as the way it works now,  it sort of defeats the purpose of the badge if you get it right away... right?

Also.. I think the Levels need to be tweaked upward slightly?  Can I do that manually? 

Finally... i am not sure why I am getting a karma badge... though the system DOES set you up with 100 karma from the get-go... how can I fix/tweak that badge to ignore the first 100 points?

Thanks!

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: New User - Instant Badges ... Needs Tweaking
« Reply #1 on: June 06, 2012, 12:00:07 pm »
Ok... so I sign up as a new user.  During the process I simply fill out the fields as normal...

These are the badges I get right away:

Combination To Test123
Level 2 To Test123
Level 1 To Test123
Karma To Test123
Webmaster To Test123
Gender To Test123
Location To Test123
Avatar To Test123

OK... now, how do we get the COMBINATION badge to ignore this first set of badges as the way it works now,  it sort of defeats the purpose of the badge if you get it right away... right?

Open Sources/badgeawards2.php

Find
Code: [Select]
$badgeAction = 'combination';
if (!in_array($badgeAction,$currentBadges))
Change to
Code: [Select]
$badgeAction = 'combination';
if (!in_array($badgeAction,$currentBadges) && count($currentBadges) > 6 )



Quote
Also.. I think the Levels need to be tweaked upward slightly?  Can I do that manually? 
Levels can be tweaked to in Open Sources/badgeawards2.php
Find parts like
Code: [Select]
$badgeAction = 'level1';
if (count($currentBadges) >= 1 && !in_array($badgeAction,$currentBadges))
$badgeAction = 'level2';
if (count($currentBadges) >= 5 && !in_array($badgeAction,$currentBadges))
And just raise the number in the cases above 1 and 5 to higher number and repeat for each you want to change.


Quote
Finally... i am not sure why I am getting a karma badge... though the system DOES set you up with 100 karma from the get-go... how can I fix/tweak that badge to ignore the first 100 points?

Find
Code: [Select]
$badgeAction = 'karma';
if ($memberContext[$memberID]['karma']['good'] != 0 && !in_array($badgeAction,$currentBadges))
{
Change to
Code: [Select]
$badgeAction = 'karma';
if ($memberContext[$memberID]['karma']['good']> 100 && !in_array($badgeAction,$currentBadges))
{
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 FrizzleFried

  • Full Member
  • ***
  • Posts: 120
    • View Profile
Re: New User - Instant Badges ... Needs Tweaking
« Reply #2 on: June 06, 2012, 12:28:26 pm »
Thank you...

It's now getting more and more difficult to keep track of which edits are being included in the next update and which I need to re-apply after the next update, etc..

Any way you can provide the code changes for each file with each update ... or provide a list of files that were update so we can manually drop those ones in rather than having to go through package manager then re-apply all the different updates that aren't included etc...

...or do you have a better solution/suggestion on how I should tackle this?

Thanks!

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: New User - Instant Badges ... Needs Tweaking
« Reply #3 on: June 06, 2012, 12:32:07 pm »
Best thing is get the trial of beyondcompare at http://www.scootersoftware.com/ it allows you to see what areas of the code were changed and you can just merge the changes.
Most of the changes I do are in sources/badgeawards2.php

Right now I am in the update phase of this mod so I am doing a lot of updates all the time as I add new features. i can also do slowly updates like once a week as well.
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 FrizzleFried

  • Full Member
  • ***
  • Posts: 120
    • View Profile
Re: New User - Instant Badges ... Needs Tweaking
« Reply #4 on: June 06, 2012, 12:43:03 pm »
Oh,  to be clear,  I am not complaining about updates... :)

Just trying to organize myself on how to get it done.   Posting which file(s) have been updated each update would go a long way to helping.

:)

 

Related Topics

  Subject / Started by Replies Last post
16 Replies
9734 Views
Last post June 03, 2012, 04:09:47 pm
by shuban
Custom Badges

Started by SMFHacks « 1 2 » Support

18 Replies
17853 Views
Last post May 14, 2018, 02:47:36 pm
by SMFHacks
1 Replies
3635 Views
Last post June 10, 2012, 09:44:06 am
by SMFHacks
3 Replies
5933 Views
Last post December 31, 2013, 03:29:37 pm
by SMFHacks
1 Replies
2721 Views
Last post December 31, 2014, 12:19:41 am
by shuban

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal