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 Dec 17, 2016 20:55:48 GMT -8
Aw, Lynx ~ I'm so sorry to read that. I completely understand. Since my head-on collision, I'm the same.
PS: I'm glad I figured out how to change that dang orange box in our mini-profiles with the number of candies we collect. I wanted it to be a Christmas color and now it is.
|
|
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 Dec 17, 2016 23:18:00 GMT -8
Lynx ~
I've actually made the image animated with CSS and it now moves up and down on the page! Woo-Hoo!!!!!
|
|
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 Dec 17, 2016 23:24:16 GMT -8
If anyone else would like their image to move slightly up and down on the page, as well, go to the "Build Plugin" area of the plugin.
In the "Components" area, in the CSS section, add this bit to the bottom of that section ~
img.scavengerPrize.levitate { -webkit-animation: mover 2s infinite alternate; animation: mover 2s infinite alternate; } @-webkit-keyframes mover { 0% { transform: translateY(0); } 100% { transform: translateY(-20px); } } @keyframes mover { 0% { transform: translateY(0); } 100% { transform: translateY(-20px); } }
|
|
inherit
223366
0
Jun 20, 2024 5:38:45 GMT -8
mikemcd
176
July 2015
mikemcd
|
Post by mikemcd on Dec 19, 2016 9:49:45 GMT -8
Wait... Um, what I said earlier about key access must be wrong. You can see other people's data in mini profiles so my logic is messed up.
Still, getting the counts on the member pages... Possible, but sorting it is another thing entirely.
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,848
January 2015
msg
|
Post by Lynx on Dec 19, 2016 10:12:53 GMT -8
If I get time, I'll try something out on my test forum. We might be able to use a class="clickable sortable" on the table for a leaderboard column. Not sure if it would work though, so it'll need testing. I'm currently busy trying to get the next alpha patch of my game out to my testers, so it depends on how quickly I can get that done.
|
|
inherit
222558
0
Nov 25, 2024 2:25:55 GMT -8
Willow
This font!
835
June 2015
willowelf
|
Post by Willow on Dec 20, 2016 17:57:07 GMT -8
I went through this thread but can't seem to find the answer. Is there a way to see (from an admin POV) the number of items collected by my members in one place? For example if I wanted to see who has collected the most.
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,848
January 2015
msg
|
Post by Lynx on Dec 20, 2016 19:30:21 GMT -8
Willow, As far as I know, not right now. I think (and I could be wrong) that mikemcd is working out just such coding to have a leaderboard function. Not sure on the progress, though, if this is the case. I haven't had much time to work on any plugin (trying to get a mod version of Scavenger Hunt to work, plus a few of my own plugins need updates) as I'm working on another project at the moment - which has been throwing out quite a few bugs with new stuff I've added (it's not a plugin though, it's a game I'm working on). I probably won't be able to allocate any time to plugins until after the new year.
|
|
inherit
223366
0
Jun 20, 2024 5:38:45 GMT -8
mikemcd
176
July 2015
mikemcd
|
Post by mikemcd on Dec 20, 2016 19:33:48 GMT -8
I'm inept at figuring out how to code. I'm just a hack. That doesn't mean I won't eventually figure it out, it just may take a few months of determination.
|
|
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 Dec 22, 2016 21:12:01 GMT -8
Lynx , I think this should be an easy fix.
Line #94 in components ~
proboards.alert("Trick or Treat!", "<img style='float:left; padding:15px; padding-right:20px;' src='" + pb.plugin.get('scavenger_hunt').settings.container_image_url + "'>" + prizeNum + " " + pb.plugin.get('scavenger_hunt').settings.prize_name_plural + " in " + userName + "'s bag!<br><br>" + pb.plugin.get('scavenger_hunt').settings.container_text);
It was quick and easy to change Trick or Treat to what I wanted. However, it should be picking up the user's name ~ and it's not. It' just showing the 's without the user's name!
This is the popup alert that shows when you click on the "container image" with the number count for items collected.
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,848
January 2015
msg
|
Post by Lynx on Dec 22, 2016 21:34:59 GMT -8
Lynx , I think this should be an easy fix.
Line #94 in components ~
proboards.alert("Trick or Treat!", "<img style='float:left; padding:15px; padding-right:20px;' src='" + pb.plugin.get('scavenger_hunt').settings.container_image_url + "'>" + prizeNum + " " + pb.plugin.get('scavenger_hunt').settings.prize_name_plural + " in " + userName + "'s bag!<br><br>" + pb.plugin.get('scavenger_hunt').settings.container_text);
It was quick and easy to change Trick or Treat to what I wanted. However, it should be picking up the user's name ~ and it's not. It' just showing the 's without the user's name!
This is the popup alert that shows when you click on the "container image" with the number count for items collected.
View Attachment
Where is userName defined at? If it's not defined, then it's an empty string, hence why nothing will show. If that's for just the popup for the current user, replace userName with pb.data('user').username to have it display the current user's name. For the complete line you've listed above, it should look like this when done: proboards.alert("Trick or Treat!", "<img style='float:left; padding:15px; padding-right:20px;' src='" + pb.plugin.get('scavenger_hunt').settings.container_image_url + "'>" + prizeNum + " " + pb.plugin.get('scavenger_hunt').settings.prize_name_plural + " in " + pb.data('user').username + "'s bag!<br><br>" + pb.plugin.get('scavenger_hunt').settings.container_text);
NOTE: pb.data('user') only gets the current user - so it can't be used in parts that may display on, for example, a mini-profile. It's the JS equivalent to the template variable $[current_user] and won't work in places that use the equivalent of $[user]. I hope that makes sense.
|
|
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 Dec 22, 2016 21:40:32 GMT -8
Lynx ~
I haven't changed any original code so would think it would have been automatically defined in David's version.
The only thing changed was the numbers for how many candy canes could be found.
The entire section for that particular bit is ~
function clickBag() { var prizeNum = $(this).find(".prizeNum").text(); var userName = $(this).parent().find(".user-link").text(); proboards.alert("Trick or Treat!", "<img style='float:left; padding:15px; padding-right:20px;' src='" + pb.plugin.get('scavenger_hunt').settings.container_image_url + "'>" + prizeNum + " " + pb.plugin.get('scavenger_hunt').settings.prize_name_plural + " in " + userName + "'s bag!<br><br>" + pb.plugin.get('scavenger_hunt').settings.container_text); } And isn't line #3 defining the user link?
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,848
January 2015
msg
|
Post by Lynx on Dec 22, 2016 21:52:40 GMT -8
My bad. I was looking in the wrong section of code. Sorry.
|
|
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 Dec 22, 2016 21:56:09 GMT -8
No problem. I'm sure it was this way on the original Halloween hunt.
Not too many folks click on that container image!
|
|
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 23, 2016 9:51:07 GMT -8
I hadn't noticed the Trick or Treat thing, because I've never clicked on that container. I hope some of these things will be available in Lynx 's newer update to this plugin. Or at least maybe a help guide that tells us how to go make these adjustments in one place. Thanks!
|
|
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 Dec 23, 2016 11:33:05 GMT -8
The Trick or Treat is very easy to change, m2marsh .
function clickBag() { var prizeNum = $(this).find(".prizeNum").text(); var userName = $(this).parent().find(".user-link").text(); proboards.alert("Trick or Treat!", "<img style='float:left; padding:15px; padding-right:20px;' src='" + pb.plugin.get('scavenger_hunt').settings.container_image_url + "'>" + prizeNum + " " + pb.plugin.get('scavenger_hunt').settings.prize_name_plural + " in " + userName + "'s bag!<br><br>" + pb.plugin.get('scavenger_hunt').settings.container_text); }
Just change the "Trick or Treat" in the fourth line to words of your choosing. Remember to keep the quotation marks in.
But the member's name not showing is tough to figure out. When I changed userName to userID ~ a number did appear in that location.
|
|