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)

Intex 05-29-2004 09:33 AM

Nice hack Logician. Works great :cool:.

[high]* Intex clicks INSTALL[/high]

Logician 05-29-2004 02:43 PM

Quote:

Originally Posted by pjdaley
im just wondering, i noticed it saves the txt file of the thread with the name of the thread.... is it posssible you can add your site's name in front of it so it'll be called VBulletin.org - Thread name.txt? anyone have any ideas?

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


Logician 05-29-2004 02:48 PM

I fixed a small bug to clean certain weird characters from post titles. You can overwrite your dt.php with the new dt.php (attached in the first post of the thread) to use the new version. Thanks for Boofo for pointing it out.

Logician 05-29-2004 02:55 PM

Quote:

Originally Posted by SteveK
Nice... Installed. I hope they add this to vb.com & vb.org!

I notice it doesn't include posts that are "hidden" as a result of the hack by Xenon "Staff can Post hidden Posts " located here: https://vborg.vbsupport.ru/showthread.php?t=64860

Any way to include these (if you have permission to view those hidden posts)?

Give it a shot but I haven't tested:

find:
PHP Code:

 $i=1

after that add :
PHP Code:

if (in_array($bbuserinfo['usergroupid'], array(567))) {$secret_post=1;$visiblequery='';} else {$secret_post=0;$visiblequery=' AND visible=1 ';} 

find:
PHP Code:

p.titlep.pagetextp.userid

replace it as:
PHP Code:

p.titlep.pagetextp.userid,p.visible

Find
PHP Code:

AND visible=

replace it as

PHP Code:

$visiblequery 

find:
PHP Code:

print ("[Post $i]\r\n"); 

replace it as
PHP Code:

if ($post[visible]==0) {$visibletext 'HIDDEN TEXT!!!';} else {unset($visibletext);}
print (
"[Post $i$visibletext\r\n"); 


ashley53680 05-29-2004 03:02 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


I can't find this in my dt.php file? :ermm:

Jujimufu 05-29-2004 04:41 PM

PERFECT TIMING! It's as if you met the very request I made a week or so ago. I'll install it once my website comes back online. Dude, Logician rules!

Logician 05-29-2004 09:05 PM

Quote:

Originally Posted by ashley53680
I can't find this in my dt.php file? :ermm:

Check around line 100. And please remember to use the latest dt.php if you don't already.

ashley53680 05-30-2004 01:54 AM

Okay I guess I didn't check that! :blush: Thanks!

Boofo 05-30-2004 03:07 AM

The hidden posts addition to this hack doesn't work without the following change:

This:

PHP Code:

if (in_array($usergroupid, array(567))) {$secret_post=1;$visiblequery='';} else {$secret_post=0;$visiblequery=' AND visible=1 ';} 

needs to be changed to this:

PHP Code:

if (in_array($bbuserinfo['usergroupid'], array(567))) {$secret_post=1;$visiblequery='';} else {$secret_post=0;$visiblequery=' AND visible=1 ';} 

The $usergroupid needs to be $bbuserinfo['usergroupid']. ;)

Logician 05-30-2004 07:18 AM

Quote:

Originally Posted by Boofo
The hidden posts addition to this hack doesn't work without the following change:

You are right Bob. I've updated my post too. TY!


All times are GMT. The time now is 03:57 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.01548 seconds
  • Memory Usage 1,764KB
  • 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
  • (14)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