Go Back > PhpDig Forums > Mod Submissions

Thread Tools
Old 04-12-2005, 03:50 PM   #1
Green Mole
Join Date: Feb 2005
Posts: 24

I read everywhere including where I asked for an xml feed for this search. I finally broke down and took the time to build one.

I have almost zero coding skills I am a read, copy and paste guy. I just couldn't devote any of my programmers time to this project yet we needed XML output of our results.

Since These forums "time out" please if you find a character that I am not stripping out to keep the xml functioning let me know on my site. XML is delicate and truthfully there should just be a php function that says cleans everything but standard text and numbers from a variable.

PHPDIG often closes out forum posts and demands that new ones be created. So please if you have
Changes to these files or additions to what can be done to get cleaner XML Let me know at

Some places you may want to reference if your xml is not clean enough to parse.

Installation and Use. This was done on's 1.8.7 release 1.8.8rc1 was buggy.

To install is simple just upload the files we left them in directory structure fashion.

You need to modify your config file.

@ line 88

Delete your template information and copy this.

// template file and style - checks to see that template is set to a valid value
if (isset($_REQUEST['template_demo'])) { $template_demo = $_REQUEST['template_demo']; }
$templates_array = array('black.html','bluegrey.html','corporate.html','green.html','grey.html ','lightgreen.html','linear.html','newspaper.html','phpdig.html',' ml','terminal.html','yellow.html','gaagle.html');
if(isset($template_demo) && in_array($template_demo, $templates_array)) {
$template = "array";
} else {
$template = "$relative_script_path/templates/corporate.html";

You may want to change your fall back template where we have ours set to corporate.

I recommend these settings although not important
define('DISPLAY_SNIPPETS',false); //Display text snippets
define('DISPLAY_SNIPPETS_NUM',4); //Max snippets to display
define('DISPLAY_SUMMARY',true); //Display description

Turn OFF RSS this is a useless tool and only beats your harddrive up and sucks down bandwidth.

define('ALLOW_RSS_FEED',false); // Do RSS and display link - if true, set rss dir to 777
$theenc = PHPDIG_ENCODING; // needs to be same encoding used in index

////////////TO CALL YOUR XML FEED/////////

Attached Files
File Type: zip (12.5 KB, 24 views)
GunMuse is offline   Reply With Quote
Old 04-16-2005, 07:59 AM   #2
Green Mole
Join Date: Feb 2005
Posts: 24
Can't believe for all the whining for Xml no one seems excited about the ability to output their search to other sites.
GunMuse is offline   Reply With Quote
Old 04-21-2005, 11:56 PM   #3
Green Mole
Join Date: Feb 2005
Posts: 24
I still have some character that is breaking this once in a blue moon if someone else see's or finds it please let me know
GunMuse is offline   Reply With Quote
Old 05-19-2005, 02:29 AM   #4
Green Mole
Join Date: May 2005
Posts: 4
Am i right to percive that this little mod will allow PHPdig to search XMl documents?
batman1056 is offline   Reply With Quote
Old 05-19-2005, 10:27 AM   #5
Green Mole
Join Date: Feb 2005
Posts: 24
Thumbs up

No digger will already do that just treats them like text files. It will not follow links that would simply be a matter of telling the crawler to acknowled the {link}{/link] the same as it would a href's

This Outputs your digger results in XML.

Doing it this way allows me to control the output and add our search engines Paid clicks to the system.

See this gives me Site search and paid listings combined together in a nice format. I am about to release this Site search standalone page which will allow Digger crawler guys to have Paid listings on their customers sites.

Once Results are in XML format its a simple matter of a Rss parser and an the users CSS Style sheet. The CSS style sheet controls what the data looks like at that point. This is better page optimization for other searches and cross browser compatible coding. Not to mention its just plain faster.
GunMuse is offline   Reply With Quote

Thread Tools

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
Rss Feed djavet Feedback & News 1 01-07-2005 08:04 AM
RSS Feed For These Forums vinyl-junkie Feedback & News 6 08-16-2004 07:06 AM
what is the purpose of th rss feed vip562 How-to Forum 1 07-21-2004 05:46 PM
RSS Feed Code For Template? vinyl-junkie How-to Forum 13 07-16-2004 11:42 PM
Relevancy and xml feed searchboy Mod Requests 3 04-04-2004 08:48 AM

All times are GMT -8. The time now is 08:05 PM.

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