vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Download Thread (https://vborg.vbsupport.ru/showthread.php?t=40981)

PET 07-13-2002 06:40 AM

yea ! This is very very cool & usefull !

squawell 07-13-2002 08:45 AM

what a wonderful hack u did Logician......:D:D:D

[high]* squawell like this one too.... installed.....[/high]

ULTIMATESSJ 07-13-2002 11:26 AM

great hack, nice work

/me clicks install

Logician 07-13-2002 02:45 PM

Quote:

Originally posted by Boofo
Is there a way to parse out the font color codes and other codes like that before it writes the message to a text file? :)
it can be possible but it requires some work. I cant promise it done soon, but I can try to add the feature when I'm more available.. :)

Boofo 07-13-2002 02:48 PM

Sounds good to me. :) Let me know if and when you need some testing done on it. :)

Quote:

Originally posted by Logician

it can be possible but it requires some work. I cant promise it done soon, but I can try to add the feature when I'm more available.. :)


Ryangel 07-13-2002 03:24 PM

hmm not sure if there is something wrong but, the savefile name looks weird.
See attachment.

Logician 07-13-2002 03:31 PM

Quote:

Originally posted by Ryangel
hmm not sure if there is something wrong but, the savefile name looks weird.
See attachment.

You should be able to download/save the thread anyway, could you? BTW what was the exact thread name you were trying to DL?

Ryangel 07-13-2002 03:35 PM

Yup . It viewed fine :)

Threadname was : "[News] 4 Jul: Minister's Speech at ITE East (Macpherson)'s Opening "

So maybe that was a problem .

Logician 07-13-2002 03:44 PM

I tried parse out special characters from thread title so that file name will be nice but some may be missed. In your example it was : char. It's no big deal but if it bothers you, there are 2 possible solutions:

1- edit line:

$filename=preg_replace("/[.!\\\?\^\'\"\$]/", '', $thread[title]);


and replace it as:

$filename=preg_replace("/[.!:\\\?\^\'\"\$]/", '', $thread[title]);

(This will parse out : char too)

2- If you are not interested in naming the file name after thread title, replace the same line as:

PHP Code:

$filename='Thread'.$threadid

After the change all file names will be like "Thread1244.txt" and no more file name bugs. However I personally prefer to use thread title as file name, it is much better IMO..

Your call :)

Ryangel 07-13-2002 03:52 PM

I followed your first soloution .

Worked out well :)

Thanks for the hack!


All times are GMT. The time now is 12:57 PM.

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.01300 seconds
  • Memory Usage 1,734KB
  • 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
  • (1)bbcode_php_printable
  • (3)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
  • (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