Quote:
Originally Posted by soulface
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:
PHP Code:
<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:
PHP Code:
<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.