Strict Standards: Redefining already defined constructor for class bbdb in /home/themes/public_html/forums/bb-includes/db-mysql.php on line 12

Strict Standards: Declaration of BB_Walker_Blank::start_lvl() should be compatible with BB_Walker::start_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_lvl() should be compatible with BB_Walker::end_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::start_el() should be compatible with BB_Walker::start_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_el() should be compatible with BB_Walker::end_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Warning: Cannot modify header information - headers already sent by (output started at /home/themes/public_html/forums/bb-includes/db-mysql.php:12) in /home/themes/public_html/forums/my-templates/kakumei-variant/rss2.php on line 1
ThemeShaper Forums Topic: Replacing Wordpress search with Google http://forums.themeshaper.com/ Help In Shaping WordPress Themes en Sat, 30 May 2015 06:05:30 +0000 helgatheviking on "Replacing Wordpress search with Google" http://forums.themeshaper.com/topic/replacing-wordpress-search-with-google#post-24205 Thu, 08 Dec 2011 12:14:21 +0000 helgatheviking 24205@http://forums.themeshaper.com/ <p>no tutorials that i know of. your code for replacing the search loop looks fine. however, if you are getting a 404 then your loop isn't the problem. </p> Nate H on "Replacing Wordpress search with Google" http://forums.themeshaper.com/topic/replacing-wordpress-search-with-google#post-24184 Wed, 07 Dec 2011 20:22:05 +0000 Nate H 24184@http://forums.themeshaper.com/ <p>I must be missing something. Is there a tutorial for adding a Google Custom Search to Thematic? </p> <p>Thanks again for the help. </p> Nate H on "Replacing Wordpress search with Google" http://forums.themeshaper.com/topic/replacing-wordpress-search-with-google#post-24177 Wed, 07 Dec 2011 03:18:05 +0000 Nate H 24177@http://forums.themeshaper.com/ <p>Thank you for the help!</p> <p>I found this tutorial:<br /> <a href="http://www.newtechie.com/2011/11/how-to-add-google-custom-search-to.html#axzz1fmuG5yr5" rel="nofollow">http://www.newtechie.com/2011/11/how-to-add-google-custom-search-to.html#axzz1fmuG5yr5</a></p> <p>Which uses the Two Page layout method. I get a 404'd when I tried getting it to work.</p> <p>Here is my latest attempt, that isn't working, at removing the Thematic loop and adding the google code within the functions.</p> <pre><code>// remove the standard search loop function remove_search_loop() { remove_action(&#39;thematic_searchloop&#39;, &#39;thematic_search_loop&#39;); } add_action(&#39;wp&#39;, &#39;remove_search_loop&#39;); // create your own search loop function my_search_loop() { // Your content goes in here &lt;?php if ( have_posts() ) : ?&gt; &lt;div id=&quot;cse&quot; style=&quot;width: 100%;&quot;&gt;Loading&lt;/div&gt; &lt;script src=&quot;//www.google.com/jsapi&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt; &lt;script type=&quot;text/javascript&quot;&gt; function parseQueryFromUrl () { var queryParamName = &quot;s&quot;; var search = window.location.search.substr(1); var parts = search.split(&#39;&#38;&#39;); for (var i = 0; i &lt; parts.length; i++) { var keyvaluepair = parts[i].split(&#39;=&#39;); if (decodeURIComponent(keyvaluepair[0]) == queryParamName) { return decodeURIComponent(keyvaluepair[1].replace(/\+/g, &#39; &#39;)); } } return &#39;&#39;; } google.load(&#39;search&#39;, &#39;1&#39;, {language : &#39;en&#39;, style : google.loader.themes.MINIMALIST}); google.setOnLoadCallback(function() { var customSearchControl = new google.search.CustomSearchControl( &#39;XXXXXXXXXXXXXXXXXXXXXX&#39;); customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET); customSearchControl.draw(&#39;cse&#39;); var queryFromUrl = parseQueryFromUrl(); if (queryFromUrl) { customSearchControl.execute(queryFromUrl); } }, true); &lt;/script&gt; &lt;?php endif; ?&gt; add_action(&#39;thematic_searchloop&#39;, &#39;my_search_loop&#39;);</code></pre> helgatheviking on "Replacing Wordpress search with Google" http://forums.themeshaper.com/topic/replacing-wordpress-search-with-google#post-24175 Wed, 07 Dec 2011 01:32:47 +0000 helgatheviking 24175@http://forums.themeshaper.com/ <p>thematic_search_form() is the form</p> <p>and </p> <p>thematic_searchloop() is the results</p> <p>don't know if that helps </p> Nate H on "Replacing Wordpress search with Google" http://forums.themeshaper.com/topic/replacing-wordpress-search-with-google#post-24174 Tue, 06 Dec 2011 19:55:45 +0000 Nate H 24174@http://forums.themeshaper.com/ <p>Aloha,<br /> I have been trying to get Google search results on my webpage and seem to be missing something. I have found no plugin that will work, because google recently changed their Custom Google Search Control panel to not have an iframe option.</p> <p>I thought I was getting somewhere with this article, but it seems like Thematic overrides the search results page: <a href="http://iamtgc.com/2011/07/10/integrating-a-google-custom-search-engine-into-your-wordpress-blog/" rel="nofollow">http://iamtgc.com/2011/07/10/integrating-a-google-custom-search-engine-into-your-wordpress-blog/</a></p> <p>Any insight would be very much appreciated.</p> <p>Thank You,<br /> Nate </p>