vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Show Thread Enhancements - Download Forum Thread To Your Computer (vB 4.x) (https://vborg.vbsupport.ru/showthread.php?t=231042)

Logician 12-23-2009 10:00 PM

Download Forum Thread To Your Computer (vB 4.x)
 
1 Attachment(s)
Here is the vb 4.x version of my Download Forum Thread To Your Computer hack. This hacks allows you to download a forum thread into your computer (desktop etc.) as a text file with one click. (vb 3.5.x version here)

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 vB4.0.0 GOLD and should work with all newer versions as well. (for vb 3.5.x, 3.0.x and 2.x versions see my profile.)

It is very easy to install. You can install it to your board without modifying any vb files.

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

Enjoy the hack,
Logician

Logician 12-24-2009 07:29 AM

Hack FAQ:

1- Can it be used for non-english boards?

The hack is coded and tested with boards with English language and it should work with many boards whose language is similiar to English (ie using letters from English alphabet) like German, French, Spanish, Turkish etc.

However if the language (especially language syntax and structure) is dramatically different (eg. Russian, Chineese, Japanese, Arabic etc.), I can't be sure if it works fine with your threads. Testing wouldn't hurt though so you can't just give it a try. Also see this post from 3.5.x version for a fix about Russian language)

2- Does it work with very long threads?

It should be. In this version, I tested with a thread with 1500 posts which produced a 500 Kb. text output and it went fine.

Hack users previously reported it worked fine even with threads with 40.000 posts in it.

3- How can I allow only certain usergroups to use the hack?

By default hack inherits your forum permissions. So a user will be able to download the thread only if his usergroup allows him to view the thread. This should be fine for most boards but if you still want to restrict the hack for certain usergroups, edit dt.php file, find line:



PHP Code:

//$unallowed_downloaders = array(1); 



and replace it as


PHP Code:

$unallowed_downloaders = array(1); 



Change 1 with usergroupid which can't access the script. Eg.
$unallowed_downloaders = array(1); means guests can't download threads.
$unallowed_downloaders = array(1, 2); means guests AND registered users can NOT download threads.

mgurain 12-24-2009 10:46 AM

Hi,

I was looking for Download as PDF with text formatting and Avators extra..

can you do it ?

Thanks,,

Basboss 12-24-2009 02:21 PM

Thanks for the release and good to see you around :)

movslow 12-24-2009 04:36 PM

Quote:

Originally Posted by mgurain (Post 1937173)
Hi,

I was looking for Download as PDF with text formatting and Avators extra..

can you do it ?

Thanks,,

That would be awesome.
:up:

cloferba 12-24-2009 08:36 PM

Quote:

Originally Posted by movslow (Post 1937390)
That would be awesome.
:up:

and so add ? letter for spanish users

AzzidReign 12-25-2009 06:15 PM

This is awesome! My users are going to love this since we are a tutorial based site!

bart6767 12-26-2009 06:17 PM

Thanks

blake247 12-26-2009 06:42 PM

Installed

albibak 12-30-2009 10:20 PM

1 Attachment(s)
Logician,

Thanks for the mod
Please, find in attachment the french translation
You can find the french topic for this mod here: http://forum.vbulletin-fr.org/modifi...mod&modid=1081


All times are GMT. The time now is 03:12 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.01178 seconds
  • Memory Usage 1,737KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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