phpBB3 Site Search

x.15a2 Community Leader x.15a2
Created: 5 years and 9 months ago
I admin a phpBB3 forum. By default, searches for the forums (searching for forum content) is performed by built in searches. I have noticed that quite a few phpBB3 forums use Google () for their searches. What I'd like to do is adapt what is described in this post: http://www.phpbb.com/community/viewtopic.php?f=46&t=1344605#p12679825 to have DDG as my forum's search engine. Does anyone have experience with doing this?

Death is conquered though you slumber...seven is the perfect number

This forum has been archived

Thank you all for the many comments, questions and suggestions. Particular thanks go to user x.15a2 for constantly monitoring, replying and helping so many users here. To continue these discussions, please head over to the DuckDuckGo subreddit.


anonymous
Replace action="http://www.google.com/search" with action="http://www.duckduckgo.com"
Not sure if the site search stuff would work, but name="site" might work for the site search part of the code.
<div class="panel bg3">
  <div class="inner">
    <span class="corners-top"><span></span></span>
   <h3>Duckduckgo Search query</h3>
   <fieldset>
      <dl>
        <dt><label for="q">ddg Site Search:</label><br><span>To search a phrase, surround in double quotes ""<br/> To exclude terms, lead with -<br/>  For exact terms, lead with +<br/>For wildcards use * </span></dt>
        <dd>
          <form method="get" action="http://www.duckduckgo.com">
            <input type="text" name="q" size="40" maxlength="255" value="" class="inputbox"/><br/>
            <input type="radio" name="site" value="forum.mysite.com" checked="checked" /> Forums Only <br/>
            <input type="radio" name="site" value="www.mysite.com" /> Entire Site<br/>
            <input type="submit" value="Duckduckgo Search" />
          </form>
        </dd>
     </dl>
    </fieldset>
  </div>
  <span class="corners-bottom"><span></span></span>
</div>

No idea if that code will work in practice, but it should
posted by [Old Forum atomic1fire] • 5 years and 8 months ago Link
anonymous
Hacking through this might help, too.

https://duckduckgo.com/search_box.html
posted by [Old Forum rocky1138] • 5 years and 8 months ago Link
anonymous
That's what I used to figure out the necessary changes, but OP (original poster) is probably long gone.
posted by [Old Forum atomic1fire] • 5 years and 8 months ago Link
x.15a2
Nope, just short gone, but back now. Thanks all, for the input. I'll pour through this and give it a try. I really appreciate the time and effort that you have expended on this!

Death is conquered though you slumber...seven is the perfect number
posted by x.15a2 Community Leader5 years and 8 months ago Link
x.15a2
Well, unfortunately, none of these work, but I suspect it is due to the web content being stored in MySQL database. For now, I think I'll need to use phpBB3's built-in search.

Thanks

...later
Or, it could be that the DDG crawler has never visited my site. Sigh.


posted by x.15a2 Community Leader5 years and 3 months ago Link