vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Download Forum Thread To Your Computer (Vb3.x) (https://vborg.vbsupport.ru/showthread.php?t=65536)

Boofo 05-30-2004 11:09 AM

You're very welcome, my friend. ;)

With that change, it works perfect for hidden posts. ;)

SteveK 06-01-2004 05:19 AM

Quote:

Originally Posted by Logician
You are right Bob. I've updated my post too. TY!


Thank you to you both. Working great.

Boofo 06-03-2004 02:37 AM

If anyone is interested, I have the fix that will strip all the wierd characters from the thread title so the filename will not default to dt.txt on threads with quotes and other html cahracters in them. ;)

sabret00the 06-03-2004 11:20 AM

Quote:

Originally Posted by Boofo
If anyone is interested, I have the fix that will strip all the wierd characters from the thread title so the filename will not default to dt.txt on threads with quotes and other html cahracters in them. ;)

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.

Highlander 06-06-2004 05:03 AM

installed the GREAT hack .. from a great hacker :D .. one day logician will get a statue for his hacks :D

MooMan65 06-06-2004 09:50 AM

Thank you! I've been waiting for this port! :)

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.

I hope it looks alright, I designed it for our forums which was designed to eliminate as much of the anti-aliasing as possible.

chrisvonc 06-06-2004 10:32 AM

Excellent, thank you very much! I used the vB2x version on my old forum and this is a very handy hack I am glad to see brought over to vB3.

Thank you also MooMan65, the new graphic is very nice!

zahco 06-08-2004 03:03 PM

Dir Logician
great nice hack
thanks a lot
when i instal it i will press (( click install ))

Agent XY 06-09-2004 03:40 PM

nice hack , works very well !!
thx @ MooMan65

*installs*


cheers



EDIT: you can save the thread as ".rtf" file, thats better :D (show my attach.)

zahco 06-09-2004 04:17 PM

Dir Logician
i have instaled the hack an realy nice and great work
also i have change the icon to be sean as a downlodig text

best regards
http://www.arabswell.com/vb

zetetic 06-09-2004 08:00 PM

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.

Logician 06-09-2004 08:19 PM

@Agent XY and MooMan65: thx for your contributions. I've linked your posts in the first post of this thread.

Boofo 06-09-2004 09:53 PM

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. ;)

JazzleBug 06-11-2004 04:04 AM

Thank you! Installed perfectly! :)

SaN-DeeP 06-11-2004 07:19 PM

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...

Logician 06-12-2004 09:13 AM

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.

ashley53680 06-12-2004 11:40 AM

I'd like to do something like this too.... but I cannot find the error templates so I can add the new phrase. :(

Logician 06-12-2004 07:48 PM

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.

ashley53680 06-12-2004 08:03 PM

Well after making those changes, I don't see the download treat option at all in my thread tools. :(

Boofo 06-12-2004 08:45 PM

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.

ashley53680 06-12-2004 11:36 PM

Quote:

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

Whoops, my showthread got reverted. lol :tired:

redlabour 06-15-2004 05:42 AM

Super thanx !

sabret00the 06-16-2004 12:22 AM

Quote:

Originally Posted by sabret00the
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.

*gently bumping question*

Logician 06-16-2004 06:41 AM

Quote:

Originally Posted by sabret00the
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.

Sorry, question is not clear to me. What hacks do you mean? This hack is not installed in vb.org.

The hack uses default vb permission system so one can not download a thread if he does not have read permission to it. Besides you are able to prevent certain usergroups to use this feature. Does it answer your question?

sabret00the 06-16-2004 11:18 AM

yes it answers half the question, sorry should've re-read it before i bumped it, basically i want to have this enabled in all public forums but disabled in private (staff) forums and am wondering if this functionality is built in?

Logician 06-16-2004 03:13 PM

Quote:

Originally Posted by sabret00the
yes it answers half the question, sorry should've re-read it before i bumped it, basically i want to have this enabled in all public forums but disabled in private (staff) forums and am wondering if this functionality is built in?

No it is not, but you can easily add it like this:

edit dt.php, find:
PHP Code:

$foruminfo = &$forum

after that add:

PHP Code:

if ($thread['forumid']==OR $thread['forumid']==OR $thread['forumid']==Z)
{
print_no_permission();} 

replace X,Y,Z with the forumids in which you want to stop downloads.

sabret00the 06-16-2004 06:08 PM

thanks, that's exactly what i was looking for :D

Oblivion Knight 06-16-2004 07:16 PM

Logician, you're a wizard mate.. :)

Installed and working flawlessly. I voted for this hack in HotM June.

Kohhal 06-17-2004 08:16 AM

Looks good, anyone have a sample .txt of what a downloaded thread looks like?

Logician 06-17-2004 08:26 AM

Quote:

Originally Posted by TheMasterG
Looks good, anyone have a sample .txt of what a downloaded thread looks like?

You can test here:
http://www.theadminzone.com/forums/

Kohhal 06-17-2004 08:59 AM

Excellent, installed :D

redlabour 06-17-2004 03:56 PM

Boykott To Hacks That Are Only Working With IE ! :devious:

Mozillaengines are downloading but not as a *.txt - theres only a blank file with Threadname. Under IE it works excellent !

:rolleyes:

Logician 06-17-2004 04:26 PM

Quote:

Originally Posted by redlabour
Boykott To Hacks That Are Only Working With IE ! :devious:

Mozillaengines are downloading but not as a *.txt - theres only a blank file with Threadname. Under IE it works excellent !

:rolleyes:

It works fine in my Mozilla. Check yours. Or better upgrade to a "solid" browser. ;)

Intex 06-17-2004 04:50 PM

Or how about making your own hack, rather than taking it out on the author? Don't forget this is a free hack. If you don't like it, feel free not to install it.

The authors take painstaking hours to create these hacks and have done a great job - supporting the most common web browser.

Show some respect.


Quote:

Originally Posted by redlabour
Boykott To Hacks That Are Only Working With IE ! :devious:

Mozillaengines are downloading but not as a *.txt - theres only a blank file with Threadname. Under IE it works excellent !

:rolleyes:


cpt 06-17-2004 06:03 PM

Quote:

Originally Posted by Logician
in dt.php, find
PHP Code:

 if (strlen(trim($filename))<2) {$filename='Thread'.$threadid;} 

after that add:
PHP Code:

$filename='ANY TEXT YOU LIKE HERE - '.$filename


If "ANY TEXT YOU LIKE HERE" is "www.domain.com" I get under IE a text "[1]" in front of the "." (screenshot).

EDIT:
Is it possible that ? ? ? ? in the filename don't work ?

redlabour 06-17-2004 08:34 PM

@Logician + Intex - i am speaking from up-to-date Mozillaengine = Firefox 0.8 + 0.9 not compatible, not the Mozillasuite. ;)

@Intex - who makes Freesoftware should be thinking about using Evil-M$ Products ! ;)

Intex 06-17-2004 08:36 PM

Evil yeah, but still the most widely used. Developers can't ignore the mass market :).

Dean C 06-17-2004 10:37 PM

I'd love to see this export the thread as XML and have an importer - wouldn't be too difficult to do :) You could then expand on it to mass export / import threads too. Just a though ;)

Martin64 06-18-2004 12:59 AM

Excellent, will install this tomorrow, it's 4 am now so it's a little late to start hacking now. ;)

Logician 06-18-2004 05:43 AM

Quote:

Originally Posted by cpt
If "ANY TEXT YOU LIKE HERE" is "www.domain.com" I get under IE a text "[1]" in front of the "." (screenshot).

EDIT:
Is it possible that ? ? ? ? in the filename don't work ?

I think this is because you already have a file in the same location starting with "www." so Windows change its name.


All times are GMT. The time now is 04:17 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.02211 seconds
  • Memory Usage 1,845KB
  • 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
  • (10)bbcode_php_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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