 | |  | | | Photopost Pro How Do I...? Wondering how to do things in PhotoPost? |
March 1st, 2007, 08:05 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,649
|
the search does never expire it stores the searches in a search table
There is nothing you can change on this as in Photopost 5.6 forward the search is as you see using the search.php file
|
| |
March 1st, 2007, 08:19 AM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Jan 2007
Posts: 55
|
Thanks for a reply !
"the search does never expire it stores the searches in a search table"
<<< Pl. confirm it once again >>>
If you mean to say that even after a year or two (for example) the following URL ... http://www.xxxxxxxx.com/gallery/search.php?searchid=4
will give the same results then I don't have a problem with that.
But "IF"
After a year or two it is going to "change or expire" this searchid details then it will be a problem for me.
|
| |
March 1st, 2007, 08:32 AM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,649
| Code: Content visible to verified customers only.
You set in admin how long searches are held.
|
| |
March 1st, 2007, 08:58 AM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Jan 2007
Posts: 55
|
Chuck where can I find the code you referred to i.e.
// Remove expired searches
$expiredate = time() - ( $Globals['searchhold'] * 86400 );
$queryq = ppmysql_query("DELETE FROM {$Globals['pp_db_prefix']}searchids WHERE date < $expiredate", $link);
and where can I (in this code or otherwise) set the values like expire date, time etc.
--------------------------
Plus:
In Admin setting -> Search Options
I can only see ...
Search Options
Require users to be registered to use search?
Maximium number of search results to return?
On larger sites, the less the better.
Number of seconds between searches?
The number of seconds a user must wait between searches.
Number of days to hold search results?
"Number of days to hold search results?" pl. clarify what does this mean ??
<< mainly search results >>> ???
|
| |
March 1st, 2007, 09:08 AM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,649
|
Number of days to hold search results?
This means exactly what it sounds like it does. This is the number of days we are going to retain a search
|
| |
March 1st, 2007, 09:26 AM
|
#7 (permalink)
| | Member Verified Customer
Join Date: Jan 2007
Posts: 55
|
Chuck here I am a bit confused ...
searchid
and search results
What I want is that the keywords with resect to a searchid like "searchid=4" in this case http://www.xxxxxxxx.com/gallery/search.php?searchid=4
must be kept and not the "search results"
To me both seems to be different and sound different too ...
I don't want to keep the "RESULTS" for one or two years but how can I keep intact the "keywords" assigned an id like in this case "searchid=4"
|
| |
March 1st, 2007, 10:09 AM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,649
|
If you want those searches to be valid after a year or two you need to keep the searches for longer than that period as such place the number of days you want to keep searches active. It is how this is done. If a search is expired search=4 or whatever is not going to help you. it will not be found and they will be prompted to visit the search page to type a new search
|
| |
March 1st, 2007, 11:17 AM
|
#9 (permalink)
| | Member Verified Customer
Join Date: Jan 2007
Posts: 55
|
Chuck where can I find the code you referred to i.e.
// Remove expired searches
$expiredate = time() - ( $Globals['searchhold'] * 86400 );
$queryq = ppmysql_query("DELETE FROM {$Globals['pp_db_prefix']}searchids WHERE date < $expiredate", $link);
|
| |
March 1st, 2007, 11:23 AM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,649
|
The code I noted was an example of how we delete searches
If you do not want searches to expire in this setting in admin place 9999
Number of days to hold search results?
This is how you keep searches from being deleted and is what you want to do
|
| |
March 1st, 2007, 11:41 AM
|
#11 (permalink)
| | Member Verified Customer
Join Date: Jan 2007
Posts: 55
|
But won't it take tooo much of space to keep the search for so long i.e. 9999 days. And I believe it will slow down the search system and the performance too.
Just for knowledge sake " how much hard disk space will say 1000 days search or say 1,00,000 search will take in MB's.
thanks
|
| |
March 1st, 2007, 11:59 AM
|
#12 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,649
|
I cant tell you how much space it will take in your mysql database. How much space in your database do 1000 photo inserts take up?
it is not much
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | |
Similar Threads | | Thread | Thread Starter | Forum | Replies | Last Post | | Format Thumbnails | waltercat | How Do I? - vBulletin 3.6x | 1 | November 25th, 2006 12:54 PM | | Format the backpath | joerns | Classifieds How do I...? | 1 | November 7th, 2006 07:26 AM | | resizer format | Kseki | How Do I? - vBulletin 3.5.X | 1 | August 17th, 2005 10:20 AM | All times are GMT -5. The time now is 11:01 AM. | |