inherit
211154
0
Nov 19, 2024 15:11:54 GMT -8
shaxper
256
July 2014
classiccomicsforum
|
Post by shaxper on Feb 6, 2016 17:26:34 GMT -8
Hi, I'm not entirely sure I understand what I'm requesting here, but I was redirected by Ulises here. Essentially, I have a subsection on my site where I want to be able to use a different icon for my threads than the rest of the board. I guess I need a special custom code to place in my headers in order to do this?? my website is: classiccomics.boards.net/The sections I am trying to customize with a different thread icon can all be found here: classiccomics.boards.net/board/44/usagi-yojimbo-dojoboard-forumThank you in advance, and I apologize for my ignorance. Jeff
|
|
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 Feb 7, 2016 0:55:34 GMT -8
Just to be clear, when you say "thread icons" you mean $[thread.icon] ...or do you mean $[thread.icon s] ?
|
|
inherit
211154
0
Nov 19, 2024 15:11:54 GMT -8
shaxper
256
July 2014
classiccomicsforum
|
Post by shaxper on Feb 7, 2016 7:15:57 GMT -8
Just to be clear, when you say "thread icons" you mean $[thread.icon] This. Specifically replacing the "Approved by the Comics Code" images with something else for specific sections of the board, as well as the "hot topic" image. Thanks for the quick reply!
|
|
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 Feb 7, 2016 12:26:16 GMT -8
So pinned, locked, announcements and any other combinations resulting from those three are to be left alone? By the way you should read " hot topics are no longer cool"
|
|
inherit
211154
0
Nov 19, 2024 15:11:54 GMT -8
shaxper
256
July 2014
classiccomicsforum
|
Post by shaxper on Feb 7, 2016 19:48:27 GMT -8
So pinned, locked, announcements and any other combinations resulting from those three are to be left alone? Exactly! Though I could easily just provide the old images again if it's an all-or-nothing situation. I completely missed that. I've been so busy developing this new subsection over the past two weeks. Man, I feel like a lousy site admin!
|
|
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 Feb 7, 2016 20:25:24 GMT -8
Try this board footer:<!-- replace normal thread icons --> <script> $('.item.thread:not(.sticky,.announcement,.locked) .icon img').attr('src','REPLACEMENT IMAGE URL HERE'); </script>
That forum looks well tended to me shaxper
|
|
inherit
211154
0
Nov 19, 2024 15:11:54 GMT -8
shaxper
256
July 2014
classiccomicsforum
|
Post by shaxper on Feb 8, 2016 17:58:52 GMT -8
Try this board footer:<!-- replace normal thread icons --> <script> $('.item.thread:not(.sticky,.announcement,.locked) .icon img').attr('src','REPLACEMENT IMAGE URL HERE'); </script>
That forum looks well tended to me shaxper Worked like a charm, Chris! Thanks so much, as always, for your help (and your kind words)!
|
|
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 Feb 8, 2016 19:20:17 GMT -8
Worked like a charm, Chris! Thanks so much, as always, for your help (and your kind words)! Now that the subsection in question is visible to the public I can see that there is a legend and the original icon in that legend remains so if you want to address that then try this modified code instead: <!-- replace normal thread icons --> <script> $('.item.thread:not(.sticky,.announcement,.locked) .icon img') .each(function(i,e){ var replacement_url = 'http://storage.proboards.com/5603554/i/w2YFfHW1J0l1m0Vblxix.jpg'; if(!i){ $('.container.legend img[src$="' + this.src.split(/\//).pop() + '"]').attr('src',replacement_url) } $(this).attr('src',replacement_url); }) </script>
|
|
inherit
211154
0
Nov 19, 2024 15:11:54 GMT -8
shaxper
256
July 2014
classiccomicsforum
|
Post by shaxper on Feb 9, 2016 16:46:06 GMT -8
Above and beyond as always, Chris! Thank you so very much!!
|
|