two different search forms

Hi,
I had searched and read the forum, but dont know if it is answered before...
I have installed WP and ZP (default theme), and now I have two different search forms. I want them to look similar and I am wondering if it is possible for one of them to searche all my site, not as is now: the Zp search form looking for Zp part of the site, and WP search form looking for the WP part of my blog.

a) Where should I look for a file to change the look of the ZP search form?
b) Is it posible to make the search to all site, (an easy way for someone like me that does know nothing about php)?

here are the blog: http://www.barrento.com/magazine/ (the search form is to big, I want to make the text smaller, but dont now how..)
and the site: http://www.barrento.com/emag/zenphoto//Amphibian

Thank you for any help

Comments

  • If it is just a CSS thing, the search for is in a DIV id=search. But I am confused. The text in the zenphoto search form seems smaller than the WP one.
  • If it is just a CSS thing, the search for is in a DIV id=search. But I am confused. The text in the zenphoto search form seems smaller than the WP one.
  • thanks sbillard,
    ...it is smaller because they are different ones. I did not really make an integration of WP and ZP, I have installed both and make them appear the same. I did not thinked about the search part earlier :(
    I did not change the search forms (just the WP one and only by adding the text) I tried to change that div with the css but did not work, dont know why. The code is:
    <form id="searchform" action="<?php bloginfo('url'); ?>/" method="get" role="search">
    <fieldset>
    <label for="s"></label>
    <input type="text" name="s" />
    <input type="submit" name="submit" value="Search barrento.com" />
    </fieldset>
    </form>
    it works, I found it in the wp forum, but i can not change the look.
    the ZP one is: <?php if (getOption('Allow_search')) { printSearchForm(''); } ?>

    The major problem is that each form searches only a part of the site: WP searches the blog, and the ZP one search only the galleries... any help on this? I tried to put the WP one in the ZP, but did not work at all.
  • NO, sorry, Obviously we deal only with the zenphoto search. Anything that would integrate them would require two things. First, a new form/script that searched each site for the criteria. Second a new page that knows how to display the results of both types of search.
  • acrylian Administrator, Developer
    Also note that we consider Zenphoto as a standalone system. To get what you want you have to eitehr write a Wordpress or Zenphoto plugin to do this. Not sure if that is really worth the work as like sbillard said the display of the results Maybe just label the search forms as we do on zenphoto.org to avoid confusion?

    (Or maybe try the Zenpage CMSplugin instead of Wordpress..;-))
  • Thank you both.
    sbillard,
    of course you deal only with ZP :) my question was if it would be easy for someone like me (who knows nothing about php) to put the ZP search to search the WP content too...but i think I was asking to much :)
    acrylian,
    I am just a photographer, I cant write plugins :) I dont even know exactly what you mean about "label the search forms". I will do a search about the CMSplugin. Is it to do a blog in ZP instead of having WP?

    Thanks again you both, and congrats for your great work here.
  • acrylian Administrator, Developer
    With "labeling" I mean just write below them what part of the site they search for..;-)

    Yes, the Zenpage CMS plugin is a a news (blog) and page management CMS that integrates with Zenphoto. Just look at our demo, there is also a link to the plugin's page.
  • You can check out my site for an example where the Wordpress and Zenphoto search forms are styled the same. Also, as Acrylian suggested, each search form is labeled using some Javascript to let the user know that they are either searching the site or the gallery.

    http://www.bryanbrazil.com/gallery/
  • Ok, this time I am feeling dumb :( is there a Zenpage download?
    I find this page but no link: http://www.zenphoto.org/2009/03/zenpage-a-cms-plugin-for-zenphoto/#zenpage
  • It comes with the rest of zenphoto. Check the plugins tab in admin
  • acrylian's comments above regarding Zenpage suggest that a single search form could search and present results for *both* Zenpage and Zenphoto. Is that correct?

    Also, what content are included in the search results? Ideally, the administrator could configure what items are searched (news posts, photo titles and/or descriptions, tags, news and/or photo comments, etc.).
  • Yes, search does traverse the whole of zenphoto. You should probably look at one of the themes that inculde zenpage support to see how things work. The quick answer is that you get back the content you ask for on the search page--if you have an next_album() loop you get albums back. If you have a next_image() loop you get images back. If you have a next_page() loop you get pages back. If you have a next_news() loop you get news articles back.
Sign In or Register to comment.