PDA

View Full Version : Download Search Results


GenSec
05-19-2002, 10:00 PM
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.

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 $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 $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