Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Download Based On Database Details »»
Download Based On Database
Version: 1.00, by Moya Moya is offline
Developer Last Online: Aug 2009 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 10-13-2004 Last Update: Never Installs: 5
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 10-14-2004, 09:07 AM
moley's Avatar
moley moley is offline
 
Join Date: Sep 2002
Location: England
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 thanks a lot.
Reply With Quote
  #3  
Old 10-14-2004, 10:08 AM
manguish manguish is offline
 
Join Date: Apr 2003
Location: UK
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this : https://vborg.vbsupport.ru/showthread.php?t=60403 not do the same job?
Reply With Quote
  #4  
Old 10-14-2004, 12:54 PM
Floris Floris is offline
 
Join Date: Jan 2002
Posts: 1,898
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?)
Reply With Quote
  #5  
Old 10-14-2004, 05:04 PM
Johnny's Avatar
Johnny Johnny is offline
 
Join Date: Jun 2002
Posts: 290
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i dont understand this either :/
Reply With Quote
  #6  
Old 10-14-2004, 07:49 PM
Moya's Avatar
Moya Moya is offline
 
Join Date: May 2004
Posts: 356
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 10-14-2004, 08:13 PM
Moya's Avatar
Moya Moya is offline
 
Join Date: May 2004
Posts: 356
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #8  
Old 10-14-2004, 11:58 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 10-15-2004, 12:12 AM
AnhTuanCool's Avatar
AnhTuanCool AnhTuanCool is offline
 
Join Date: Jul 2004
Location: Albuquerque
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 10-15-2004, 01:15 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:25 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.11038 seconds
  • Memory Usage 2,296KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete