[Request] Download Page

Moderator: Moderators

<<

Dakin Quelia

Very New Member
Very New Member

Posts: 6

Joined: Mon Aug 17, 2009 4:17 pm

Post Mon Aug 17, 2009 10:44 pm

[Request] Download Page

Good Evening,

I'd like to make a download page like you. ;)

Could you to help me?

See you soon,
<<

UseLess

User avatar

Village Idiot
Village Idiot

Posts: 272

Joined: Thu Jan 08, 2009 9:57 pm

Location: North East UK

Post Tue Aug 18, 2009 1:12 am

Re: [Request] Download Page

Greetings,

1. Extract the phpBB template engine from phpBB so it can be used on external pages not tied to phpBB.
2. Create a script to list the contents of a dir
3. Create a template file
4. Get the script in (2) to assign to info to a template file (3) via the template engine (1)
5. Output the template
Movie Quote:
It's not the years honey, it's the mileage...
phpBB 3 Mods @ phpBBStyles
<<

Dakin Quelia

Very New Member
Very New Member

Posts: 6

Joined: Mon Aug 17, 2009 4:17 pm

Post Tue Aug 18, 2009 1:19 am

Re: [Request] Download Page

Okay, I understand but could I the php code to see his functionning? Or else can I take your image from Download Page?

It's practice your script.
<<

UseLess

User avatar

Village Idiot
Village Idiot

Posts: 272

Joined: Thu Jan 08, 2009 9:57 pm

Location: North East UK

Post Tue Aug 18, 2009 4:00 am

Re: [Request] Download Page

Greetings,

All you do is read the dir into an array then loop over the array assigning the items in the array to the template, if the item is a file then grab the appropriate image for the file type and it's size.

To read the dir see this: http://uk2.php.net/manual/en/function.readdir.php
Movie Quote:
It's not the years honey, it's the mileage...
phpBB 3 Mods @ phpBBStyles
<<

Dakin Quelia

Very New Member
Very New Member

Posts: 6

Joined: Mon Aug 17, 2009 4:17 pm

Post Tue Aug 18, 2009 4:06 am

Re: [Request] Download Page

Thanks.

I'll test it and I'll give you some news. ;)

Why don't make a package of page?

Return to Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for blacklist.org.