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)

Milad 09-21-2007 10:00 PM

Change Thread Icon Inline
 
Syrian Medical Society & vCharset Converter present

Change Thread Icon Inline

This mod is sponsored by msu2k.

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

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 10:06 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.01119 seconds
  • Memory Usage 1,747KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (12)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete