How Do I Implement Search Capability on My Site?

4 replies
Hi Warriors!

I have a PLR site with three main pages - and based on your recommendations, I need to reorganize it. I have the first page that has like 5 columns sectioned off into categories like this:

business & money
health & beauty
nature and pets
technology
miscellaneous

Each column just has text links below it - so eventually, this page is going to grow too long to scroll. It already has, okay I'll admit it. If I was a customer, I'd be annoyed at having to find what I wanted.

Then on page 1, I have links to two other pages - one where I sell longer article packs and reports and one where I sell packs of 52 articles plus an opt in report. On BOTH of these pages, I just have a table with no organization at all. It too is getting long and can't go on like this forever.

No one has a way to search on my site and I don't know if a search function would just let them search on one page, or if it would search my whole site? I don't know how to connect the tags they may put in with each pack - do you put one tag or a lot? I don't know if they type in a word, if it'll take them to a pack for sale or one of the articles on my site that I use for search engines?

I'm totally 100% lost and confused about this. Complete confusion.

Where's the best way to learn how to a.) organize a PLR site and b.) implement search function on it?

Mucho gracias ahead of time.
#capability #implement #search #site
  • Profile picture of the author garyv
    I've use this a few times and it works good:

    Sphider - a php spider and search engine
    {{ DiscussionBoard.errors[1056576].message }}
    • Profile picture of the author Jagged
      Hi Tiffany,



      Organizing your PLR is another thing but....as far as creating a search feature....Create one easy with Google...This will search your site only....just follow the steps below:




      *If you have any questions PM me.
      1. Create a Google account if you do not have one.
      2. Create a search engine (login to your account.)
      3. Follow the directions at Google to setup the search and click the "finish".
      4. Go to the control panel for the search and find the "code" link.
      5. On the code page click on the "Search box and search results code for your website". New code will appear on the page.
      6. Copy all the code from the 2 boxes on this page and paste this into a text file you create by right clicking in your template folder and choosing "new" then "text document". Save this text file.
      7. You will now edit the "search.js" in 3 places. With your domain name, your Google "id" and your Google "cx" from the "CSE Search Box" that you just created in your Google account. (see below for example of where to edit)
      8. From your saved text file, copy all the "Google Search Result" code, open the "search_results.html", find the search results code in the page now and paste your results code over this code. Be sure to upload this HTML page when you upload.
      -----------------------------------
      search.js example
      -----------------------------------

      <!-- Begin
      // NOTE: If you use a ' add a slash before it like this \'

      var showbrand = "no" // SHOW GOOGLE BRANDING (SWITCH TO YES IF YOU HAVE ANY PROBLEMS)
      var showsearch = "yes" // SHOW SEARCH BOX

      var yourdomain = "www.yourdomain.com" // YOUR DOMAIN NAME OR PATH

      // GOOGLE SITE SEARCH


      if (showsearch == "yes") {
      document.write('<form id="searchbox_add_your_google_search_code_here" action="http://'+yourdomain+'/search_results.html" target="_top" class="formmargin">');
      document.write('<input type="hidden" name="cx" value="add_your_google_search_code_here" />');
      document.write('<input type="hidden" name="cof" value="FORID:9" />');
      document.write('<table cellpadding="0" cellspacing="0" border="0" class="sidebartext"><tr><td valign="top">');
      document.write('<input name="q" type="text" size="15" class="searchsiteform">');
      document.write('</td><td valign="top">');
      document.write('<INPUT TYPE="image" SRC="Picts/search-off.gif" name="sa" width="32" height="27" border="0" onmouseover="this.src=\'<img src="Picts/search-on.gif\'" onmouseout="this.src=\'Picts/search-off.gif\'" alt="Search"><br>')
      document.write('</td></tr></TABLE>');
      document.write('</form>');
      }


      // End -->

      ----------------------------------
      search_results.html example
      ----------------------------------

      Google Search Result Snippet Begins -->
      <div id="results_add_your_google_search_code_here"></div>
      <script type="text/javascript">
      var googleSearchIframeName = "results_add_your_google_search_code_here";
      var googleSearchFormName = "searchbox_add_your_google_search_code_here";
      var googleSearchFrameWidth = 600;
      var googleSearchFrameborder = 0;
      var googleSearchDomain = "google.com";
      var googleSearchPath = "/cse";
      </script>
      <script type="text/javascript" src="http://www.google.com/afsonline/show...h.js"></script>
      <!-- Google Search Result Snippet Ends -->";


      ---------------------------------
      {{ DiscussionBoard.errors[1056637].message }}
  • Profile picture of the author TiffanyLambert
    Hey Ken thanks for so much detail. Now since I'm stupid (lol), does this Google thing just return results from MY site or Google in general? And will it work with Joomla? Someone mentioned organizing it in my PM box - wondering if the two would go hand in hand?
    {{ DiscussionBoard.errors[1056813].message }}
    • Profile picture of the author Jagged
      Originally Posted by TiffanyDow View Post

      Hey Ken thanks for so much detail. Now since I'm stupid (lol), does this Google thing just return results from MY site or Google in general? And will it work with Joomla? Someone mentioned organizing it in my PM box - wondering if the two would go hand in hand?
      In setting up your Google search engine you can define whether you want search results from your site only or from google in general...

      Not sure about Joomla....don't use it much but I on't see why not...

      Ken
      {{ DiscussionBoard.errors[1056884].message }}

Trending Topics