|
|
#1 |
|
PHP Mechanic
Join Date: Nov 2007
Posts: 118
Rep Power: 9 ![]() |
Attached should be a ZIP with a single file (oodle_external.php).
Documentation is in the file, as follows: Code:
/* DESCRIPTION * =========== * * Author: Hugh Messenger <[email protected]> * * A rewrite of the 68c external.php, custom built to provide an Oodle * compliant XML feed, as per: * * http://www.oodle.com/info/upload/feed.html * * Takes two optional CGI args: * * limit=X - specifies the maximum number of items in the feed. Default is * NO LIMIT. * * categoryid=X,Y,Z - a comma separated list of categoryid's to pull from. * If you specify a categryid (or list of ids) it will automatically include * all sub-categories, to any depth. Default is '0', or in other words, * ALL CATEGORIES in the system. * * CATEGORY NAMES * ============== * * In order for Oodle to inject your items into the right categories, the * Category Names you use have to match Oodles master list: * * http://www.oodle.com/info/upload/category.html * * As it is not always possible to do this, especially if you already have * an established naming system you don't want to change, this script has a * configurable option where you can substitute Category Names. See OPTIONS * section for details. * * CUSTOM FIELD NAMES * ================== * * To help with better searching on Oodle, this script will include any custom * fields from the ads, both global and category specific. This means you need * to name your custom fields as per Oodle feed specs. For instance, you would * need things like: * * City * State * ZIP * * ... to match some of the "Location" fields common to all Oodle categories. * Then in "Pets" you might have: * * Pet Breed * Sex * Size * * ... which match some of the optional extra fields for Oodle's Pets specs: * * http://www.oodle.com/info/upload/pets_feed_doc.html * * The script will convert spaces to _'s, and convert the field name to lower * case, so a "Pet Breed" of "Cocker Spaniel" will show in the feed as: * * <pet_breed>Cocker Spaniel</pet_breed> * * If you really need to use different field names that mean the same as the * Oodle specified ones, there is a configurable way of substituting names, * see OPTIONS section for details. * * CONFIGURABLE OPTIONS * * There are a few configurable settings, as follows: * * Your content encoding format, defaults to utf-8. * * Category names you may wish to substitute when feeding to Oodle (like * changing "Shelter Dogs" to "Dogs") so they match Oodles spec. * * Custom fieldnames you want to substitute. Useful when you do not want * to use their exact field naming conventions (for instance you may want * to use "Pet Gender" instead of "Sex"). * * Custom fields you do NOT want to include in the feed. * * See the individual comments on each option for more details. * */ Share And Enjoy, -- hugh Last edited by cheesegrits; 01-11-2008 at 01:02 PM. |
|
|
|
|
|
#2 |
|
PHP Mechanic
Join Date: Nov 2007
Posts: 118
Rep Power: 9 ![]() |
Just FYI, Oodle have now confirmed that the feeds I'm sending them are good, and conform to their standards.
-- hugh |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Apr 2007
Posts: 7
Rep Power: 0 ![]() |
Have you by any chance looked at a similar mod for version 4? The external.php has changed a little.
Thanks Mike |
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Jun 2007
Posts: 110
Rep Power: 10 ![]() |
Does this work for v4? I would like to add my site to oodle!
__________________
Crystal v4.0.8 Dev |
|
|
|
|
|
#5 |
|
PHP Mechanic
Join Date: Nov 2007
Posts: 118
Rep Power: 9 ![]() |
Sorry about the delayed response, I haven't visited the site for a while, and had forgotten to set email notifications on my threads.
I haven't been able to upgrade to v4, because we need v3 Memberships for our banner space sales. I have a test install of v4 somewhere though, I'll install it and fix it up for v4. I see you got a response from Suskaw on another thread, so hopefully that got you going. -- hugh |
|
|
|
|
|
#6 | |
|
Senior Member
Join Date: Jun 2007
Posts: 110
Rep Power: 10 ![]() |
Quote:
I followed Suzkaw's advice and the Oodle xml works perfectly for v4. Thank you! Oodle external feeds
__________________
Crystal v4.0.8 Dev |
|
|
|
|
|
|
#7 |
|
PHP Mechanic
Join Date: Nov 2007
Posts: 118
Rep Power: 9 ![]() |
Excellent. I'll modify the original ZIP and re-post it with that fix in the 4.0 mods forum.
Best bet would probably to wrap a conditional around it which checks the 68c version, and uses the appropriate table name. Then the same ZIP would work on either version. -- hugh |
|
|
|
|
|
#8 | ||
|
Senior Member
|
Great mod !!
Almost got it working but a couple of issues I seem to keep getting the following issue: Quote:
Additionally the country and city tags don't seem to be being brought in, do I need to includ ethem in the Quote:
Many thanks, Mully
__________________
v4.08 |
||
|
|
|
|
|
#9 | ||||
|
Senior Member
|
For the first issue i.e.
Quote:
Quote:
Also the transform function for custom fields doesn't seem to be working i.e. in the Category - 'Cars & Vehicles' I transform my custom field 'fuel' to 'engine_type' (as per oodle standard) i.e. Quote:
Quote:
Cheers, Mully
__________________
v4.08 |
||||
|
|
|
|
|
#10 | |||
|
Senior Member
|
Ok found the answers
To include country \ city info you have to echo it out i.e. Quote:
Quote:
Quote:
Hope this helps ! Mully
__________________
v4.08 |
|||
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| RSS feed for google base and oodle? | Chad | v3.1 Suggestions and Feedback | 26 | 01-11-2008 01:04 PM |
| RSS Feed not working | abkeller | v3.1 Modules & Modifications | 10 | 08-04-2007 03:13 PM |
| Oodle and Edgeio? | flyingpylon | Site Marketing | 3 | 03-10-2007 11:18 AM |
| Special Character in Listings stops feed! | garysr | v3.1 Questions & Support | 6 | 01-09-2007 10:29 PM |
| Oodle Feed XML | CB | v3.1 Questions & Support | 8 | 09-25-2006 05:50 AM |