Go Back   Pligg CMS Forum > Pligg Development > Bug Report

Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 06-23-2008, 12:52 PM
hotsitez's Avatar
Casual Pligger
Pligg Version: 9.x
 
Join Date: Jun 2007
Posts: 30
Thanks: 2
Thanked 0 Times in 0 Posts
$50 to Correct this Bug!

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
__________________
I Love Open Source Projects!
Reply With Quote
  #12 (permalink)  
Old 11-29-2008, 07:54 PM
New Pligger
 
Join Date: Aug 2008
Posts: 13
Thanks: 1
Thanked 4 Times in 2 Posts
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
Reply With Quote
The Following User Says Thank You to ortho For This Useful Post:
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
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


Search Engine Friendly URLs by vBSEO 3.2.0