Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Passing on parameters in a URL that initiates a CPG search from outside  (Read 2390 times)

0 Members and 1 Guest are viewing this topic.

soro

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22

This is probably a very easy question, yet I've played around and searched for a while and didn't find an answer: I want to place links on a page outside coppermine that return search results from the galleries. Note that I'm not talking about a coppermine search field outside of coppermine. That issue has been addressed a couple of times in the forums. I want a hard coded url that returns results on the strings defined in that url. I've found that something like

coppermineURL/thumbnails.php?album=search&search=string1+string2

does the job in principle, but it seems to default to AND where, occasionally, I'm going to need OR. How do I force OR? What other parameters can I pass on (like looking in certain categories only)? Also, this is the link from the keywords, so I assume it only looks in keywords. How do I link to a fulltext search? Thanks, and sorry if this is too basic a question.
« Last Edit: February 20, 2006, 08:41:58 pm by Nibbler »
Logged

soro

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: Passing on parameters in a URL that initiates a CPG search from outside
« Reply #1 on: February 20, 2006, 08:08:38 pm »

Ok, I figured I might as well have people "submit" the form from an outside search box, with all fields hidden and all parameters predefined. In any case, a form button looks better than a text link. So please regard this issue as solved. For people who want to do something similar, the link to a thread with the form for an outside search box:

http://forum.coppermine-gallery.net/index.php?topic=28097.0
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.