PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old March 1st, 2007, 07:00 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Jan 2007
Posts: 55
URL format ?

In the older version or in few "powered by photopost" sites I have seen that the "Search Result URL" are in the following format but ...

http://www.xxxxxxx.com/photopost/sho...&condition=and


on the other hand most of the sites shows the "Search Result URL" in the following format ...

http://www.xxxxxxxx.com/gallery/search.php?searchid=4

Question:
How can we get the "Search Result URL" are in the following format ...
http://www.xxxxxxx.com/photopost/sho...&condition=and

why? because this type of URL can be stored or linked can will always give the same results on the other hand in this ...

http://www.xxxxxxxx.com/gallery/search.php?searchid=4

"searchid=4" MAY expire or change in future and give the following message ..

Search id is not valid or has expired.


Or can you tell me the complete URL string ..

http://www.xxxxxxxx.com/gallery/search.php?searchid=4

request for.




Thanks

Last edited by Bills; March 1st, 2007 at 07:32 AM.
Bills is offline   Reply With Quote
Old March 1st, 2007, 08:05 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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.
Bills is offline   Reply With Quote
Old March 1st, 2007, 08:32 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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 >>> ???
Bills is offline   Reply With Quote
Old March 1st, 2007, 09:08 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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"
Bills is offline   Reply With Quote
Old March 1st, 2007, 10:09 AM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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);
Bills is offline   Reply With Quote
Old March 1st, 2007, 11:23 AM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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
Bills is offline   Reply With Quote
Old March 1st, 2007, 11:59 AM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0