Go Back   Pligg Forum > Pligg Help > General Help
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-18-2007, 06:35 PM
doctorgirlfriend doctorgirlfriend is offline
Casual Pligger
 
Join Date: Jul 2006
Posts: 34
Downloads: 11
Uploads: 0
Thanks: 1
Thanked 5 Times in 3 Posts
Question Google Site Search Submits Wrong URL * SOLVED*

Hi gang,
When I set my Pligg Beta 9.8 install to use Google Site Search, the search.php pages comes up, but it doesn't find any results (Google says "Your search - new york - did not match any documents. .") And yes, I've tried several words that I know have been in the db a long time.
The URL is like this:
HTML Code:
http://www.mysite.com/news/search.php?cx=010213779252248883968%3A3qxlljo_6tg&cof=FORID%3A10&sitesearch=%2Fnews&q=new+york&sa=Go#428
I find that if I manually change part of the URL from:
HTML Code:
&sitesearch=%2Fnews
to:
HTML Code:
&sitesearch=http://www.mysite.com/news
it lands me on the search.php page with plenty of results. Any ideas on how I can fix this?

* SOLVED AS I WAS TYPING THIS *
Here's a fix for anyone else having this problem:
Open header.tpl and change:
HTML Code:
<input type="hidden" name="sitesearch" value="{$my_pligg_base}" checked="checked" />
to:
HTML Code:
<input type="hidden" name="sitesearch" value="http://www.mysite.com/myinstallationfolder" checked="checked" />
The search probably works fine on top-level installations, but if you have your installed in a subdirectory this is a quick fix. =)
Reply With Quote
The Following User Says Thank You to doctorgirlfriend For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 09-21-2007, 11:33 AM
AshDigg's Avatar
AshDigg AshDigg is offline
Mayor of PliggVille
 
Join Date: Dec 2005
Posts: 1,623
Downloads: 34
Uploads: 10
Thanks: 237
Thanked 346 Times in 207 Posts
You may want to use the following files

/yget/search_center.tpl
/yget/header.tpl

From the 9.8.1 release. It has this fix plus allows the search to show google ads.
__________________
- Ash
Reply With Quote
  #3 (permalink)  
Old 09-22-2007, 04:16 PM
Iceburg's Avatar
Iceburg Iceburg is offline
Send a message via ICQ to Iceburg Send a message via AIM to Iceburg Send a message via MSN to Iceburg Send a message via Yahoo to Iceburg
Pligg Donor
 
Join Date: Sep 2006
Posts: 74
Downloads: 27
Uploads: 0
Thanks: 2
Thanked 0 Times in 0 Posts
Why would you want google ads when they are not associated with you or your account and therefor make no $ from them?

How do I remove the google ads and just use google search?
__________________
------------------------------------------------------
http://www.neweasyrecipe.com
http://www.feedthebull.com
Reply With Quote
  #4 (permalink)  
Old 09-22-2007, 06:22 PM
AshDigg's Avatar
AshDigg AshDigg is offline
Mayor of PliggVille
 
Join Date: Dec 2005
Posts: 1,623
Downloads: 34
Uploads: 10
Thanks: 237
Thanked 346 Times in 207 Posts
Quote:
Originally Posted by Iceburg View Post
Why would you want google ads when they are not associated with you or your account and therefor make no $ from them?
You would want to put in your Google Adsense ID in header.tpl so you get credit for any ad clicks.
__________________
- Ash
Reply With Quote
  #5 (permalink)  
Old 09-25-2007, 09:24 PM
Iceburg's Avatar
Iceburg Iceburg is offline
Send a message via ICQ to Iceburg Send a message via AIM to Iceburg Send a message via MSN to Iceburg Send a message via Yahoo to Iceburg
Pligg Donor
 
Join Date: Sep 2006
Posts: 74
Downloads: 27
Uploads: 0
Thanks: 2
Thanked 0 Times in 0 Posts
Hey Ash,

I don't see where in the header... i see the code if vote method == 4, but don't see it... Can you be a little more specific?
__________________
------------------------------------------------------
http://www.neweasyrecipe.com
http://www.feedthebull.com
Reply With Quote
  #6 (permalink)  
Old 09-25-2007, 09:40 PM
AshDigg's Avatar
AshDigg AshDigg is offline
Mayor of PliggVille
 
