Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[AJAX] Thread Bumping 1.1 Details »»
[AJAX] Thread Bumping 1.1
Version: 1.2, by sebbe sebbe is offline
Developer Last Online: Jan 2011 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 3.6.4 Rating:
Released: 01-27-2007 Last Update: 09-14-2007 Installs: 71
Uses Plugins Template Edits
Additional Files  
No support by the author.

[AJAX] Thread Bumping 1.2

What is this?
This hack well let you bump threads and make them show up at the top of the forum again even though no new post has been added to it. This is done by simply double clicking in a cell on forumdisplay (see screenshots). On bump it will update the thread's lastpost date to the current time, the last post inside will not be affected.

Installation
See install.txt in the .zip archive. (~ 3 minutes)

Upgrade (from 1.0 to 1.1)
Revert the template "threadbit" and then repeat all steps in install.txt. Make sure to have the option "Allow Overwrite" checked when importing the product again. Also don't forget to overwrite the old threadbump.js with the new one.

Upgrade (from 1.1 to 1.2)
You need only import the product.xml found in the .zip package and make sure to have the option 'Allow Overwrite' set to Yes. No template edits required and no need to upload threadump.js.

Version 1.1
* Updates forumhome so the bumped thread will show up there, just as it should
* Correctly displays the new bumped thread for the bumper
* Correctly displays the new bumped thread under stickys in that forum, if there are any


Version 1.2
* Security fix


* Note
If you have the "separate stickys" hack installed you can edit the plugin executed at hook "forumdisplay_start" and replace $tstickys = 0; with $tstickys = 1;. I haven't tested this but that should work.

Pleas click INSTALL if you're using this hack.

Download Now

File Type: (21.3 KB, 0 views)
File Type: (21.3 KB, 0 views)
File Type: (21.3 KB, 0 views)

Show Your Support

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

Comments
  #42  
Old 02-06-2007, 06:25 AM
sebbe's Avatar
sebbe sebbe is offline
 
Join Date: Feb 2006
Location: .se
Posts: 195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BobbyBig View Post
Another Bug:

When Bumping a Thread which includes a?? in the Title, it changes the Title:

"Sch?nste" is changing to "Schönste". -> also in the database!

Please provide me with a fix for that.
Thank you.
Well I believe it's normal for the database depending on what charset you use, most likely you have "MySQL charset: UTF-8 Unicode (utf8)" or the like no? Happens for me as well (swedish characters).

However, are you saying vBulletin display those characters incorrect? That would seem weird to me.
Reply With Quote
  #43  
Old 02-09-2007, 02:09 AM
parrot5 parrot5 is offline
 
Join Date: Dec 2006
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

After a thread is bumped, the following error appears:
Attachment 60261

And the post status icon is not read from the correct path:
Attachment 60262

Any idea how I can correct these problems? Thanks.


BTW, in a somewhat related reply to the poster above who has some encoding problem, I can report that I have this mod working in my UTF-8 3.6.4 for Chinese characters (both Simplified and Traditional) and there is no character/encoding problem for me.
Reply With Quote
  #44  
Old 02-09-2007, 03:56 AM
giotmuadong's Avatar
giotmuadong giotmuadong is offline
 
Join Date: Feb 2007
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very nice. thanks
btw, how do you rename "excellente"
Reply With Quote
  #45  
Old 02-09-2007, 01:52 PM
sebbe's Avatar
sebbe sebbe is offline
 
Join Date: Feb 2006
Location: .se
Posts: 195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by parrot5 View Post
After a thread is bumped, the following error appears:
Attachment 60261

And the post status icon is not read from the correct path:
Attachment 60262

Any idea how I can correct these problems? Thanks.


BTW, in a somewhat related reply to the poster above who has some encoding problem, I can report that I have this mod working in my UTF-8 3.6.4 for Chinese characters (both Simplified and Traditional) and there is no character/encoding problem for me.
Is that IE6?
On line 74 in threadbump.js try change
HTML Code:
document.getElementById('td_threadtitle_' + tthreadid).parentNode.getElementsByTagName('td')[3].getElementsByTagName('div')[0].getElementsByTagName('span')[0].firstChild.nodeValue = xmlHttp.responseText;
to
HTML Code:
document.getElementById('td_threadtitle_' + tthreadid).parentNode.getElementsByTagName('td')[3].getElementsByTagName('div')[0].getElementsByTagName('span')[0].innerHTML = xmlHttp.responseText;

