|
| |||||||
| Mods and contribution Discussion This forum is only for discussion of modding phpLD. For specific mod releases, please see the appropriate forum. |
| View Poll Results: Do you like the new version? | |||
| Yes | | 30 | 71.43% |
| No | | 12 | 28.57% |
| Voters: 42. You may not vote on this poll | |||
![]() |
| | topic widgets |
| | #1 |
| Join Date: Aug 2005 Location: Chattanooga, TN Posts: 75 | This version should get rid of the column errors. If it doesn't work right please post what other mods you have, if any, or any other kind of information. DO NOT DOWNLOD THE FILE BELOW unless you want a useless outdated copy that does not work.. Please download the one above because it has fixed the column errors. Can an admin please remove the file below? Last edited by David; 05-29-2010 at 05:19 AM. |
| |
| | #2 |
| Join Date: Jun 2005 Location: The world Posts: 813 | Nah, don't post flames. No point, and Josh is doing everyone a favor so only Thank You's are accepted. Thanks Josh, and I locked the other thread so people will start coming here instead. -Casey __________________ Casey Wilson / Ap0s7le Freelance Programmer Need help with PHPLD? PM me |
| |
| | #3 |
| Join Date: Aug 2005 Location: Chattanooga, TN Posts: 75 | Thanks, this next one should be easier for everyone to use. I'm setting it up to where you want need to use phpMyAdmin....much... :roll: |
| |
| | #4 |
| Join Date: Jun 2005 Location: The world Posts: 813 | Josh, if you need help yell. Or just get a IM!! haha The front end could be web based. Enter the Structure path you want, DB User/Pass and DB name. It would go ahead, start the whole process. Log it's progress on screen as Cats / Subs / Links but log details in a TXT file. Give the option to Append a PHPLD install, or a Fresh install. So it would know if the cats it's about to add are the only ones in there. If you opt for the append, it could then check the DB for existing fields for duplicate data. Or something like that... I'm rambling... Going to lay down and watch a lil tv... later -Casey __________________ Casey Wilson / Ap0s7le Freelance Programmer Need help with PHPLD? PM me |
| |
| | #5 |
| Join Date: Aug 2005 Location: Chattanooga, TN Posts: 75 | Well, it has always checked to see if the categories and links are in the phpLD database so it knows which to add. If it's already there it doesn't add them Right now I've got it set up to where you create the tables and edit the two files, class.dmoz.php ad class.sql.php. class.dmoz.php you just change to the directory that you want. You don't have to add the first link in the DB. The script does it for you now. What kind of details would be placed in the txt file? It seems like a good idea but not sure what kind of info could be placed in there. In the future I want it to mooch off the phpLD install. That way it gets the info it needs. You should know I don't use IM, I'm just a crazy linux guy who doesn't back up his data :P If anyone has any suggestions or comments let me know. -Joshua |
| |
| | #6 |
| Join Date: Aug 2005 Location: Chattanooga, TN Posts: 75 | Just want to give everyone an update. Right now I've got a bug that I'm working on. Once this bug is fixed it should work and I'll release a new version of it. The bug is when it goes to check on categories and doesn't do it right and it ends up adding the same category a bunch of times. -Joshua UPDATE This bug has been fixed. The problem was that it would check the title and not the URL title. This script will replace certain character that it finds in the URLs and replaces it with the correct letter or whatever you want it to be. I want to test this a little more before the final release of it. If you want a test copy let me know by posting the request for a TEST copy or PM me. It should work but I am testing it to make sure there aren't any more little bugs lurking around to piss me off later :evil: -Joshua |
| |
| | #7 |
| Join Date: Sep 2005 Location: NC Posts: 796 | I would like a test copy __________________ JoDee $10-5 & $5-3 deep links JoDeesWebDirectory.com HealthDirectory To succeed in Life its not always what you know but who you know |
| |
| | #8 |
| Join Date: Sep 2005 Location: NC Posts: 796 | So far it has crawled and I have about 40000 links so far I haven't converted them yet but this copy seems to be going without a hitch so far will keep you posted __________________ JoDee $10-5 & $5-3 deep links JoDeesWebDirectory.com HealthDirectory To succeed in Life its not always what you know but who you know |
| |
| | #9 |
| Join Date: Aug 2005 Location: Chattanooga, TN Posts: 75 | :shock: that's a lot of links! I haven't tested it with that many yet, but keep me posted. Once it's finished crawling converting might take some time. I haven't tested it a lot with large links like you're doing, but if the convert.php page times out you should be able to reload without any data loss or any duplicates going in. Keep me posted either by here or PM me. -Joshua |
| |
| | #10 |
| Join Date: Sep 2005 Location: NC Posts: 796 | Ok it converted most of them the following is what it did Table Records PLD_CATEGORY 6,817 PLD_LINK 62,176 category 6,910 dmoz 6,911 links 66,120 One more question can I delete category, dmoz, links now or what __________________ JoDee $10-5 & $5-3 deep links JoDeesWebDirectory.com HealthDirectory To succeed in Life its not always what you know but who you know Last edited by David; 05-24-2010 at 07:13 AM. |
| |
| | #11 |
| Join Date: Aug 2005 Location: Chattanooga, TN Posts: 75 | Yea, after you done with everything I would go ahead and delete all the files you uploaded and also the three tables(saves some space). I am kinda wondering why the row counts are different for the links. I'm assuming that it doesn't import them all :cry: I'll have to look into that. About how long did all that take? -Joshua |
| |
| | #12 |
| Join Date: Sep 2005 Location: NC Posts: 796 | On my pc it took all night to import :( to convert about 30 minutes I just had to refresh a few times I think the difference was because it couldn't connect b/c when I checked it said page not found __________________ JoDee $10-5 & $5-3 deep links JoDeesWebDirectory.com HealthDirectory To succeed in Life its not always what you know but who you know |
| |
| | #13 |
| Join Date: Aug 2005 Location: Chattanooga, TN Posts: 75 | heh, that's awhile! Let me knowif there's anything I could improve on it. In the future I would just like for people to just upload and run it, but for now it doesn't. -Joshua |
| |
| | #14 |
| Join Date: Sep 2005 Location: NC Posts: 796 | I am not that savvy on code but considering I was dmozing on Health I think it did a great job and considering I had over 60000 links to crawl and import what can one expect __________________ JoDee $10-5 & $5-3 deep links JoDeesWebDirectory.com HealthDirectory To succeed in Life its not always what you know but who you know |
| |
| | #15 |
| Join Date: Aug 2005 Location: Chattanooga, TN Posts: 75 | perfection? I guess it works, if anyone else wants this thing then PM me and I send it to you. -Joshua |
| |
| | #16 |
| Join Date: Oct 2005 Posts: 5 | Minor fix in crawl.php echo " Crawl complete! Now run <a href=\"covert.php ---> convert.php |
| |
| | #17 |
| Join Date: Aug 2005 Location: Chattanooga, TN Posts: 75 | Yea, I noticed that, it should be convert.php with an N. Long night of working on it. Sorry about that guys and gals. -Joshua |
| |
| | #18 |
| Join Date: Oct 2005 Posts: 6 | hi, first, thank you for sharing your mod to the community. i tested the mod and it worked great, i then edited the URL of the directory to crawl on the crawl.php and uploaded it on the site and refreshed crawl.php but nothing gets crawled. what i want to do is append the old database with the new data, is this possible? if yes, how? thank you |
| |
| | #19 |
| Join Date: Aug 2005 Location: Chattanooga, TN Posts: 75 | If you are wanted to append your current phpLD then just upload everything and it should just append your directory. Be sure to back it up first just in case something goes wrong. If you've read the ReadMe.txt file and edited the two files(class.dmoz.php and class.sql.php) and uploaded them then you should be fine. You of course also have to install the tables that it uses by using phpMyAdmin or some other means. Once you have finished 'crawling' it will tell you and then you need to run convert.php. This converts all the data and puts it into the phpLD tables. It will check to see if the category is already there and if it is it will not add the category. Please let me know if this helps or please submit some more detailed information about your problem. -Joshua |
| |
| | #20 |
| Join Date: Jul 2005 Posts: 243 | I have made this another way with a PHP script I found on hotscript. Actaully quite simple. Last edited by David; 05-24-2010 at 07:13 AM. |
| |