Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
Change Thread Icon Inline Details »»
Change Thread Icon Inline
Version: 1.0.0, by Milad Milad is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 3.6.8 Rating:
Released: 09-21-2007 Last Update: Never Installs: 31
Uses Plugins Template Edits
Additional Files  
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 07-29-2009, 09:18 PM
yotsume's Avatar
yotsume yotsume is offline
 
Join Date: Dec 2006
Posts: 844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #13  
Old 07-24-2014, 03:05 PM
Jo_RHU Jo_RHU is offline
 
Join Date: Jan 2010
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by soulface View Post
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.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:46 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04190 seconds
  • Memory Usage 2,225KB
  • Queries Executed 17 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete