inherit
yllaciledehcysP citsatkranS
161169
0
Nov 28, 2013 18:47:45 GMT -8
moonbeam
I have NO IDEA what "psychedelic insultment" is, but I'm clearly a victim of it!
7,230
December 2010
lmccull
|
Post by moonbeam on Nov 29, 2016 12:17:15 GMT -8
I'd have never thought of that! Thank you for the idea! You rock, ♥ ℒʊ√ ♥. Now I'll have to round up and re-size some more images when I get home.
|
|
inherit
(?)?
188910
0
Jan 26, 2013 13:30:48 GMT -8
♥ ℒʊ√ ♥
Clouds float into my life no longer to carry rain or usher storm but to add color to my sunset sky.
10,458
January 2013
luv
|
Post by ♥ ℒʊ√ ♥ on Nov 29, 2016 12:20:20 GMT -8
You're welcome, moonbeam . Since I use random loading images on our forum as well, it's second nature to me.
And no extra coding involved. Enjoy!
|
|
inherit
226892
0
Nov 24, 2024 14:02:56 GMT -8
m2marsh
Come find us again y'all!
925
November 2015
m2marsh
|
Post by m2marsh on Nov 29, 2016 14:54:17 GMT -8
moonbeam (and anyone else interested), To get the random number with Halloween Feature turned off, go into the Build of the plugin. Starting at Line 36 of the JS Component, you should see: $(this).remove(); //Current user's candy totals var dataCheck = pb.plugin.key('sh_obj_amount').get(userID); //If data exists for this user, increment. Otherwise, if (typeof dataCheck !== 'undefined') { var intprizeBag = parseInt(userprizeBag); var incrementNum; //If user has unlocked prize cloner, prize pickups can now range from 1 to x if (userprizeBag >= 20 && halloweenFeatures == 1) { incrementNum = Math.floor(Math.random() * 6) + 1; } else { incrementNum = 1; }
Line 44 is the one you want: if (userprizeBag >= 20 && halloweenFeatures == 1) {
If you want it only when Halloween Feature is off, change to: if (userprizeBag >= 20 && halloweenFeatures == 0) {
If you want the random number whether Halloween Feature is on or off, change it to this: if (userprizeBag >= 20) {
Adjust the userprizeBag >= 20 to a number that you want it random. For example, if you want it to start doing the random amount after 10 items are collected, change that to userprizeBag >= 10Be sure to save. EDIT: You can also change this line (same section): incrementNum = Math.floor(Math.random() * 6) + 1;
to alter the random number range. Just change the 6 to what you want for your upper limit. If you want a random number from 1 to 10 items, just change that line to this: incrementNum = Math.floor(Math.random() * 10) + 1;
I wondered why I stopped getting more than one at a time in my test. I'd turned off the Halloween features. I successfully went it and adjusted this as you outlined, and it is working just perfectly now. THANK YOU!
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,849
January 2015
msg
|
Post by Lynx on Nov 29, 2016 22:31:25 GMT -8
You're welcome, m2marsh. This line here: if (userprizeBag >= 20 && halloweenFeatures == 1) {
is basically saying "if the user's prize bag has 20 or more items (items collected) AND the Halloween feature is turned on, then do the random number (from the code under it) - otherwise, just increment by 1 (the else statement). For those who may not know, an AND statement works like this (using just 2 conditions): If TRUE and TRUE = TRUE If TRUE and FALSE = FALSE If FALSE and TRUE = FALSE If FALSE and FALSE = FALSE So, even if one has 20 or more items collected (TRUE), but the Halloween Feature was turned off (FALSE), the AND resulted in a FALSE so it dropped to the else statement to simply increment by 1. Likewise, if one had less than 20 items collected (FALSE), but the Halloween Feature was turned on (TRUE), it would still result in FALSE. An AND (&&) only results in TRUE if ALL conditions are TRUE. I could have just as easily changed the && (AND) to || (OR), but the result of that would mean that the random numbers would be used even if one had just got their first item(s) - as an OR only requires 1 condition to be TRUE to result as a TRUE. But, the Halloween Feature would have to be on for that to occur at that point in time. How OR works (using just 2 conditions): If TRUE or TRUE = TRUE If TRUE or FALSE = TRUE If FALSE or TRUE = TRUE If FALSE or FALSE = FALSE
|
|
inherit
235583
0
Dec 12, 2016 11:21:24 GMT -8
gardenmeister
8
August 2016
gardenmeister
|
Post by gardenmeister on Nov 30, 2016 17:46:31 GMT -8
I've noticed that this plug in conflicts with the Theme changer plug in. It makes the T for the theme changer disappear.
Is there any way to use both at the same time?
Thanks.
|
|
inherit
234793
0
Nov 30, 2023 8:54:46 GMT -8
mudgiemoo
88
July 2016
mudgiemoo
|
Post by mudgiemoo on Dec 1, 2016 7:51:00 GMT -8
Loving this and so are my members! Is there a way of seeing how many they have in a sort of leaderboard?
|
|
inherit
226892
0
Nov 24, 2024 14:02:56 GMT -8
m2marsh
Come find us again y'all!
925
November 2015
m2marsh
|
Post by m2marsh on Dec 1, 2016 8:11:17 GMT -8
Loving this and so are my members! Is there a way of seeing how many they have in a sort of leaderboard? I don't believe so. What I do is start a thread called the leaderboard or whatever. Anybody who wants to compete needs to post in that thread. Then when I'm about to turn the game off, I just go through and look at their avatars and score them myself on a final tally. I give little gif awards for the winners. That probably would be a real big pain if you had a ton of people who wanted to compete. Most of my folks really don't seem to want to. But they do have fun collecting the prizes.
|
|
inherit
234793
0
Nov 30, 2023 8:54:46 GMT -8
mudgiemoo
88
July 2016
mudgiemoo
|
Post by mudgiemoo on Dec 1, 2016 8:15:21 GMT -8
Thanks m2marsh, mine seem to love it and are embracing it at the start of the Christmas season. never mind, was just a thought
|
|
inherit
226892
0
Nov 24, 2024 14:02:56 GMT -8
m2marsh
Come find us again y'all!
925
November 2015
m2marsh
|
Post by m2marsh on Dec 2, 2016 6:30:39 GMT -8
One of my members is getting this error. But she says it clears up after clicking on the third or fourth prize.
Error Code: 32 Key: sh_obj_amount Object Id: 359
|
|
inherit
226892
0
Nov 24, 2024 14:02:56 GMT -8
m2marsh
Come find us again y'all!
925
November 2015
m2marsh
|
Post by m2marsh on Dec 2, 2016 9:42:40 GMT -8
One of my members is getting this error. But she says it clears up after clicking on the third or fourth prize. Error Code: 32 Key: sh_obj_amount Object Id: 359 A second member on my other forum just received a similar error. And she has about 47 prizes collected. You do not have permission to write to this key. Error Code: 32 Key: sh_obj_amount Object Id: 478 And now a third member has reported it. Anything I can fix at my end? They appear to still be able to play the game, even after the error triggers.
|
|
inherit
226892
0
Nov 24, 2024 14:02:56 GMT -8
m2marsh
Come find us again y'all!
925
November 2015
m2marsh
|
Post by m2marsh on Dec 2, 2016 13:23:44 GMT -8
Now another member is getting this:
Error Code: 32 Key: sh_obj_amount Object Id: 5
Is this a know issue? Should I expect it won't be fixed any time soon?
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,849
January 2015
msg
|
Post by Lynx on Dec 2, 2016 20:35:44 GMT -8
m2marsh, In the plugin settings, at the bottom of the What's the prize? tab, you should see a Read Permissions and a Write Permissions. What is your Write Permissions set at? If you have it set to Staff, be sure you have the Users can write to their own content: checkbox ticked. If it's not ticked, this would cause the error for them.
|
|
inherit
226892
0
Nov 24, 2024 14:02:56 GMT -8
m2marsh
Come find us again y'all!
925
November 2015
m2marsh
|
Post by m2marsh on Dec 3, 2016 6:27:40 GMT -8
m2marsh , In the plugin settings, at the bottom of the What's the prize? tab, you should see a Read Permissions and a Write Permissions. What is your Write Permissions set at? If you have it set to Staff, be sure you have the Users can write to their own content: checkbox ticked. If it's not ticked, this would cause the error for them. The Write Permissions were set to Staff, but that checkbox was ticked. I changed the Write Permissions to Everyone to see if that helps. I've had quite a few members say they are getting that error. But I never do, and other regular members have said they don't either. And it only happens intermittently to those it does affect. I've asked them to report if it has stopped now. THANK YOU for trying to help. We'll see if that does it!
|
|
inherit
205992
0
Nov 24, 2024 14:46:39 GMT -8
trixsey1
60
February 2014
trixsey1
|
Post by trixsey1 on Dec 4, 2016 3:04:24 GMT -8
I hope I've posted this is the right place, forgive me if I haven't.
I've tailored this plugin to suit my needs, which has been so easy and straightforward and the plugin is being enjoyed by my members. Thank you for this.
I was wondering though, would it be possible to make an interface where you can keep track of how many "items" the members are collecting?
I have my members collecting Christmas parcels which they put into their stockings and the member with the most parcels in their stockings at the end of December will receive a "little something" to let in the New Year.
I was hoping to do the same for an Easter Egg hunt next year too.
My members have asked if there is a way to keep track of this "score" other than just making a post and letting everyone pop their name down in that - I was hoping for something more cosmetic.
I'm not an expert on the coding side of things, but I do have a very basic understanding, any pointers you can give me would be greatly appreciated.
|
|
inherit
226892
0
Nov 24, 2024 14:02:56 GMT -8
m2marsh
Come find us again y'all!
925
November 2015
m2marsh
|
Post by m2marsh on Dec 5, 2016 10:05:16 GMT -8
m2marsh , In the plugin settings, at the bottom of the What's the prize? tab, you should see a Read Permissions and a Write Permissions. What is your Write Permissions set at? If you have it set to Staff, be sure you have the Users can write to their own content: checkbox ticked. If it's not ticked, this would cause the error for them. The Write Permissions were set to Staff, but that checkbox was ticked. I changed the Write Permissions to Everyone to see if that helps. I've had quite a few members say they are getting that error. But I never do, and other regular members have said they don't either. And it only happens intermittently to those it does affect. I've asked them to report if it has stopped now. THANK YOU for trying to help. We'll see if that does it! Update -- that did appear to fix the issue. No one has reported any errors for 48 hours now! Thanks again!
|
|