Core Modules & Blocks  :: 
Search Block
 Top

  • Hello,

    I'd like to know where the code for search block is located.
    I've attached a screenie to show which I mean by search block.
    Thank you.

    http://img409.imageshack.us/img409/6130/searchblock9cj.png
  • *bump

    Can you help me with this, please?
  • You aren't specific about what you are asking.

    Do you want to change the appearance of that block? The location? The functionality?



    --
    Peace
    ______________________________________
    The commonest cause of problems is solutions.
  • I'm sorry.

    I want to add a link under the Search button, and make the field stores the last search (I don't know if this one can be done).
    Those are what I want.

    Thanks.
  • I don't believe the functionality currently exists to store a search. PN takes the search terms, generates a query, returns the results.

    You would have to hack the search code to make it store the search terms somewhere in the database and then call them and redisplay.

    Way beyond anything I can give advice about.

    --
    Peace
    ______________________________________
    The commonest cause of problems is solutions.
  • I see...

    What about adding a link inside the search block?
    I want to add an advance search link in that block that links to http://mysitename.com/index.php?module=Search

    I think it's neater rather than adding a new block under the search block.

    Yeah, I did some hack too so it searches the database contents I want =p
  • The next version does show the recent searches, and while you could achieve what you want, it would require writing a fair bit of code.

    To add a link, just edit includes/blocks/search.php

    --
    Regards,
    Simon

    itbegins.co.uk - Zikula Consulting

    Please read the Support Guide
  • Thanks a lot for the replies.

    That was really helpful :)
This list is based on the users active over the last 60 minutes.