vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Download Based On Database (https://vborg.vbsupport.ru/showthread.php?t=70565)

Moya 10-13-2004 10:00 PM

Download Based On Database
 
First of all, this is my first hack in php. Please go easy on me :)

Second, I don't know how to categorize this hack. If this doesn't belong here please move it. Thanks

I have searched thru the v3 for a hack that enable me to let my member download multimedia files without success.

I end up with my own hack.

Here are the desciptions

Multimedia files information such as ilenames, extension, url, etc. are stored in database.

Each file is assigned a unique id

They are output to a link like
http://www.mysite.com/forum/atmmdown...songnumber=xxx

Each time member - who are allow to download files- click on the linked

The request is sent to the included file.

Once the authorization is authenticated. The requested file will then be downloaded

I have tested this one on my own board with IIS6 and win2003

Thanks

moley 10-14-2004 09:07 AM

will install later sounds great i've wanted this hack for a while i was just using a protect folder for download up until now :p thanks a lot.

manguish 10-14-2004 10:08 AM

Does this : https://vborg.vbsupport.ru/showthread.php?t=60403 not do the same job?

Floris 10-14-2004 12:54 PM

Quote:

Originally Posted by stitch
First of all, this is my first hack in php. Please go easy on me :)

Second, I don't know how to categorize this hack. If this doesn't belong here please move it. Thanks

I have searched thru the v3 for a hack that enable me to let my member download multimedia files without success.

I end up with my own hack.

Here are the desciptions

Multimedia files information such as ilenames, extension, url, etc. are stored in database.

Each file is assigned a unique id

They are output to a link like
http://www.mysite.com/forum/atmmdown...songnumber=xxx

Each time member - who are allow to download files- click on the linked

The request is sent to the included file.

Once the authorization is authenticated. The requested file will then be downloaded

I have tested this one on my own board with IIS6 and win2003

Thanks

I totally do not understand what this does?

Allow users to download files? (> attachments?)

Johnny 10-14-2004 05:04 PM

i dont understand this either :/

Moya 10-14-2004 07:49 PM

Uhm Basically, my board has entertainment section that has music shared by my members. Everytime they upload a new song, the new song information is stored on the database.

Then other member can listen to the song and download if they want. Here is the screenshot of a song in playing mode and has download enable to member

Moya 10-14-2004 08:13 PM

Quote:

Originally Posted by manguish
Does this : https://vborg.vbsupport.ru/showthread.php?t=60403 not do the same job?


I don't know what it does. I didn't use that on my board

Erwin 10-14-2004 11:58 PM

Storing files in the database is generally not a good idea because:
1. It adds load to the database server.
2. It makes for large database tables.

AnhTuanCool 10-15-2004 12:12 AM

Quote:

Originally Posted by Erwin
Storing files in the database is generally not a good idea because:
1. It adds load to the database server.
2. It makes for large database tables.

No files to store in the database, take a look at his code, but I still don't get it though.

Erwin 10-15-2004 01:15 AM

Quote:

Originally Posted by AnhTuanCOol
No files to store in the database, take a look at his code, but I still don't get it though.

You're right. :) I misread his post - it's only the file info stored, not the file.


All times are GMT. The time now is 11:18 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01074 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete