New Dynamic YouTube Gallery - Embed YouTube Playlist, Channel, Live Stream in minutes. Read More

Search bar on results page?

  • DocAuto
  • Topic Author
  • Visitor
  • Visitor

Search bar on results page? was created by DocAuto

Is there a way to place a search bar on the search results page?

Currently, if I do a search and do not find the results I want I have to use the browsers back button and return to the original search page to search again.
11 years 6 months ago #6876

Please Log in or Create an account to join the conversation.

  • Posts: 2518
  • Thank you received: 1463

Replied by Administrator on topic Re: Search bar on results page?

- Open {root}/components/com_allvideoshare/views/search/tmpl/default.php

- Add the following code next to <h2>...</h2>
<div align="center" class="avs_input_search<?php echo $moduleclass_sfx; ?>">
  <form action="<?php echo JRoute::_( "index.php?option=com_allvideoshare&view=search" ); ?>" name="hsearch" id="hsearch" method="post" enctype="multipart/form-data">
    <input type="hidden" name="option" value="com_allvideoshare"/>
    <input type="hidden" name="view" value="search"/>
    <input type="text" name="avssearch" id="avssearch" style="width:75%" value="<?php echo htmlspecialchars($this->keyword); ?>"/>
    <input type="submit" id="search_btn" class="btn" value="<?php echo JText::_('GO'); ?>" />
  </form>
</div>
- That's it. Hope, this solved your issue!
Last edit: 11 years 6 months ago by Administrator.
11 years 6 months ago #6877

Please Log in or Create an account to join the conversation.

Time to create page: 0.103 seconds

We accept cookies to provide you the best viewing experience. By using our services, you agree to our use of cookies