vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Links and Downloads Manager (https://vborg.vbsupport.ru/showthread.php?t=91107)

Jaynesh 01-01-2006 09:42 AM

Ive just installed the hack on my forum, Fantastic and very powerful hack.
When a user uploads a Music or video file how will i make it so that it does not download but opens a player on the browser to listen to it online...

AndrewD 01-01-2006 01:31 PM

Quote:

Originally Posted by Jaynesh
When a user uploads a Music or video file how will i make it so that it does not download but opens a player on the browser to listen to it online...

I added a clean way to do this in 2.1.1, which is still in beta but has had no reports of problems.

a) Enable the Jukebox (point file_icons_dir at the set of filetype icons, set the musicbox_* settings appropriately and provide mimetype information in the vb attachment table for these filetypes)
b) Set can_play_musicbox permissions in LDM for the usergroups in question and unset can_save_jukebox for these groups.

ZED28 01-01-2006 02:24 PM

Hey Andy, I've added a bunch of uploads on my site and am using the vBAdvanced front end so thought I would try your modules out for "hot" and "new" items. The hot module displays fine in either the left or right column but the new module throws everything out of place - all the other modules wrap etc.

Also, the hotlink at the top of either module - for example the one that says "Hot Links" fails saying "Category does not exist". The link it points to is this...

http://www.lfsresource.com/local_links.php?catid=-7

I get the same problem with these links in the summary page of the downlads area. But the drop-down links under the "Show" menu work just fine. The link for the Hot items under the drop down menu is different...

http://www.lfsresource.com/local_lin...h.php?catid=-7

Other than that, it's working really well! :D

Jaynesh 01-01-2006 03:17 PM

Quote:

Originally Posted by AndrewD
I added a clean way to do this in 2.1.1, which is still in beta but has had no reports of problems.

a) Enable the Jukebox (point file_icons_dir at the set of filetype icons, set the musicbox_* settings appropriately and provide mimetype information in the vb attachment table for these filetypes)
b) Set can_play_musicbox permissions in LDM for the usergroups in question and unset can_save_jukebox for these groups.

Fantasic, cheers mate worked great.

Whats the name of the template for that page where the player is?

AndrewD 01-01-2006 03:26 PM

Quote:

Originally Posted by Jaynesh
Whats the name of the template for that page where the player is?

links_play

Jaynesh 01-01-2006 03:26 PM

Little problem, the files arent being played, they open up and everything but they just dont play.

AndrewD 01-01-2006 03:29 PM

[QUOTE=ZED28]Hey Andy, I've added a bunch of uploads on my site and am using the vBAdvanced front end so thought I would try your modules out for "hot" and "new" items. The hot module displays fine in either the left or right column but the new module throws everything out of place - all the other modules wrap etc.

OK, I'll take a look

Quote:

Originally Posted by ZED28
Also, the hotlink at the top of either module - for example the one that says "Hot Links" fails saying "Category does not exist". The link it points to is this...

http://www.lfsresource.com/local_links.php?catid=-7

I get the same problem with these links in the summary page of the downlads area. But the drop-down links under the "Show" menu work just fine. The link for the Hot items under the drop down menu is different...

http://www.lfsresource.com/local_lin...h.php?catid=-7

Other than that, it's working really well! :D

Yes, I split the code with a recent release - as I don't use vbAdvanced, I tend to miss these things - when the catid is negative, the urls should point to local_links_search.php

AndrewD 01-01-2006 03:30 PM

Quote:

Originally Posted by Jaynesh
Little problem, the files arent being played, they open up and everything but they just dont play.

Have you got the mimetype info set correctly in your main VB/attachments/extensions and sizes?

for example, mp3 - Content-type: audio/mpeg

etc, etc

Jaynesh 01-01-2006 03:33 PM

Hmm.. Could you please tell me how to set it correctly.

AndrewD 01-01-2006 03:47 PM

Quote:

Originally Posted by Jaynesh
Hmm.. Could you please tell me how to set it correctly.

mimetypes are used so that the browser and other software knows what to do with what they are being given. Each filetype that you want LDM to handle corrently as a download, and upload or a media file needs to have an entry in the VB attachments table. Take a look at the entries that are set by the VB team themselves - each file type is set up with the following information:

Extension (i.e. mp3, etc)
Max Filesize(in bytes) (can be left at 0 to set no limit)
Maximum Width (in pixels, for image files)
Maximum Height(in pixels, 600 for example)
Mime Type
Display thumbnail for this type? (image files)
Open this attachment in a new browser window?
Enabled

The only bits that LDM cares about are the extension, the max filesize (for uploads) and the mimetype

Here are some standard mimetypes:

bmp Content-type: image/bmp
doc Content-type: application/msword
gif Content-type: image/gif
jpe, jpeg, jpg Content-type: image/jpeg
m3u Content-type: audio/x-mpegurl
mov Content-type: video/quicktime
mpg, mpeg Content-type: video/mpeg
mp3 Content-type: audio/mpeg
pdf Content-type: application/pdf
png Content-type: image/png
ram Content-type: audio/x-pn-realaudio
rm Content-type: audio/x-realaudio
rmvb Content-type: video/x-realaudio
rpm Content-type: audio/x-pn-realaudio-plugin
txt Content-type: plain/text
wmv Content-type: video/x-ms-wmv
zip Content-type: application/zip

You can find others at http://www.webmaster-toolkit.com/mime-types.shtml


All times are GMT. The time now is 09:26 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.02980 seconds
  • Memory Usage 1,751KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (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