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 Search Results (https://vborg.vbsupport.ru/showthread.php?t=38839)

GenSec 05-19-2002 10:00 PM

Download Search Results
 
Some forum users want to save posts on their PC.
One of the possible way to download search results.
You are searching the board for your or any other user posts and backup them to your PC.
This hack just add the download button to the search results page.

VeRT3X 05-20-2002 04:22 PM

huh?

John 05-20-2002 04:56 PM

:confused:

Marshalus 05-20-2002 10:47 PM

I dont get it.

MrLister 05-21-2002 12:20 AM

Lol am I the only one understanding these hackers today. This hack when you do a search it allows you to save posts to your PC.

Logician 05-21-2002 09:28 AM

Here is an explanation of what GenSec hack does for ones who didnt get the usage:

When you perform a search in your board via "Show results as posts", there appears a "download button" under the search page and by clicking it, you can download the messages to your computer. A few points:

1- This only applies to "Show results as posts" searches, not "Show results as threads"

2- Messages downloaded as much as they appear in the search page. So not the entire message will be downloaded but just a few lines that appear in the search page.

And a screenshot added too..

Gensec, although I dont use this hack, it may be pretty useful for some people, so thanks for your nice work. But honestly I think you should give a little more info about it, I didnt get exactly what it does, until I applied it. :)

Regards,
Logician

GenSec 05-21-2002 02:46 PM

Thank you Logician
for detail explanation I'm not so good in it.

Quote:

Originally posted by Logician

2- Messages downloaded as much as they appear in the search page. So not the entire message will be downloaded but just a few lines that appear in the search page.


Frankly I provide users the chance to download the full message
For this find in search.php
PHP Code:

    $sql="
    SELECT
      post.postid,post.title AS posttitle,post.dateline AS postdateline,post.userid AS postuserid,post.iconid AS posticonid,LEFT(post.pagetext,250) AS pagetext,
      thread.threadid,thread.title AS threadtitle,thread.iconid AS threadiconid,thread.replycount,thread.views,thread.pollid,thread.open,thread.lastpost,
      forum.forumid,forum.title AS forumtitle,forum.allowicons,user.username,
      IF(post.title='',LEFT(post.pagetext,50),post.title) AS posttext,
      IF(post.userid=0,post.username,user.username) AS usrname,
      posticon.iconpath AS posticonpath,posticon.title AS posticontitle,
      threadicon.iconpath AS threadiconpath,threadicon.title AS threadicontitle 

and replace to
PHP Code:

    $sql="
    SELECT
      post.postid,post.title AS posttitle,post.dateline AS postdateline,post.userid AS postuserid,post.iconid AS posticonid,post.pagetext AS pagetext,
      thread.threadid,thread.title AS threadtitle,thread.iconid AS threadiconid,thread.replycount,thread.views,thread.pollid,thread.open,thread.lastpost,
      forum.forumid,forum.title AS forumtitle,forum.allowicons,user.username,
      IF(post.title='',LEFT(post.pagetext,50),post.title) AS posttext,
      IF(post.userid=0,post.username,user.username) AS usrname,
      posticon.iconpath AS posticonpath,posticon.title AS posticontitle,
      threadicon.iconpath AS threadiconpath,threadicon.title AS threadicontitle 


AndyTSJ 05-21-2002 04:28 PM

ha, the fact that I understood everything GenSec wrote in post#1 makes me feel like I'm in the minority... :D

Good Work GS !

Gutspiller 03-22-2003 11:53 PM

HOW DO I:

Get this to work if people always use (Like myself) the Show results as threads instead of the Show results as posts feature?

Does this download all the results? When I downloaded and looked it didn't look like it was as many as for how many pages the results were. Does it dowload ALL post results?

I didn't check, but does it download the entire thread or just the first post?

What type of bandwidth are we talking about if the results are 300 items long and each thread in those 300 is around 5 to 10 posts long? How many KB am I looking at? I don't want to include this hack if it's going to hurt me on my server bandwidth.

Thanks for any repsonses


All times are GMT. The time now is 03:29 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.01045 seconds
  • Memory Usage 1,733KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete