View Full Version : Forum Display Enhancements - Change Thread Icon Inline
Milad
09-21-2007, 10:00 PM
Syrian Medical Society (http://www.syrianmeds.net/) & vCharset Converter (http://www.vcharset.com/) present
Change Thread Icon Inline
This mod is sponsored by msu2k (https://vborg.vbsupport.ru/member.php?u=28016).
This product enables forum moderators to change thread icon to the next icon by a double click in the area of the thread icon.
This a rotation, one icon per double click. icons are ordered by their display order.
There will be an empty icon in the rotation to allow you to remove the thread icon.
This works in the Forum Display (thread listing) only.
Installation:
1) Upload the file change_threadicon.js to the directory 'clientscript'.
2) Import the attached XML product.
3) Click install to receive support & updates.
If you like it, then nominate it.
Best Regards ;)
soulface
09-22-2007, 05:31 AM
nice idea, installed...
OK, its working fine in default vb template but not on any custom template. so can you let us to the templates edit manually..
rayphua
09-22-2007, 08:28 AM
Does not work with 3.6.7PL1 using default theme.
Snake
09-22-2007, 11:19 AM
Thanks for this!
meraia
09-22-2007, 04:13 PM
Thanks
يعطيك الف عافية اخي ميلاد
وشهر مبروك
msu2k
09-23-2007, 10:24 PM
Thanks, it's working great for me. :)
jwaany
09-25-2007, 09:53 PM
Great..
good work bro..
installed..
leroub
11-04-2007, 01:16 AM
fantastic... :up:
installed.... thx...
yoyoyoyo
11-07-2007, 02:28 AM
thanks - works great
zglows
11-14-2007, 04:36 AM
cool!
yotsume
07-29-2009, 09:18 PM
Works great for me on vb3.7x default theme. I am glad I don't have too many icons because if you miss the one you want you have to cycle through all of them to get back to the one you want.
This could be improved upon but it is a quick way to change icons inline ajax style!
VERY NICE! THANKS!
Jo_RHU
07-24-2014, 03:05 PM
nice idea, installed...
OK, its working fine in default vb template but not on any custom template. so can you let us to the templates edit manually..
(SEE EDIT BELOW - kind of have it working...sort of.)
Same problem here. Not sure why it's not adding the 'ondblclick' code to the <td> when using a non-default style. I thought it might be because I had different "alt1" & "alt2" CSS classes for sticky threads, so changed it so that the sticky classes were added as well as the default alt1 & alt2.
That didn't work, so I tried to add the 'ondblclick' code by hand in the threadbits template like so:
<if condition="$show['threadicons']">
<td class="alt2<if condition="$show['sticky']"> alt2_sticky</if> ondblclick="change_threadicon_exec($thread[realthreadid]);">
<if condition="$show['threadicon']">
<img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" /><else />
</if>
</td>
</if>
But that hasn't worked either. Any thoughts on what I could do to get this working? I'll have another look at the code and see if I'm missing something.
Thanks in advance if anyone can advise.
Edited to add:
I kind of have it working, I had to add the threadicon id to to the image as well, as follows:
<if condition="$show['threadicons']">
<td class="alt2<if condition="$show['sticky']"> alt2_sticky</if>" ondblclick="change_threadicon_exec($thread[realthreadid]);"><if condition="$show['threadicon']"><img src="$thread[threadiconpath]" id="threadicon_$thread[realthreadid]" alt="$thread[threadicontitle]" border="0" /><else /> </if></td>
</if>
But now when I double click the icon, I get the spinning icon to show that it's changing but it doesn't move on to the next icon. If I refresh the page the next icon is there, so it is changing it but not showing me it without refreshing.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.