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)

SRozhon 11-06-2002 10:41 PM

Oh geesh thank you...guess I'm more tired than I thought..lol Thanks again!

Dynamic One 11-11-2002 09:16 AM

Thanks Logician. Great hack you made m8.

geniuscrew 11-20-2002 11:02 PM

Works like a charm! *installs*

Boofo 01-15-2003 05:15 PM

I just installed this on 2.2.9 and I have a thread title with quotes in it. When I go to download the thread it shows it as the following:
Quote:

Do you believe in & quot
(NOTE: I had to put a space bewteen the & and the quot. The disable code hack doesn't work here now for some reason.)

when the actual name of the thread is:
Quote:

Do you believe in "signs"?
How can I parse out the quotes in the title?

MalaK_3araby 01-18-2003 10:37 AM

Thanks for this hack.

- Installs

N9ne 01-18-2003 02:40 PM

I noticed the same bug as Boofo did, when there is a html character in the thread title, it will screw up the file name, something somewhere needs to be unhtmlcharacter'd

Boofo 01-19-2003 10:51 PM

N9ne, I found a fix for our problem. I tried it and it works on my end. Test it out and let me know if it fixes it for you. You have to change it in 3 places so the file will have the html characters in the thread title and any post title you have those characters in also.

Replace:

PHP Code:

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

With:

PHP Code:

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

Replace:

PHP Code:

  print ("THREAD : $thread_db[title]\r\n"); 

With:

PHP Code:

  print ("THREAD : ".unhtmlspecialchars($thread_db[title])."\r\n"); 

Replace:

PHP Code:

  if ($post[title]) {print ("Title : ".$post[title]."\r\n");} 

With:

PHP Code:

  if ($post[title]) {print ("Title : ".unhtmlspecialchars($post[title])."\r\n");} 


Logician 01-20-2003 08:10 AM

Quote:

Originally posted by Boofo
N9ne, I found a fix for our problem.
Looks good and should work.. Well done..

Boofo 01-20-2003 08:16 AM

Quote:

Originally posted by Logician

Looks good and should work.. Well done..

Coming from you, Sinan, that means more than you will ever know. I mean that. ;)

And thank you for not running to bail me out when I first ran into this problem and posted it in the thread here. I never would have figured it out myself, if you had given me the code. You forced me to learn something (as little as it was). :)

Logician 01-20-2003 08:47 AM

Quote:

Originally posted by Boofo

And thank you for not running to bail me out when I first ran into this problem and posted it in the thread here. I never would have figured it out myself, if you had given me the code. You forced me to learn something (as little as it was). :)

It was not my intention.. I just cant always find time to answer promptly but I'm glad it did some good.. :)


All times are GMT. The time now is 06:47 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.01271 seconds
  • Memory Usage 1,747KB
  • 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
  • (6)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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