View Single Post
Old 04-12-2005, 02:50 PM   #1
GunMuse
Green Mole
 
Join Date: Feb 2005
Posts: 24
XML FEED MOD FOR YOUR DIGGER

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.

http://www.firebasesoftware.com/fire...XML_OUTPUT.zip

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.

Quote:
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
http://www.firebasesoftware.com
SAMPLE URL AT THE BOTTOM.

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

http://www.stg.brown.edu/service/xmlvalid/

Installation and Use. This was done on phpdig.net'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','simple.ht 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/////////

http://WWW.YOURDOMAIN.COM/search.php...0&option=start
Attached Files
File Type: zip XML_OUTPUT.zip (12.5 KB, 24 views)
GunMuse is offline   Reply With Quote