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)
-   -   Embedded media player in post (https://vborg.vbsupport.ru/showthread.php?t=72162)

ericgtr 11-24-2004 10:00 PM

Embedded media player in post
 
This is my first mod for VB, I personally need it on my site because it's focus is MP3's, it may be able to be customized for other uses I would think. What it does is embeds Windows Media Player into the body of the post (as well as the regular attachment) using bbcode and plays the attached MP3 file. What this does upon completing the upload is allows the user to copy and paste the URL to the attached file if they choose.

Also, since this bbcode is the Windows Media Player it may also be able to play .avi, .wmv, .mpg etc. So to broaden this you can change the [MP3] [/MP3] tag to something else like [MEDIA] [/MEDIA] for example.

There is no option to secure this to specific groups, however you can use Princeton's Allow Group to Read Titles / Not Content modification as an alternative.

Better template formatting, also maybe add a javascript function so that a user can click to add the line of code to the post.

If you find this useful please Click Install

Update: Added an option to allow only certain groups to add the option to view/paste the URL in their post.

HiDeo 11-25-2004 03:34 AM

Nice job, thanks !

I 'll test it.

/me clicks install

BamaStangGuy 11-25-2004 04:08 AM

Very very nice. Once its final I will install!

tnguy3n 11-25-2004 05:12 AM

looks nice, but ain't it template mod rather than code hack?

Hades-1 11-25-2004 10:44 AM

this is AWSOE just what i needed, damn you rock

1 thig, how can i make it so it does not show the video window? its only mp3 no video allowed, but on my site it shows the video window and controls

shoud just be controls, posibally song length and stuff

Thanks

lanc3lot 11-25-2004 11:13 AM

Great hack...Wait to install it when u will have it secure on specific usergroups only

:)

ericgtr 11-25-2004 12:23 PM

Quote:

Originally Posted by tnguy3n
looks nice, but ain't it template mod rather than code hack?

Yes, that and added bbcode. Wasn't sure where to put this but it does add a new function.

Bad Bunny 11-25-2004 12:38 PM

Quote:

Originally Posted by ericgtr
Yes, that and added bbcode. Wasn't sure where to put this but it does add a new function.

Has anyone tested how this works on different platforms? Specifically Mac for instance? Will it still work if a system does not have wmp?

Hades-1 11-25-2004 12:50 PM

Quote:

Originally Posted by Bad Bunny
Has anyone tested how this works on different platforms? Specifically Mac for instance? Will it still work if a system does not have wmp?

i am not making any garuntees but usually if you have quicktie installed and you come across a code like this it will just use quicktime.

In fact my PC always used quicktime but i changed the settings to use WMP

ericgtr 11-25-2004 12:51 PM

Quote:

Originally Posted by Hades-1
this is AWSOE just what i needed, damn you rock

1 thig, how can i make it so it does not show the video window? its only mp3 no video allowed, but on my site it shows the video window and controls

The only way I have been able to make it so the video window doesn't show is to use a lesser version of WMP.


All times are GMT. The time now is 06:03 PM.

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.01239 seconds
  • Memory Usage 1,737KB
  • 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)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