Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Download Forum Thread To Your Computer (Vb3.x) Details »»
Download Forum Thread To Your Computer (Vb3.x)
Version: 1.00, by Logician Logician is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.0.9 Rating:
Released: 05-25-2004 Last Update: 12-11-2005 Installs: 151
 
No support by the author.

This hacks allows you to download a forum thread into your computer (desktop etc.) as a text file with one click.

The hack adds a "DOWNLOAD THREAD" link inside Thread Tools pop-up and when clicked entire thread is downloaded to your computer. (See Screenshot)

It's useful when:
a) You want to archive and save the thread,
b) Want to read it offline,
c) It's a long thread and you want to browse it faster as a text file, use better searching features of your text editor.

The hack is tested with vB3.0.0 And vB 3.0.1, it is NOT tested with versions prior to 3.0.0. (vB2.x version is here). It is very easy to install. As a matter of fact it is an add-on, not a hack so you can install to your board without modifying any vb files. Just upload dt.php to your forum directory and make a easy change in showthread template and it is installed. Simple as that.

VERSION FOR VB 3.5 is released here:
https://vborg.vbsupport.ru/showthread.php?t=97217

If you install it, please click INSTALL, thank you.

Note : Download function is tested with IE v.6.0, Netscape v.4.7, Mozilla 1.2a and it's working fine in these browsers. I dont know other browsers or older versions though.
27.May.2004 Bug Fix : A small bug is fixed in file dt.php which effect users with prefixed tables in database.
29.May.2004 Bug Fix : A small bug in dt.php is fixed to cure post titles with special characters ("'?&) in it. Attached dt.php file is uptodate.
12.Dec.2004 Bug Fix : A small bug which causes soft deleted posts to be included in the downloaded text is fixed. Attached dt.php file is uptodate.


Note 1: If you want to use a different download thread image, see this post.
Note 2: If you want to save threads as .rtf, instead of .txt, see this post.


Enjoy the hack,
Logician

Show Your Support

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

Comments
  #52  
Old 06-09-2004, 08:00 PM
zetetic's Avatar
zetetic zetetic is offline
 
Join Date: Apr 2004
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MooMan65
I've also thrown together a quick image for people to possibly use instead of the sortasc one as it does look a bit weird. I've attached it along with an example screenshot of the image replaced. Just replace sortasc.gif with download.gif and upload that file into the buttons directory in images.
That's a nice button, MooMan, thanks. However the sortasc.gif is a standard button used for other things, so it's probably a better idea to just upload download.gif and change sortasc.gif to download.gif in the template.
Reply With Quote
  #53  
Old 06-09-2004, 08:19 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@Agent XY and MooMan65: thx for your contributions. I've linked your posts in the first post of this thread.
Reply With Quote
  #54  
Old 06-09-2004, 09:53 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sabret00the
i'm interested.

also is this hardcoded with an option so it can't be used in certain forums? as i wouldn't like a disgruntled staff member downloading hacks and sending them to/posting for general members to see.
In the dt.php file

Find:

PHP Code:
$filename=preg_replace("/[.&!:\\\?\^\'\"\$]/"''$thread[title]); 
REPLACE it with:

PHP Code:
$filename preg_replace('#[\/|*?:"<>\']#'''$thread[title]); 
This will strip the appropriate tags out of the thread title correctly for the filename.
Reply With Quote
  #55  
Old 06-11-2004, 04:04 AM
JazzleBug JazzleBug is offline
 
Join Date: Feb 2004
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you! Installed perfectly!
Reply With Quote
  #56  
Old 06-11-2004, 07:19 PM
SaN-DeeP's Avatar
SaN-DeeP SaN-DeeP is offline
 
Join Date: Jun 2002
Location: Mumbai, India
Posts: 1,195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how can i display this error message to users who are not allowed to download the thread.

<div style="color: #C60000; font: 20px; font-weight: bold">You must register to use this forum. If you are not registered you need to register <span style="text-decoration: underline"><a href="register.php?$session[sessionurl]">HERE</a></span></div>

thnx.
Sandy...
Reply With Quote
  #57  
Old 06-12-2004, 09:13 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SaN-DeeP
how can i display this error message to users who are not allowed to download the thread.

<div style="color: #C60000; font: 20px; font-weight: bold">You must register to use this forum. If you are not registered you need to register <span style="text-decoration: underline"><a href="register.php?$session[sessionurl]">HERE</a></span></div>

thnx.
Sandy...
in dt.php find:
PHP Code:
if (is_array($unallowed_downloaders) AND in_array($bbuserinfo[usergroupid],$unallowed_downloaders)) {echo standard_error("Sorry this feature is not meant for your usage!"''1);} 
before that add:
PHP Code:
if ($bbuserinfo['userid']==0) {eval(print_standard_error('error_guestcannotdlthread'));} 
then create a new phrase in error phrases named "guestcannotdlthread" and put your message there.
Reply With Quote
  #58  
Old 06-12-2004, 11:40 AM
ashley53680 ashley53680 is offline
 
Join Date: Dec 2003
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'd like to do something like this too.... but I cannot find the error templates so I can add the new phrase.
Reply With Quote
  #59  
Old 06-12-2004, 07:48 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ashley53680
I'd like to do something like this too.... but I cannot find the error templates so I can add the new phrase.
sorry it is "phrases", not templates.
Reply With Quote
  #60  
Old 06-12-2004, 08:03 PM
ashley53680 ashley53680 is offline
 
Join Date: Dec 2003
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well after making those changes, I don't see the download treat option at all in my thread tools.
Reply With Quote
  #61  
Old 06-12-2004, 08:45 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ashley53680
Well after making those changes, I don't see the download treat option at all in my thread tools.
Here's what I did:

In dt.php, find:

PHP Code:
if (is_array($unallowed_downloaders) AND in_array($bbuserinfo[usergroupid],$unallowed_downloaders)) {echo standard_error("Sorry this feature is not meant for your usage!"''1);} 
REPLACE it with:

PHP Code:
if (is_array($unallowed_downloaders) AND in_array($bbuserinfo[usergroupid],$unallowed_downloaders)) {echo standard_error("<center>Sorry, you must be registered and activated to download threads.</center>"''1);} 
Just put whatever you need between the center tags and you don't have to make a separate phrase.
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 12:41 AM.


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.06836 seconds
  • Memory Usage 2,328KB
  • Queries Executed 25 (?)
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
  • (6)bbcode_php
  • (5)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
  • (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
  • (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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete