freeb
New Member
Posts: 92
inherit
260290
0
May 19, 2024 15:44:59 GMT -8
freeb
92
January 2020
freeb
|
Post by freeb on Nov 11, 2021 12:27:53 GMT -8
Hello,
I was just curious as to whether something like seasonal falling items plug-in is available or can be used to work on just a thread as opposed to a board or forum. The reason I ask is because sometimes we have celebratory threads for members, and I was wondering if it's possible to have something like balloons when members go to that thread.
Thank you.
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Nov 11, 2021 19:23:11 GMT -8
Hello, I was just curious as to whether something like seasonal falling items plug-in is available or can be used to work on just a thread as opposed to a board or forum. The reason I ask is because sometimes we have celebratory threads for members, and I was wondering if it's possible to have something like balloons when members go to that thread. Thank you. An inspection of the specific plugin being asked about (a link to a forum where it is installed) would be necessary to see if it would be possible to construct a workaround. I recall there being quite a few plugins out there doing the falling items thing and every one using a different method of accomplishing the deed. Also indicate whether the plugin was left in an editable mode (you see a "Build Plugin" button when configuring the plugin in the admin panel) which would greatly simplify any proposed workaround.
|
|
inherit
darrenelliott@hotmail.com
129389
0
Sept 3, 2024 15:23:42 GMT -8
darrenvox
212
August 2008
darrenvox
|
Post by darrenvox on Nov 12, 2021 11:24:04 GMT -8
that would be cool...good plugin idea or workaround!!
|
|
freeb
New Member
Posts: 92
inherit
260290
0
May 19, 2024 15:44:59 GMT -8
freeb
92
January 2020
freeb
|
Post by freeb on Nov 21, 2021 6:28:44 GMT -8
Hello, I was just curious as to whether something like seasonal falling items plug-in is available or can be used to work on just a thread as opposed to a board or forum. The reason I ask is because sometimes we have celebratory threads for members, and I was wondering if it's possible to have something like balloons when members go to that thread. Thank you. An inspection of the specific plugin being asked about (a link to a forum where it is installed) would be necessary to see if it would be possible to construct a workaround. I recall there being quite a few plugins out there doing the falling items thing and every one using a different method of accomplishing the deed. Also indicate whether the plugin was left in an editable mode (you see a "Build Plugin" button when configuring the plugin in the admin panel) which would greatly simplify any proposed workaround. Hi, It's for a thread in a board on this forum: link
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Nov 22, 2021 17:52:23 GMT -8
That link is unfortunately not guest-friendly so I cannot see a thing except a guest must login page, no coding information or html structures to see how the code interacts with the target structures and PB metadata.
|
|
freeb
New Member
Posts: 92
inherit
260290
0
May 19, 2024 15:44:59 GMT -8
freeb
92
January 2020
freeb
|
Post by freeb on Nov 23, 2021 6:13:15 GMT -8
That link is unfortunately not guest-friendly so I cannot see a thing except a guest must login page, no coding information or html structures to see how the code interacts with the target structures and PB metadata. Can I PM you screenshots? My members like having the blue wall up. Could you get that info from my test forum?
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Nov 23, 2021 18:41:58 GMT -8
If you have the plugin installed on a test forum then that would probably suffice, I just need to look at a forum where the plugin in question is installed and has similar installed codes and HTML structure (theme) as the target forum. Please PM me the link
|
|
freeb
New Member
Posts: 92
inherit
260290
0
May 19, 2024 15:44:59 GMT -8
freeb
92
January 2020
freeb
|
Post by freeb on Nov 24, 2021 17:11:55 GMT -8
PM'd
|
|
freeb
New Member
Posts: 92
inherit
260290
0
May 19, 2024 15:44:59 GMT -8
freeb
92
January 2020
freeb
|
Post by freeb on Nov 25, 2021 5:46:05 GMT -8
Chris, you know how on the Falling Images V5 plug-in has the option to choose a custom board? Can you add the option for a custom thread?
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Nov 25, 2021 21:56:43 GMT -8
Chris , you know how on the Falling Images V5 plug-in has the option to choose a custom board? Can you add the option for a custom thread? Sorry for the delay, I was enjoying some time with my family. I downloaded the plugin after finding out which specific one you had installed on that forum in order to find out if it was left in an editable mode, unfortunately no edits to the plugin are possible since no "edit plugin" button was visible... I did however make a third-party patch code that would kick in if the plugin is configured in a specific way allowing the patch code to direct the plugin's code to fully execute only on specific threads. The plugin should be configured thus: - Placement: All Pages
- A board containing the thread or threads where the plugin should exclusively execute is chosen
In the full code posted below, a single line requires you to enter the ID (or IDs) of the thread(s) you wish to be targeted within the chosen board var ONLY_THIS_THREAD_ID = [ 14,2,4 ]; In the example code line above there are three threads identified (14,2 and 4). As a further example, the link to this particular thread is support.proboards.com/thread/668820/ so that line would be modified to var ONLY_THIS_THREAD_ID = [ 668820 ]; with the Plugins board chosen in the plugin settings if you wanted the thread here on support to be the target of that particular falling items plugin<script> /* Execute Falling Items Plugin on a Single Thread */ /* Install in GLOBAL HEADER */ /* Select the BOARD where the thread resides in the plugin's configuration */ /* Choose the ALL PAGES option in the plugin's configuration */
(function(retries=10){ /* BEGIN EDIT the ONLY_THIS_THREAD_ID variable below to the numeric ID of the thread where the plugin should only run */ var ONLY_THIS_THREAD_ID = [ 14,2,4 ]; /* END EDIT */ let p = pb.data('page'), f = pb.plugin.get('falling_images'), s = f.settings; if(s.placement == 2 && s.boardsearch && s.boardsearch.length){ if((!p.board || (s.boardsearch.indexOf(p.board.id+"")== -1)) || (!p.thread || ONLY_THIS_THREAD_ID.indexOf(p.thread.id) == -1)){ $(waitleaves(function (){ if(leaves.Cstep.length){ leaves.stop(!0); }else { leaves.loadem=leaves.makeem=leaves.movem=$.noop; } })); } } function waitleaves(f){ if(window.leaves){ return f(); }else if(--retries){ setTimeout(waitleaves.bind(null,f),100); } } })() </script>
|
|
freeb
New Member
Posts: 92
inherit
260290
0
May 19, 2024 15:44:59 GMT -8
freeb
92
January 2020
freeb
|
Post by freeb on Nov 26, 2021 4:47:12 GMT -8
Chris, I tried it on my test forum and it works like a charm, and just in time too because today is the member's birthday. Thank you so much! *hugs*
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Nov 26, 2021 6:19:09 GMT -8
Chris , I tried it on my test forum and it works like a charm, and just in time too because today is the member's birthday. Thank you so much! *hugs* If you are referring to the code installed on the test forum then that is an incorrect edit The indexOf returns a negative one if not found (not a negative three) and a positive or zero number indicating the position in the array if found. There would never be a situation where -3 is the return value. Only one line of that code needed to be edited and that was the line shown in my previous post.
|
|
freeb
New Member
Posts: 92
inherit
260290
0
May 19, 2024 15:44:59 GMT -8
freeb
92
January 2020
freeb
|
Post by freeb on Nov 26, 2021 7:57:21 GMT -8
Chris, yes, once I copied everything to my other forum, it didn't work right where the images were appearing on all the topics. But I tried it again with just putting the thread number on the first ID entry, and it worked great. Thanks again!
|
|
inherit
darrenelliott@hotmail.com
129389
0
Sept 3, 2024 15:23:42 GMT -8
darrenvox
212
August 2008
darrenvox
|
Post by darrenvox on Dec 22, 2021 18:16:32 GMT -8
could this be made to be a plugin??
|
|