Results 1 to 7 of 7

Thread: Web search option on Indexu Deluxe 1.3.1

  1. #1
    Join Date
    Oct 2003
    Posts
    8

    Default Web search option on Indexu Deluxe 1.3.1

    Hi everyone!

    I'm testing the new version of Indexu (1.3.1) and everything is fine.
    But I can't see a web search option on indexu templates.
    (ie http://www.indexutemplates.com/demo/...ternet_Sharing)

    Is there integration with Yahoo's API or Google CSE as there were on older versions?

    Thanks!

    Buscalaw
    BuscaLaw

  2. #2
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    Many of those templates simply don't include the "search on the web" function. To be honest there is no benefit for the site owner to let users search the web either.

  3. #3
    Join Date
    Oct 2003
    Posts
    8

    Default

    Thanks Bruceper.

    But... I'd like to give my users this option. What can I do?
    I try to use the Indexu 1.2.1 search code, but I receive this error:

    Fatal error: Call to a member function RecordCount() on a non-object in /home/remediar/public_html/search.php on line 134

    You can test it on INDEXU Deluxe - Link Management
    BuscaLaw

  4. #4
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    The recordcount error would mean that what the script is looking for in the database is incorrect. There are either too many or not enough rows. You'd need to modify the code.

    Try copying code from the kosmos 1.31 template instead.

  5. #5
    Join Date
    Jul 2008
    Posts
    117

    Default

    hi buscalaw,

    here the step how to add search option in your search box.

    add this html code to your search form after text input type:

    <select name="opt">
    <option value="0"><%t%>the entire directory<%/t%></option>
    <option value="2"><%t%>on the web<%/t%></option>
    </select>
    your search form maybe like :
    <form method="get" action="<%$site_url%>/search.php">
    <%$hook_html_header_top_search_box_form_begin%>
    <input type="text" name="keyword" size="20" value='<%t%>search...<%/t%>'
    onblur="if(this.value=='') this.value='<%t%>search...<%/t%>';"
    onfocus="if(this.value=='<%t%>search...<%/t%>') this.value='';" class="newsletter_input" />
    <input type="submit" value="<%t%>Search<%/t%>" class="join" />
    <%$hook_html_header_top_search_box_form_end%>
    </form>
    and now should be look like this:
    <form method="get" action="<%$site_url%>/search.php">
    <%$hook_html_header_top_search_box_form_begin%>
    <input type="text" name="keyword" size="20" value='<%t%>search...<%/t%>'
    onblur="if(this.value=='') this.value='<%t%>search...<%/t%>';"
    onfocus="if(this.value=='<%t%>search...<%/t%>') this.value='';" class="newsletter_input" />
    <select name="opt">
    <option value="0"><%t%>the entire directory<%/t%></option>
    <option value="2"><%t%>on the web<%/t%></option>
    </select>

    <input type="submit" value="<%t%>Search<%/t%>" class="join" />
    <%$hook_html_header_top_search_box_form_end%>
    </form>
    hope this help.

    thank you.

  6. #6
    Join Date
    Oct 2003
    Posts
    8

    Default

    Thanks Maulana and Bruceper!
    Now is working ok on Buscalaw: Bienvenido / Welcome / Bem-vindo
    BuscaLaw

  7. #7
    Join Date
    Apr 2006
    Posts
    447

    Default

    Wow. PR6. How did you do it?

Similar Threads

  1. Indexu Deluxe and Tinymce
    By echo@ in forum INDEXU DELUXE v1.x
    Replies: 5
    Last Post: 08-25-2008, 03:19 AM
  2. IndexU Deluxe features
    By Bruceper in forum Announcements
    Replies: 0
    Last Post: 04-28-2008, 01:42 AM
  3. IndexU Deluxe....
    By esm in forum Customers Lounge
    Replies: 48
    Last Post: 04-05-2008, 06:44 AM
  4. IndexU Deluxe....
    By FSGDAG in forum Customers Lounge
    Replies: 6
    Last Post: 02-09-2008, 06:19 PM
  5. Replies: 8
    Last Post: 09-07-2007, 10:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •