|
| |||||||
| Mods and contribution Discussion This forum is only for discussion of modding phpLD. For specific mod releases, please see the appropriate forum. |
![]() |
| | topic widgets |
| | #1 |
| Join Date: Dec 2005 Posts: 31 | I have in hand a working DMOZ import mod, fixed from the script provided in this thread: {link to old forum removed} Please PM me if you are interested in getting a copy of it. If it's helpful to you, it did cost me a bit of money to have fixed via scriptlance, and a donation would be appreciated (don't go overboard, just if you have something you can spare) My paypal is: admin at ibold.net Once I get a mods help I can post the attachment in this post. Enjoy ![]() EDIT: I uploaded it to my own server: {unfortunately this link was broken and is now removed} __________________ Directory of Directories << Submit your directory so that other people can find you and add their site! Last edited by David; 03-23-2008 at 09:15 PM. |
| |
| | #2 |
| Supporter Join Date: Dec 2005 Posts: 20 | hi ibold do you mean you want some $ to give it to me or its free ? because iam looking for this mod :( __________________ Please double check your sig link |
| |
| | #3 |
| Supporter Join Date: Jan 2006 Location: London Posts: 72 | I am more than happy to throw down some green for a working mod. I've sent a PM, if you can send me a copy of the working mod I would really appreciate it. I setup an auction on Scriptlance to fix this as well so I would hate to double up resources on the same fix! ![]() Geoffrey |
| |
| | #4 |
| Join Date: Dec 2005 Posts: 31 | All PMs sent. I gave David a copy of the script if he would like to include a link here for it. In the meantime, I uploaded it to my site: {unfortunately this link was broken and is now removed} Enjoy, and let me know if you run into any problems or have questions. __________________ Directory of Directories << Submit your directory so that other people can find you and add their site! Last edited by David; 03-23-2008 at 08:52 PM. |
| |
| | #5 |
| Supporter Join Date: Jan 2006 Location: London Posts: 72 | **censored****censored****censored****censored**. Really got my hopes up. Same result as before: Code: Content visible to registered users only. Any ideas?? Geoffrey |
| |
| | #6 |
| Supporter Join Date: Jan 2006 Location: London Posts: 72 | Hold the phone. It can't handle root! I mean the root of Dmoz (/). I just tried a subdirectory and it seems to be working. |
| |
| | #7 |
| Administrator phpLD Administrator Supporter Join Date: Jan 2005 Posts: 12,325 | I'll be trying to add this version to 3.0. Understandably, importing from DMOZ, especially from root is an enormous task. We have to start somewhere, and then we'll make improvements as we go. Sound good? __________________ Helpful Links: templates supporters forum █ New phpLD User? Start here █ Quality Guidelines for Directories █ Recommended Host |
| |
| | #8 |
| Join Date: Dec 2005 Posts: 31 | Thanks to David for making a donation to help support this __________________ Directory of Directories << Submit your directory so that other people can find you and add their site! |
| |
| | #9 |
| Supporter Join Date: Dec 2005 Posts: 484 | Code: Content visible to registered users only. - Neticus |
| |
| | #10 |
| Join Date: Jan 2006 Posts: 8 | Take a look at this http://rdf.dmoz.org/rdf/content.rdf.u8.gz Just need to extract it, its better to crawl all the pages, I don't have time to write the script for it, but you can just google "Parsing RDF". Cheers |
| |
| | #11 |
| Administrator phpLD Administrator Supporter Join Date: Jan 2005 Posts: 12,325 | I could probably get someone to write a windows based script that creates all the sql code for insert into tables. And then you would need to import the BIG file using something like big dump. __________________ Helpful Links: templates supporters forum █ New phpLD User? Start here █ Quality Guidelines for Directories █ Recommended Host |
| |
| | #12 |
| Supporter Join Date: Jan 2006 Location: London Posts: 72 | Well, I'm back a square one! I tried to import just the /Games category. 200k links, 4k categories, and 24 hours later it was done. Sadly, the hamsters in my pokey server couldn't run fast enough once the links were all added. Granted, its a LOT of links, but whenever a search was run mysql and/or apache would use up to 90% of the CPU. Without branching this thread, is there a theoretical or logical limit to the number of cats/links that phplinks can handle? I ask because after the add/edit categories link in the backend kept timing out. If this were a perfect world, zootreeves's script would actually work, and you would be given a chance to cherry pick cats and subcats instead of having to take the entire tree. zootreeves dmoz script works off the assumption that you have the rdf file downloaded locally which should be faster than doing the scrape. my 2 cents |
| |
| | #13 |
| Join Date: Aug 2005 Location: Chattanooga, TN Posts: 75 | I think that you are trying to sell my work and that kind of pisses me off. I'm very busy and don't sleep much because I am working on a lot of different projects. If you made some improvements great let me know and I'll update the script. However, it's bull **censored****censored****censored****censored** that you are doing this and asking for donations. I've worked hard on this thing and for some it works and others it doesn't. If I knew an ass like you would rip off my work then I would have never posted this in here in the first place. |
| |
| | #14 |
| Join Date: Dec 2005 Posts: 31 | Code: Content visible to registered users only. How is this any different from you asking for donations? Is your time or money worth more then mine? You invested something in this and so did I. Just because I started with your work doesn't mean I ripped anything off. I distributed it exactly the same way you did with yours. How often do you take advantage of other peoples works and ask for donations because you have invested time or money in it? Made any donations or even given credit to Andi Gutmans? To Zeev Suraski? How about Rasmus Lerdorf? Maybe if they knew that a person like you would rip off their work they never would have shared it in the first place. __________________ Directory of Directories << Submit your directory so that other people can find you and add their site! |
| |
| | #15 |
| Supporter Join Date: Jan 2006 Location: London Posts: 72 | Code: Content visible to registered users only. As ibold suggests do read the thread. He was by no means looking to profit from this, just make back the money (or close to it) that he spent at Scriptlance. You sir should first watch your language, then offer an apology to ibold. If it wasn't him, it would have been a dozen others. |
| |
| | #16 |
| Join Date: Dec 2005 Posts: 31 | As far as an apology, it's not necessary. I certainly don't want to bias a member who makes valuble contributions to this script against making more. I was just trying to make a point. If you make something available for free, what I did (what we both did..) is relatively common practice. I do appreciate this mod and your contribution to this community. On a more productive front, this fix didn't address the issue within the crawl.php file, but rather the convert.php file. I am currently crawling most of the larger sections of the DMOZ site (by this I mean the main categories on the main page), and assuming nothing breaks over the next day or two on my computer (it happens..), I will be able to just offer SQL dumps to anyone who is interested in them. Right now I have 'Health' and 'Computers', just PM me if either of these interest you and I can get you an SQL dump. __________________ Directory of Directories << Submit your directory so that other people can find you and add their site! |
| |
| | #17 |
| Join Date: Jan 2006 Location: Australia Posts: 7 | hi, I keep getting sql error when running covert.php: SQL ERROR:1136: Column count doesn't match value count at row 1 Any idea? Do I have to start with a totaly empty database? |
| |
| | #18 |
| Join Date: Jan 2006 Location: Australia Posts: 7 | I tried again a number of times emptied tables and re-crawled but got the same result. |
| |
| | #19 |
| Supporter Join Date: Dec 2005 Posts: 484 | Code: Content visible to registered users only. Dmoz mod (the convert.php file) works on the premise that you have not changed the original values in PLD database. Also see this thread; {link to old forum url removed} Last edited by David; 03-23-2008 at 09:15 PM. |
| |
| | #20 |
| Join Date: Jan 2006 Location: Australia Posts: 7 | Hi, thanks for the reply. That would be the problem then. So if i was to do the crawl first then install other mods would that work? Thanks |
| |