chuckroast -
Thank you for getting back to me and also for confirming this is a BUG. I am willing to pay / contribute $50 fro this bug fix - If any one is interested please let me know. Once the bug fix is corrected you (or I) will post the solution here for all members to be able to use.
So ChuckRoast has given a Lead to fixing this error - anyone up for making $50
![]() |
| | LinkBack | Thread Tools | Display Modes |
| ||||
| $50 to Correct this Bug!
__________________ I Love Open Source Projects! |
| |||
|
So I have a solution for 9.9.5 and yget that works without modifying any php files, just tpl. You can use Google search, have the results on a page on your site, and still have tag search working. Make sure the configuration for search is NOT set to 4 (Google) -- if you set it to 4 this solution does not work and tag search does NOT work as reported above. in header.tpl Change {if $SearchMethod eq 4} to {if $SearchMethod eq 4 OR 0 eq "0"} This forces the search box to have Google search no matter what search method you configure. Put in your Google search box code In Pligg.tpl add this code: ======================= {php} if (strpos($_SERVER['QUERY_STRING'], "cx=partner-pub") !== false) { $isFromG = 1; } else{ $isFromG = 0; } $this->assign('isFromG',$isFromG); {/php} ============ This gives variable $isFromG to use in the template file. If 1 then the page called is from a google search. In search_center.tpl Change: {if $SearchMethod eq 4} to {if $isFromG eq 1} Put in your Google display search code to display search results =============== Now Google search will work (set it up to display on your site in the search.php page AND tag search is uneffected. The reason I did this is because the Pligg search methods are not very good with mulitple words (like this forum) and Google gives better results. Last edited by ortho; 11-29-2008 at 08:59 PM.. Reason: typo |
| The Following User Says Thank You to ortho For This Useful Post: | ||
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tags, tag range and .htaccess rewrite on URL Method 2 | Type40 | Bug Report | 6 | 10-13-2008 01:31 AM |
| SEO (Search Engine Optimization) | Yankidank | Wiki Articles | 23 | 12-02-2007 12:27 PM |
| Search Method 3 and 4 in Pligg version 9.8.2 broke | Iceburg | Bug Report | 3 | 11-03-2007 07:03 PM |
| plz help: search not work any more | fwebz | General Help | 7 | 02-02-2006 12:59 AM |




Linear Mode

