vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Display Enhancements - Change Thread Icon Inline (https://vborg.vbsupport.ru/showthread.php?t=158433)

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

Quote:

Originally Posted by soulface (Post 1344380)
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 />&nbsp;
</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 />&nbsp;</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.


All times are GMT. The time now is 11:00 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01120 seconds
  • Memory Usage 1,734KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete