PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > How-to Forum

Reply
 
Thread Tools
Old 06-20-2004, 01:49 AM   #1
Gus58
Green Mole
 
Join Date: Jun 2004
Posts: 6
Embedding phpdig into a forum

How do I embed or insert phpdig into my forums like its done here? And how do I make the spider search only my forums and nothing else. I am running phbbb 2.0.8
Thx Gus
Gus58 is offline   Reply With Quote
Old 06-20-2004, 11:28 AM   #2
bloodjelly
Purple Mole
 
Join Date: Dec 2003
Posts: 106
Hi Gus - phpBB already has a good search engine, and I'm pretty sure the forum search engine here is run by vBulletin, not phpDig. But if you wanted to use Dig instead, you can setup up your "robots.txt" file to ignore all directories but the phpBB2 directory. Placing the actual search form into the forums would take a little php/html knowhow, but an alternative would be to simply link to phpDig's "search.php" page from PhpBB.
bloodjelly is offline   Reply With Quote
Old 06-21-2004, 12:02 AM   #3
Gus58
Green Mole
 
Join Date: Jun 2004
Posts: 6
I mean the demo search at the bottom of the forum menu, not the v bulletin one. Thanx for the help. I'll have a look at the robots.txt. I find phpbb's search abyssmal, thats why I looked here.
Gus

Last edited by Gus58; 06-21-2004 at 12:14 AM.
Gus58 is offline   Reply With Quote
Old 06-21-2004, 12:24 AM   #4
Gus58
Green Mole
 
Join Date: Jun 2004
Posts: 6
I haven't got a robots.txt file in any directory
Gus58 is offline   Reply With Quote
Old 06-21-2004, 01:11 AM   #5
bloodjelly
Purple Mole
 
Join Date: Dec 2003
Posts: 106
The robots.txt file tells phpDig (and other search engines) which directories you don't want scanned. So if you disallow all your directories but the one you want scanned in the robots.txt file, you'll effectively limited your scan to that directory.

The file should go in your root directory, or else it won't work. Here is more info on it: http://www.robotstxt.org/wc/exclusion.html#robotstxt

As for embedding, check out the HTML source code that starts with this:
Code:
<form action='demo/search.php' method='get'>
<input type='hidden' name='template_demo' value=''/>
<input type='hidden' name='site' value=''/>
<input type='hidden' name='path' value=''/>
<input type='hidden' name='result_page' value='search.php'/>

......</form>
Also read the documentation (link at top of page). This has the answer to both your questions. Someone else might know a better way of limiting phpDig besides the robots.txt file (which will also ban google and other good spiders). Good luck.
bloodjelly is offline   Reply With Quote
Old 06-22-2004, 11:40 PM   #6
Gus58
Green Mole
 
Join Date: Jun 2004
Posts: 6
Ok I have robots.txt installed and I need to know where to point it to so that it picks up the text in the posts in my forums. I'm running phpbb and need to know which file/s to allow the robot to search. Thx
Gus58 is offline   Reply With Quote
Old 06-22-2004, 11:46 PM   #7
bloodjelly
Purple Mole
 
Join Date: Dec 2003
Posts: 106
Robots.txt is exclusionary (at least right now) - that is, you tell it which folders NOT to scan. Search google to learn how to use it or check the link I posted.
bloodjelly is offline   Reply With Quote
Old 06-23-2004, 12:01 AM   #8
Gus58
Green Mole
 
Join Date: Jun 2004
Posts: 6
Yeah I know its exclusionary, I have everything blocked at the moment. ie I have all files and directories listed in it...... It took me an hour to set robots.txt up. Sorry I may not have explained myself correctly. I need to know what files do I allow the robots access to. What files do I delete from my robots.txt to make my forums searchable in phpbb. I have tried google.......
Gus58 is offline   Reply With Quote
Old 06-23-2004, 12:56 AM   #9
bloodjelly
Purple Mole
 
Join Date: Dec 2003
Posts: 106
If I understand you correctly, to make phpBB searchable (and only phpBB) by phpDig, you would do what you exactly what you have done with the robots.txt but leave out the directory that phpBB is located in. If you haven't told the spider to avoid that directory, it will scan it, as long as the spider can find it. So you must at least let the spider scan your main page or a page with links to phpBB on it.
bloodjelly is offline   Reply With Quote
Old 06-25-2004, 12:41 AM   #10
Gus58
Green Mole
 
Join Date: Jun 2004
Posts: 6
Ok, thanx, have been mucking around with some different settings and I'm starting to get results.....
Gus58 is offline   Reply With Quote
Reply


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 Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble with old forum account JonnyNoog The Mole Hole 1 04-17-2007 12:06 PM
Forum width to 100% please Rolandks Feedback & News 3 02-11-2005 10:10 AM
Pruning Forum Members Charter Feedback & News 10 01-22-2005 07:20 AM
Nice Job On The Forum Changes! vinyl-junkie The Mole Hole 1 02-29-2004 08:23 AM


All times are GMT -8. The time now is 04:26 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.