News:

CPG Release 1.6.28
added submissions from {406man}
cleaned up a few PHP (8.4) deprecations
fixed PHP deprecation in calendar
removed security vulnerability
(please upgrade when possible)

Main Menu

Activate Search @ Own Theme.

Started by Steve.H, October 14, 2003, 05:09:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Steve.H

Hi all!

I Just edited my new site, and i created a new field for SEARCH at mains page. But i don't known how do I put it to work...  :(  

I've just coppied the SEARCH.PHP "META, Values, Etc..." into my INDEX page (where the new SEARCH BOX is avaliable)... and it still doesn't work.

Can someone in here help me how to edit it?
Thanks!

Tarique Sani

SANIsoft PHP applications for E Biz

Steve.H

Is that Ok if I PM you Tarique?

I wouldn't like to make my URL becoming public.

 :lol:

Tarique Sani

SANIsoft PHP applications for E Biz

Joachim Müller

I'm not sure if I got your question right - to add a search box, try<form method="get" action="http://yoursite.com/coppermine/thumbnails.php" name="search_cpg">
<input type="hidden" name="album" value="search" />
<input type="hidden" name="type" value="full" />
<input type="input" name="search" maxlength="255" size="18" value="search the gallery" onfocus="this.value=''" /></form>
GauGau

Steve

GauGau

Thx. the code that tarique gave me (thru PM) was correct.
But i got a "strange" issue... may I PM you my URL, so you might check it out?

I got the same code that Tarique gave me, one I inserted inside my main TABLE at index.htm
And the other one (exactly the same) i posted out of the table, right under (last line) of my template.

The one inside the TABLE returns as: NO MATCHES FOUND
But the other one (above) returns fine results.

I just don't know what's happening, since both has the same code.

Thanks in advance.
[size=9]The Only Thing Necessary For The Triumph Of Evil,
Is For Good Men To Do Nothing. - Edmund Burke.[/size]

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.signatures.kit.net%2Fozmosis-br.gif&hash=326963619c8131d13b88176b506ad69fc7770710)

Joachim Müller

sure, go ahead and pm me your url (preferably with a link to this thread as well - I often don't find the posts people refer to in pms). Maybe you've got a naming conflict of the forms: the forms mustn't have the same names...

GauGau

P.S. You could have asked to have your name changed instead of re-registering :wink:

Joachim Müller

you mustn't touch the hidden fields - they don't have to be uniquely named (they're in different forms)!

Here are your forms:
a) the form that doesn't work<form method="get" action="thumbnails.php">
  <font color="#FF0000">WHY THE SEARCH DOESN'T WORKS HERE?</font>
  <input type="hidden" name="album2" value="search">
  <input type="hidden" name="type2" value="full">
  <input type="input" name="search2" maxlength="255" value="Procure uma foto" class="textinput">
  <input name="submit" type="submit" class="button" value="Ok">
</form>

b) the form that works<form method="get" action="thumbnails.php">
  <div align="center">
    <p><font color="#000099">THE SEACH BOX HERE WORKS</font> <font color="#000066">BUT
      I WISH THIS COULD WORK UP THERE</font>
<input type="hidden" name="album" value="search">
      <input type="hidden" name="type" value="full">
      <input type="input" name="search" maxlength="255" value="Procure uma foto" class="textinput">
      <input type="submit" value="Ok" class="button">
    </p>
    <p>IF THIS CODE COULD WORK UP THERE, I WOULD REMOVE THIS ONE HERE.</p>
    <p>&nbsp;</p>
  </div>
</form>


-------------------------------------------------
Here's what you do:
1) comment out the form at the bottom (put <!-- in front of it, --> after it)
2) Change to form at the top to<form method="get" action="thumbnails.php" name="searchgal">
<input type="hidden" name="album" value="search" />
      <input type="hidden" name="type" value="full" />
      <input type="input" name="search" maxlength="255" value="Procure uma foto" class="textinput" />
      <input type="submit" name="submit" value="Ok" class="button" />
</form>

3) report if this works for you

GauGau

Steve

Ok, PM sent (this morning), and by the way...
I didn't knew that i could ask to change my nickname, heh.

Better, i already ask for so many support feeds in here, that i would be 'embarassed' by asking this... well, i guess now you guys may "delete" my older nick (oZmosis), hehe.

Thanks.
[size=9]The Only Thing Necessary For The Triumph Of Evil,
Is For Good Men To Do Nothing. - Edmund Burke.[/size]

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.signatures.kit.net%2Fozmosis-br.gif&hash=326963619c8131d13b88176b506ad69fc7770710)

Joachim Müller


Steve

Woohoo!

Thanks GauGau!  :lol:
It works GREAT right now, i'll "study" the modifications that you made for me, and try to understand it a bit more.

Thanks again for you support!
[size=9]The Only Thing Necessary For The Triumph Of Evil,
Is For Good Men To Do Nothing. - Edmund Burke.[/size]

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.signatures.kit.net%2Fozmosis-br.gif&hash=326963619c8131d13b88176b506ad69fc7770710)