also on line 72 you can hardcode your statusicon folder like so
HTML Code:
setAttribute('src', 'http://www.mydomain.com/forum/images/statusicon/thread_dot_new.gif');

Quote:
Originally Posted by giotmuadong View Post
very nice. thanks
btw, how do you rename "excellente"
What do you mean "excellente" ?
Reply With Quote
  #46  
Old 02-10-2007, 12:29 AM
parrot5 parrot5 is offline
 
Join Date: Dec 2006
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sebbe View Post
Is that IE6?
On line 74 in threadbump.js try change
HTML Code:
document.getElementById('td_threadtitle_' + tthreadid).parentNode.getElementsByTagName('td')[3].getElementsByTagName('div')[0].getElementsByTagName('span')[0].firstChild.nodeValue = xmlHttp.responseText;
to
HTML Code:
document.getElementById('td_threadtitle_' + tthreadid).parentNode.getElementsByTagName('td')[3].getElementsByTagName('div')[0].getElementsByTagName('span')[0].innerHTML = xmlHttp.responseText;

also on line 72 you can hardcode your statusicon folder like so
HTML Code:
setAttribute('src', 'http://www.mydomain.com/forum/images/statusicon/thread_dot_new.gif');
My crew uses IE6 and firefox...

for the status icon, the following works instead (yes omit the http:// part or else the link becomes http://http// ):
HTML Code:
setAttribute('src', 'www.mydomain.com/forum/images/statusicon/thread_dot_new.gif');
Thanks for your work in this mod. All of my crew love it!
Reply With Quote
  #47  
Old 02-10-2007, 07:47 AM
Spank Spank is offline
 
Join Date: Jan 2007
Location: Scotland
Posts: 809
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack, will come in very useful for staff.

I have the Seperate Sticky hack installed, The fix you mention does work in that it keeps the stickies seperated although it stops the thread list from updating in real time, a refresh is required. (Although post notification icon updates in real time) Can this be fixed?
Reply With Quote
  #48  
Old 02-10-2007, 08:34 AM
sebbe's Avatar
sebbe sebbe is offline
 
Join Date: Feb 2006
Location: .se
Posts: 195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Spank View Post
Nice hack, will come in very useful for staff.

I have the Seperate Sticky hack installed, The fix you mention does work in that it keeps the stickies seperated although it stops the thread list from updating in real time, a refresh is required. (Although post notification icon updates in real time) Can this be fixed?
But the thread bumps up right under the stickys no? Can you post screenshot?
Reply With Quote
  #49  
Old 02-10-2007, 10:37 AM
Spank Spank is offline
 
Join Date: Jan 2007
Location: Scotland
Posts: 809
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The stickies still seperate yes, it's just when you bump it doesn't do it straight away, a refresh is required to see that the tread has been bumped. I'm not sure how i can show this in a screen shot, but here's one anyway.

Actually the Seperated Sticky fix doesn't work, I guess I didn't test it right. Although one can 'unstick' the bumped threads which puts them back into the normal threads.
Attached Files
File Type: (21.3 KB, 26 views)
Reply With Quote
  #50  
Old 02-10-2007, 12:36 PM
sebbe's Avatar
sebbe sebbe is offline
 
Join Date: Feb 2006
Location: .se
Posts: 195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Spank View Post
The stickies still seperate yes, it's just when you bump it doesn't do it straight away, a refresh is required to see that the tread has been bumped. I'm not sure how i can show this in a screen shot, but here's one anyway.

Actually the Seperated Sticky fix doesn't work, I guess I didn't test it right. Although one can 'unstick' the bumped threads which puts them back into the normal threads.
Are you saying that the bumped thread becomes a sticky? Even permanent? The screenshot does not tell.

Well I don't have time to write custom code for everyone depending on whether their forumdisplay is modified or not. Maybe I'll make a fix for those with the separate sticky hack, but not for now.

Maybe you could live with the fact that it's bumped yet it doesn't show until page refresh. If not, then uninstall?
Reply With Quote
  #51  
Old 02-10-2007, 02:47 PM
Charlie98902 Charlie98902 is offline
 
Join Date: Dec 2006
Posts: 1,156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When more restrictions can be applied I will install this hack too.

*Reserved*
Reply With Quote
Reply


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 03:10 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.05266 seconds
  • Memory Usage 2,355KB
  • Queries Executed 26 (?)
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
  • (7)bbcode_html
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete