Fork me on GitHub

New theme - search not working  Bottom

  • I just created a new theme for my website ( http://www.canadianyouthworker.com/ ). The new theme can be viewed by going to http://www.canadianyouthworker.com/index.php?theme=CYW

    With the old theme the search engine works great, however with the new theme it doesn't cry

    I have no idea why and I have no idea what to do.
  • This is the search box in your site

    Code

    <div class="searchbox"><BR><BR>
        <img src="themes/CYW/images/searchthewebsite.jpg" height="17" width="141" alt="Search The Website">
        <BR>
        <BR>
        <form method="post" action="index.php">
            <div>
                <input type="hidden" name="name" value="Search" />
                <input type="hidden" name="action" value="search" />
                <input type="hidden" name="overview" value="1" />
                <br />
                <div style="text-align:center">
                    <input type="text" name="q" size="14" />
                </div>
            </div>
        </form> 
    </div>


    What's missing is information on what to search. The hidden inputs should be put in the template next to the existing hidden input. You usually have to add an input for every module that you want to search. That could be any of these:

    Code

    <input type="hidden" name="active_downloads" value="1" />
      <input type="hidden" name="active_faqs" value="1" />
      <input type="hidden" name="active_reviews" value="1" />
      <input type="hidden" name="active_sections" value="1" />
      <input type="hidden" name="active_stories" value="1" />
      <input type="hidden" name="active_users" value="1" />
      <input type="hidden" name="active_weblinks" value="1" />


    HTH
  • Stupid mistake! For some dumb reason I created a search block. I should have just used the postnuke search block.
  • The Search feature works, thanks!!

    But now I have another problem. The results for the search show up at the bottom on the first page when using the new theme (CYW). I am using AutoTheme Lite

    I thought it might be because I didn't specify a template for the search module to use, but even after I set that up it didn't make a difference.

    ideas?
  • hey create a test user for us with the theme preference set to cyw... so we can see exactly what you mean.

    something like username test userpass test

    I am too lazy to register for your site...

    --
    David Pahl
    Zikula Support Team
  • I created a test user but I don't know how to change there theme settings!

This list is based on users active over the last 60 minutes.