Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 18, 2013, 07:32:19 am

Login with username, password and session length
Members
Total Members: 10755
Latest: henrywilliams0173
Stats
Total Posts: 32348
Total Topics: 5473
Online Today: 50
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 37
Total: 37
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Poll Badge Update Question  (Read 1333 times)
FrizzleFried
Badge Awards Member
Full Member
*****
Offline Offline

Posts: 128



View Profile
« on: August 10, 2012, 05:45:25 pm »

If I took the Poll Badge... and then copy/pasted the badge right below... changed the action name to something else and changed this line:
      
      if ($totalRow['total'] > 0)

to read

      if ($totalRow['total'] > 25)
      
I could create a "poll master" badge that would be awarded to someone who created more than 25 polls... right?

Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 10987


View Profile
« Reply #1 on: August 10, 2012, 06:54:07 pm »

Yes it would
Logged
FrizzleFried
Badge Awards Member
Full Member
*****
Offline Offline

Posts: 128



View Profile
« Reply #2 on: August 11, 2012, 03:01:04 pm »

Works like a charm!  

If anyone wants to use the modified badges I made... have at it...

Oh... I also left the COMBINATION badge at 5 and made a SUPER COMBINATION badge set for 10...(also attached).
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 10987


View Profile
« Reply #3 on: August 24, 2012, 10:51:25 pm »

Adding these badges for 1.0.13 so you do not have to edit it anymore thanks FrizzleFried
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 10987


View Profile
« Reply #4 on: August 24, 2012, 11:05:14 pm »

FrizzleFried what actions are you using for these?
I don't want to cause an issue with doubled badges in your case.

Code:
// New badges 1.0.13
db_query("INSERT IGNORE INTO {$db_prefix}badgeawards_badges
(action, title, description, image)
VALUES
('supercombo', 'Super Combination','Super Combination Award earning ten or more badges in one day','combination10.png'),
('poll10', '10 Polls','Start 10 poll topics on the forum','poll10.png'),
('poll25', '25 Polls','Start 25 poll topics on the forum','poll125.png'),
('poll50', '50 Polls','Start 50 poll topics on the forum','poll150.png'),
('poll100', '100 Polls','Start 100 poll topics on the forum','poll100.png'),
('pollvote10', '10 Poll Votes','Having voted in 10 poll topics','pollvote10.png'),
('pollvote10', '25 Poll Votes','Having voted in 25 poll topics','pollvote25.png'),
('pollvote50', '50 Poll Votes','Having voted in 50 poll topics','pollvote50.png'),
('pollvote100', '100 Poll Votes','Having voted in 100 poll topics','pollvote100.png')
", __FILE__, __LINE__);
Logged
FrizzleFried
Badge Awards Member
Full Member
*****
Offline Offline

Posts: 128



View Profile
« Reply #5 on: August 24, 2012, 11:31:38 pm »

poll10
poll25

etc...

and

pollvote10
pollvote25

etc...

For each of the numbered images above.

I left the original "1" actions alone.


EDIT: Also take note that the code you listed above has pollvote10 listed twice (one should be pollvote25).
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 10987


View Profile
« Reply #6 on: August 24, 2012, 11:32:56 pm »

Got it what about the combination one? If  I get that action can update tonight.
Logged
FrizzleFried
Badge Awards Member
Full Member
*****
Offline Offline

Posts: 128



View Profile
« Reply #7 on: August 25, 2012, 01:05:02 am »

Got it what about the combination one? If  I get that action can update tonight.

Sorry man... was in the middle of watching a show with the ole lady...

supercombination

That is what I called it...I can change it though if necessary..

Also... I did levels of "karma" as well... but it really is only appropriate for using with the Advanced Rep mod (the levels that is)...

The badge graphic itself isn't going to work for general purposes ... we call reputation "NUT" and the badge is the "Golden Acorn" badge...

Wink

Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 10987


View Profile
« Reply #8 on: August 25, 2012, 10:28:19 am »

Cool thanks release posted.
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[May 16, 2013, 10:13:46 pm]

[May 15, 2013, 11:32:14 pm]

[May 15, 2013, 11:31:24 pm]

[May 12, 2013, 09:10:43 am]

[May 10, 2013, 03:49:55 am]

[May 07, 2013, 07:12:40 pm]

[May 07, 2013, 02:37:14 pm]

[May 06, 2013, 10:29:56 pm]

[May 04, 2013, 03:22:01 pm]

[May 04, 2013, 01:08:57 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 1.325 seconds with 21 queries.