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)

SnowBot 05-26-2004 04:13 PM

great idea, nice hack
/me click install

Reeve of shinra 05-26-2004 05:29 PM

Very useful - especially for forums that have a writers area.

djohn 05-26-2004 06:20 PM

Does it work with multi page threads?

Logician 05-26-2004 06:22 PM

Quote:

Originally Posted by djohn
Does it work with multi page threads?

Yes of course. It is the whole point, right? :D

dndog 05-26-2004 08:15 PM

Logician, my forum tables have the prefix vB3_. Your hack assumes there is no prefix and can't find the post table. I sifted through the code but can't figure out what I need to change to fix this. What should I do?

Boofo 05-26-2004 08:46 PM

Quote:

Originally Posted by dndog
Logician, my forum tables have the prefix vB3_. Your hack assumes there is no prefix and can't find the post table. I sifted through the code but can't figure out what I need to change to fix this. What should I do?

Change this:

PHP Code:

 $post_db=$DB_site->query("SELECT p.dateline, p.title, p.pagetext, p.userid, user.username from post p LEFT JOIN user on user.userid=p.userid WHERE threadid=$threadid AND visible=1 ORDER BY dateline ASC"); 

To this:

PHP Code:

$post_db=$DB_site->query("SELECT p.dateline, p.title, p.pagetext, p.userid, user.username from " TABLE_PREFIX "post p AS post p LEFT JOIN " TABLE_PREFIX "user AS user on user.userid=p.userid WHERE threadid=$threadid AND visible=1 ORDER BY dateline ASC"); 


dndog 05-26-2004 09:34 PM

I now get this error

PHP Code:

Database error in vBulletin 3.0.1:

Invalid SQLSELECT p.datelinep.titlep.pagetextp.useriduser.username from vb3_post p AS post p LEFT JOIN vb3_user AS user on user.userid=p.userid WHERE threadid=AND visible=1 ORDER BY dateline ASC
mysql error
You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS post p LEFT JOIN vb3_user AS user on user.userid=p.userid WH

mysql error number: 1064 


Boofo 05-26-2004 09:45 PM

Quote:

Originally Posted by dndog
I now get this error

PHP Code:

Database error in vBulletin 3.0.1:
 
Invalid SQLSELECT p.datelinep.titlep.pagetextp.useriduser.username from vb3_post p AS post p LEFT JOIN vb3_user AS user on user.userid=p.userid WHERE threadid=AND visible=1 ORDER BY dateline ASC
mysql error
You have an error in your SQL syntaxCheck the manual that corresponds to your MySQL server version for the right syntax to use near 'AS post p LEFT JOIN vb3_user AS user on user.userid=p.userid WH
 
mysql error number: 1064 


I know. When I use that, I get the same error. Sorry about that. We will have to wait for Logician to telll us what to change it to, I guess.

It should have worked. Why it doesn't, I don't know. Again, sorry. ;)

dstruct2k 05-26-2004 10:29 PM

Here's a version that supports table prefixes. :)

Just replace the PHP file and you're on your way!

(Small grammar error fixed too. :p)

GamerJunk.net 05-27-2004 04:32 AM

Installed great!


All times are GMT. The time now is 07:56 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.01096 seconds
  • Memory Usage 1,750KB
  • 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
  • (4)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)pagenav_pagelinkrel
  • (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