inherit
170267
0
Dec 31, 2013 18:07:02 GMT -8
cerasri
165
August 2011
cerasri
|
Post by cerasri on Apr 21, 2013 17:07:41 GMT -8
Alright, so I'm trying to play around with the participated threads button and if possible, I'd like to make it an image instead. I tried linking an image with "/threads/participated" however it did not bring up the pop up menu and did not direct anywhere. If anyone could help me with this, I'd greatly appreciate it~
Thanks in advance c:
|
|
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 May 19, 2014 17:40:46 GMT -8
Judging by the time that has passed since this request I'll guess you've either figured it out on your own or given up on the idea. I'll however post a solution since it might help someone else who may wish to do the same.
<script type="text/javascript"> $(function () { var rtb = $('.recent-threads-button'), rth = rtb.data('events').click[0].handler, rtimg = 'http://images.proboards.com/v5/icons/board-no-new-post.png', rtimgnew = 'http://images.proboards.com/v5/icons/board-new-post.png', rti = $('<img src="' + (rtb.hasClass('new')?rtimgnew:rtimg) + '" style="border:0 none;height:auto;" class="recent-threads-button recent-threads-image"/>') rtb.replaceWith(rti); rti.on('click', rth) }) </script>
You can place the above in your forum wrapper and adjust the images accordingly. A class of recent-thread-image has also been added in case you wish to target the image with CSS
|
|