Join Date: Dec 2005
Posts: 1,623
Downloads: 34
Uploads: 10
Thanks: 237
Thanked 346 Times in 207 Posts
Should be line 22.

PHP Code:
                <input type="hidden" name="client" value="pub-7688534628068296"></input
Replace "pub-7688534628068296" with your adsense ID.
__________________
- Ash
Reply With Quote
The Following User Says Thank You to AshDigg For This Useful Post:
  #7 (permalink)  
Old 10-03-2007, 07:26 AM
nothingman nothingman is offline
Constant Pligger
Pligg Version: 9.7
Pligg Template: Yget
 
Join Date: Nov 2006
Posts: 161
Downloads: 25
Uploads: 0
Thanks: 26
Thanked 1 Time in 1 Post
Testing 9.8.2 on a sub-folder..does the site need to be indexed by Googlebot first? as this doesn't seem to work :-/
Reply With Quote
  #8 (permalink)  
Old 10-03-2007, 09:59 AM
bhatiacane's Avatar
bhatiacane bhatiacane is offline
Send a message via Yahoo to bhatiacane Send a message via Skype™ to bhatiacane
Constant Pligger
Pligg Version: 9.9
Pligg Template: yget
 
Join Date: Jul 2007
Location: Country : INDIA, State : Uttar Pradesh, City : Bareilly
Posts: 117
Downloads: 80
Uploads: 0
Thanks: 3
Thanked 2 Times in 2 Posts
Exclamation where i put my google adsense code, please reply me and bold that text.....

where i put my google adsense code, please reply me and bold that text where i replace my adsense code.

<!-- Google CSE Search Box Begins -->
<form id="searchbox_010213779252248883968:3qxlljo_6tg" action="{$my_pligg_base}/search.php">
<input type="hidden" name="cx" value="010213779252248883968:3qxlljo_6tg" />
<input type="hidden" name="cof" value="FORID:10" />
<input type="hidden" name="sitesearch" value="{$my_pligg_base}" checked="checked" />
<input name="q" type="text" size="15" value="{$searchboxtext}" onfocus="if(this.value == '{$searchboxtext}') {ldelim}this.value = '';{rdelim}" onblur="if (this.value == '') {ldelim}this.value = '{$searchboxtext}';{rdelim}" />
<input type="submit" name="sa" value="{#PLIGG_Visual_Search_Go#}" />
</form>
<!-- Google CSE Search Box Ends -->
Reply With Quote
  #9 (permalink)  
Old 10-17-2007, 08:39 AM
asknat's Avatar
asknat asknat is offline
New Pligger
 
Join Date: Aug 2007
Posts: 14
Downloads: 16
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
where to put this code in the google search method .

<input type="hidden" name="client" value="pub-7688534628068296"></input>




where to put this code .... and if i put it , where google can read it ???? i mean is it working . btw i searched 9.8 but there is no code like this !!!
Reply With Quote
  #10 (permalink)  
Old 10-23-2007, 11:31 PM
Iceburg's Avatar
Iceburg Iceburg is offline
Send a message via ICQ to Iceburg Send a message via AIM to Iceburg Send a message via MSN to Iceburg Send a message via Yahoo to Iceburg
Pligg Donor
 
Join Date: Sep 2006
Posts: 74
Downloads: 27
Uploads: 0
Thanks: 2
Thanked 0 Times in 0 Posts
As an update... If I change the search option to something like option 3, and then I switch it back to URL method 4, the search works the first time, and then subsequent searching return no results... untill I switch to 3 and then back to 4 agian.

I cleared the cache, and the templates_c folder, what else could be happening here?
__________________
------------------------------------------------------
http://www.neweasyrecipe.com
http://www.feedthebull.com

Last edited by Iceburg : 10-23-2007 at 11:58 PM.
Reply With Quote
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

vB code is On
Smilies are Off
[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
Alexa & Google Rank #5 3dKiller My Pligg Site 34 03-11-2008 08:53 AM
Custom Google Widget For Your Pligg Site chuckroast Pligg Mods 7 02-29-2008 12:57 PM
Replacing default Pligg search with Google Site search aaronpais General Help 8 08-20-2007 01:27 PM


LinkBacks Enabled by vBSEO 3.0.0