Go Back   Pligg CMS Forum > Pligg Help > General Help

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-13-2007, 04:21 PM
Constant Pligger
 
Join Date: Apr 2007
Posts: 170
Thanks: 56
Thanked 5 Times in 5 Posts
Replacing default Pligg search with Google Site search

Has anyone implemented this? Is this doable? Any issues that I need to be aware of?
Reply With Quote
  #2 (permalink)  
Old 05-30-2007, 04:21 PM
New Pligger
 
Join Date: Feb 2007
Posts: 27
Thanks: 6
Thanked 0 Times in 0 Posts
I'd love to know if this is possible too. Or is there any known way to refine the Pligg search engine more. maybe "Advanced Search" option
Reply With Quote
  #3 (permalink)  
Old 05-30-2007, 09:38 PM
Constant Pligger
 
Join Date: Apr 2007
Posts: 170
Thanks: 56
Thanked 5 Times in 5 Posts
I think AshDigg is working on adding advanced search for Pligg v1.0

I thought I read that somewhere.

BTW, ThePortlander glad to meet you. My site was made a featured site a day after yours in Aboutus.org
Reply With Quote
  #4 (permalink)  
Old 07-25-2007, 07:57 AM
mathcv's Avatar
New Pligger
Pligg Version: 9.7
Pligg Template: yGet
 
Join Date: Jul 2007
Location: Argentina
Posts: 14
Thanks: 1
Thanked 6 Times in 4 Posts
Post 4 simple step for install Google Search in your Pligg

Hi guys!
If your like remplace Pligg Search with Google Search, i write the instructions for the yget template, but for other template is similar :

1- Open /templates/yget/header.php

2- Find this code:

<form action="{$my_pligg_base}/search.php" method="get" name="thisform" id="thisform">
{if $templatelite.get.search neq ""}
{assign var=searchboxtext value=$templatelite.get.search|sanitize:2}
{else}
{assign var=searchboxtext value=#PLIGG_Visual_Search_SearchDefaultText#}
{/if}
<input type="text" size="18" name="search" id="searchsite" value="{$searchboxtext}" onfocus="if(this.value == '{$searchboxtext}') {ldelim}this.value = '';{rdelim}" onblur="if (this.value == '') {ldelim}this.value = '{$searchboxtext}';{rdelim}"/>
<input type="submit" value="{#PLIGG_Visual_Search_Go#}" class="submit" />
</form>


3- And remplace whith this code:

<form method="get" action="http://www.google.com/search" target="_blank">
<input type="hidden" name="ie" value="UTF-8" />
<input type="hidden" name="oe" value="UTF-8" />
<input name="q" size="18" value="{$searchboxtext}" maxlength="255" />
<input name="btnG" type="submit" value="{#PLIGG_Visual_Search_Go#}" />
<input type="hidden" name="domains" value="YOURURL.COM" />
<input type="hidden" name="sitesearch" value="YOURURL.COM" checked="checked" />
</form>

4- Now upload and reemplace, header.php

5- FINISH!


*Reemplae in the step 3 ; YOURURL.COM for your complet URL


See'u!

Last edited by mathcv; 07-25-2007 at 08:06 AM.
Reply With Quote
The Following 2 Users Say Thank You to mathcv For This Useful Post:
  #5 (permalink)  
Old 07-25-2007, 08:38 AM
Casual Pligger
 
Join Date: Jul 2007
Posts: 44
Thanks: 19
Thanked 0 Times in 0 Posts
Google Search

Mathcv, Thanks for sharing your code.
Just one question: Don't you think that with Google search feature installed, the page will open on Google site rather than my own site?

Is there any working demo url that you know? This is just to get a view of the search page.

Thanks again
Reply With Quote
  #6 (permalink)  
Old 07-25-2007, 09:06 AM
mathcv's Avatar
New Pligger
Pligg Version: 9.7
Pligg Template: yGet
 
Join Date: Jul 2007
Location: Argentina
Posts: 14
Thanks: 1
Thanked 6 Times in 4 Posts
Google Search with result in the template

If you want the result appear in your site... then:

1- This is the code for the SearchBox:

<!-- Google CSE Search Box Begins -->
<form id="searchbox_007890414620772450188:gspq1fajlug" action="YOURURL.COM/RESULT.HTML" target="_blank">
<input type="hidden" name="cx" value="007890414620772450188:gspq1fajlug" />
<input name="q" type="text" size="40" />
<input type="submit" name="sa" value="Search" />
<input type="hidden" name="cof" value="FORID:9" />
</form>
<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=searchbox_007890414620772450188%3Agspq1 fajlug"></script>
<!-- Google CSE Search Box Ends -->


2- And this is Code for a Box Result:

<!-- Google Search Result Snippet Begins -->
<div id="results_007890414620772450188:gspq1fajlug"></div>
<script type="text/javascript">
var googleSearchIframeName = "results_007890414620772450188:gspq1fajlug";
var googleSearchFormName = "searchbox_007890414620772450188:gspq1fajlug";
var googleSearchFrameWidth = 450;
var googleSearchFrameborder = 0;
var googleSearchDomain = "www.google.com";
var googleSearchPath = "/cse";
</script>
<script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script>
<!-- Google Search Result Snippet Ends -->



>> For edit size of Box Result, edit this line "var googleSearchFrameWidth = 450;"

>> I think that the page to insert the results is user_template/yget/center.tpl, near the line 69

>> Also I think that my English caveman is graceful… jajaj


I extracted some codes of here: BuscaVina en tu sitio

Greetings!
Reply With Quote
The Following 2 Users Say Thank You to mathcv For This Useful Post:
  #7 (permalink)  
Old 07-25-2007, 09:12 AM
Casual Pligger
 
Join Date: Jul 2007
Posts: 44
Thanks: 19
Thanked 0 Times in 0 Posts
Smile Google Search

Mathcv,
Thank you very much.
Appreciate your kindness.
Reply With Quote
  #8 (permalink)  
Old 07-25-2007, 09:14 PM
New Pligger
 
Join Date: Jun 2007
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
hi matchcv

"think that the page to insert the results is user_template/yget/center.tpl, near the line 69"

still don't know how to do.

Is that mean put the "result code" into the user_center.tpl @ line 69, and what is the next step?

could u describe the process how to build the search result in own site
__________________
Your Daily New Source
htt://www.mysnglife.com
Reply With Quote
  #9 (permalink)  
Old 08-20-2007, 01:27 PM
AshDigg's Avatar
Coder
 
Join Date: Dec 2005
Posts: 1,623
Thanks: 237
Thanked 346 Times in 207 Posts
This will be included in the next release. A list of changed files is here. If you use the list, run install/upgrade.php after making the changes and then in the admin_config section, change 'Search method' to 4.
__________________
- Ash
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

BB 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
Upgrade from 5.10 to 9 bizdiggers Installation and Upgrade Help 19 02-11-2007 03:21 AM
Installation - Tables never created julientarta Installation and Upgrade Help 28 02-02-2007 10:04 PM
Page titles & breadcrumbs AshDigg Core Development 11 06-30-2006 06:35 PM


Search Engine Friendly URLs by vBSEO 3.2.0