search field

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
fake91
Posts: 13
Joined: Wed Mar 02, 2011 10:53 am

search field

Post by fake91 »

I add search field to the right menu.
It works good - but unfortunately it disappears when i select topics from top ten.
What should i do to prevent disappearing of it?
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: search field

Post by Thorsten »

Hi,

in which template did you add it?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
fake91
Posts: 13
Joined: Wed Mar 02, 2011 10:53 am

Re: search field

Post by fake91 »

in default
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: search field

Post by Thorsten »

Hi,

yes, but which file. :-)

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
fake91
Posts: 13
Joined: Wed Mar 02, 2011 10:53 am

Re: search field

Post by fake91 »

index.tpl
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: search field

Post by Thorsten »

Hi,

please post your changes.... otherwise it'S hard to help you!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
fake91
Posts: 13
Joined: Wed Mar 02, 2011 10:53 am

Re: search field

Post by fake91 »

I only moved search field to the right menu. Nothing else.
If you write something in search field in "default template" and press enter the field disappears (the same as in my template) and the search results appears.
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: search field

Post by Thorsten »

Hi,

but I need your index.tpl file to see what exactly you have changed...

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
fake91
Posts: 13
Joined: Wed Mar 02, 2011 10:53 am

Re: search field

Post by fake91 »

<div class="rightcolumn" style="border-left:1px solid gray;">

<div class="content" >
<b>CATEGORIES</b>
<div id="categories">
<ul>
{showCategories}
</ul>
</div>
</div>

<div class="content">
<div id="stickyrecords">
<h3>{stickyRecordsHeader}</h3>
<ul>
[stickyRecordsList]
<li><a href="{stickyRecordsUrl}">{stickyRecordsTitle}</a></li>
[/stickyRecordsList]
</ul>
</div>
</div>

<div class="content">
[globalSearchBox]
<form id="search" action="{writeSendAdress}" method="get">
<input type="text" name="search" id="searchfield" size="30" />
<input type="submit" name="submit" value="{searchBox}" />
<input type="hidden" name="searchcategory" value="{categoryId}" />
<input type="hidden" name="action" value="search" />
</form>
[/globalSearchBox]
[globalSuggestBox]
<form id="instantform" action="?action=instantresponse" method="post">
<input id="ajaxlanguage" name="ajaxlanguage" type="hidden" value="{ajaxlanguage}" />
<input class="inputfield" id="instantfield" type="text" name="search" value="" />
</form>
[/globalSuggestBox]

</div>

<div class="content">
{rightBox}
</div>

</div>
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: search field

Post by Thorsten »

Hi,

you have to remove the templae block commands like [globalSearchBox] from it. Then it should work.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
fake91
Posts: 13
Joined: Wed Mar 02, 2011 10:53 am

Re: search field

Post by fake91 »

the search box dont work when i delete the [globalSearchBox]
(because it didn`t understand values between "{}" )
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: search field

Post by Thorsten »

Hi,

could you please send me your template folder by e-mail? I'll check it.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply