Page 1 of 1
[Question] How use the crawldir function?
Posted: 19 Aug 2009, 02:47
by Dakin Quelia
Hi,
I created a download page and for it I began in using this [url=http://fail.infinityhouse.org/pastebin.php?mode=view&s=5]function[/url]. But I don't understand his functionning.
A little help is welcome. Thanks per advance.
See you soon,
Re: [Question] How use the crawldir function?
Posted: 19 Aug 2009, 11:18
by Obsidian
To start, I'd recommend you read this topic a little bit. You'll see some things in there pertaining to crawldir.
http://phpbbmodders.net/board/viewtopic.php?f=55&t=2977&start=15
Also, that copy of crawldir in my pastebin is a bit old, there's another copy here that is updated and fixes an issue or two.
http://code.assembla.com/phpbb-xerxes/subversion/nodes/trunk/root/includes/crs/extension/extension_crawldir.php#ln43
Also, if you want to see an example of how crawldir is used within a working MOD, I'd recommend you tear [url=http://phpbbmodders.net/board/viewtopic.php?f=37&t=3128]this MOD[/url] apart.
Re: [Question] How use the crawldir function?
Posted: 19 Aug 2009, 11:21
by Dakin Quelia
I go to read this topic.
For the mod, I saw but my main goal is make a simple downloa page.
Thank you.
Re: [Question] How use the crawldir function?
Posted: 19 Aug 2009, 11:35
by Obsidian
What is it that you don't understand, specifically?
Re: [Question] How use the crawldir function?
Posted: 19 Aug 2009, 11:41
by Dakin Quelia
Re: [Question] How use the crawldir function?
Posted: 19 Aug 2009, 12:36
by Obsidian
Re: [Question] How use the crawldir function?
Posted: 19 Aug 2009, 16:49
by Dakin Quelia
Re: [Question] How use the crawldir function?
Posted: 19 Aug 2009, 17:31
by Obsidian
PHP page. This will output what crawldir returns..
Also, that is the old crawldir you are using, I can tell by the results. There was a bug that was fixed with the 1.4.0 release of crawldir, for relative results.
I recommend updating the copy of crawldir that you have to the one that I linked earlier, to avoid the bug from cropping up in your site.
Re: [Question] How use the crawldir function?
Posted: 19 Aug 2009, 17:44
by Dakin Quelia
Re: [Question] How use the crawldir function?
Posted: 19 Aug 2009, 18:01
by Obsidian
Re: [Question] How use the crawldir function?
Posted: 19 Aug 2009, 18:08
by Dakin Quelia
I tested but it doesn't work. It displays the same message.
Re: [Question] How use the crawldir function?
Posted: 19 Aug 2009, 22:24
by Obsidian
Re: [Question] How use the crawldir function?
Posted: 19 Aug 2009, 22:48
by Dakin Quelia
I'm sorry to disturb you but it doesn't always work.
Re: [Question] How use the crawldir function?
Posted: 19 Aug 2009, 23:07
by Obsidian
No problem. Uhm, there's a copy of a working crawldir over here,
http://code.assembla.com/phpbb-xerxes/s ... .php#ln1641.4.2 was problematic as I was attempting it to be PHP5 compatible only, iirc. This one, 1.4.1, has been field tested and should work.