Version: 1.00, by GenSec
Developer Last Online: Jun 2010
Version: 2.2.x
Rating:
Released: 05-19-2002
Last Update: Never
Installs: 0
No support by the author.
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.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
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.
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
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.