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
Embedded media player in post Details »»
Embedded media player in post
Version: 1.00, by ericgtr ericgtr is offline
Developer Last Online: Feb 2022 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 11-24-2004 Last Update: 05-14-2005 Installs: 149
 
No support by the author.

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.

Show Your Support

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

Comments
  #32  
Old 11-29-2004, 07:05 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by fatalsex
Great hack... JUST GREAT..
Perfect support.
man you are good!!!!
Thank you for this usefull hack.
Glad you are up and running now fatalsex. Stitch, thanks for for steering me into the right direction with this.
Reply With Quote
  #33  
Old 11-29-2004, 07:29 PM
Moya's Avatar
Moya Moya is offline
 
Join Date: May 2004
Posts: 356
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ericgtr
Glad you are up and running now fatalsex. Stitch, thanks for for steering me into the right direction with this.
huh I didn't do anything :nervous: :nervous:
Reply With Quote
  #34  
Old 11-30-2004, 01:44 PM
MrNase MrNase is offline
 
Join Date: May 2003
Location: Germany
Posts: 670
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<param name="baseURL" value>

Should be

<param name="baseURL" value="http://YOURDOMAIN.com/YOURFORUMS> or something
Reply With Quote
  #35  
Old 11-30-2004, 09:25 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MrNase
<param name="baseURL" value>

Should be

<param name="baseURL" value="http://YOURDOMAIN.com/YOURFORUMS> or something
That may be an option but it's not needed for this
Reply With Quote
  #36  
Old 12-01-2004, 05:12 PM
KW802's Avatar
KW802 KW802 is offline
 
Join Date: Jul 2003
Location: A galaxy far, far away...
Posts: 1,450
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[high]* KW802 clicks install for future usage/reference. [/high]
Reply With Quote
  #37  
Old 12-14-2004, 05:02 AM
docvader's Avatar
docvader docvader is offline
 
Join Date: Dec 2002
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great. Very imaginative and creative. But, you have to make more changes if you want to upload video, yes?

Quote:
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.
This does not change the default ".mp3" that pops up within the new media tags, as a file extension. Or, have I done something wrong?

rich
Reply With Quote
  #38  
Old 12-14-2004, 12:31 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by docvader
Works great. Very imaginative and creative. But, you have to make more changes if you want to upload video, yes?



This does not change the default ".mp3" that pops up within the new media tags, as a file extension. Or, have I done something wrong?

rich
Right, changing it to [MEDIA] (or anything else you want) is just a label, it will work the same either way. As for it playing video files etc. I think it really depends on your personal version of the player I have heard reports that it works for some and not others.


Also, if you want to use .avi (or another extension) for example you would need to specifiy it here in the newattachmentbit, the user may also simply change it after pasting it into the post:

Code:
<b>[MP3]http://www.yoursite.com/vb/attachment.php?attachmentid=$attach[attachmentid].avi[/MP3]</b>
Reply With Quote
  #39  
Old 12-14-2004, 07:47 PM
docvader's Avatar
docvader docvader is offline
 
Join Date: Dec 2002
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, understand. Awesome thing you've done here. But, it shouldn't be too difficult for you guys to expand on this, and list options (mpg, mpeg, avi, mpeg4, etc) that users can click on, in a radio box, and have the copy and paste code change automatically. Or, take it one more step, have it insert into the post automatically after the file type changes. Just a thought.

As I'm far from a coding genius, this would be beyond me. But, I don't think it would be something too difficult for you guys to accomplish. And it would make for a great improvement to a wonderful hack.

Oh, and I tried changing it to "media" for the hell of it, and I screwed it up. Not sure what I did, but it didn't work too well. (Works great, as per your specific directions, and very easy to install. Congrats!)

rich
russbo.com
Reply With Quote
  #40  
Old 12-14-2004, 07:56 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by docvader
Yes, understand. Awesome thing you've done here. But, it shouldn't be too difficult for you guys to expand on this, and list options (mpg, mpeg, avi, mpeg4, etc) that users can click on, in a radio box, and have the copy and paste code change automatically. Or, take it one more step, have it insert into the post automatically after the file type changes. Just a thought.

As I'm far from a coding genius, this would be beyond me. But, I don't think it would be something too difficult for you guys to accomplish. And it would make for a great improvement to a wonderful hack.

Oh, and I tried changing it to "media" for the hell of it, and I screwed it up. Not sure what I did, but it didn't work too well. (Works great, as per your specific directions, and very easy to install. Congrats!)

rich
russbo.com
Thanks, great suggestions. My knowledge of this stuff is still pretty limited but I am learning more every day As for making the change, I have found that I needed to delete my bbcode and re-add it again when making that change, give it a shot and it should work for you.
Reply With Quote
  #41  
Old 12-14-2004, 08:36 PM
docvader's Avatar
docvader docvader is offline
 
Join Date: Dec 2002
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ericgtr, here, check this out, re adding buttons to automatically insert code???

https://vborg.vbsupport.ru/showthread.php?t=69855

Looking forward to your next iteration. You're doing a great job with this.

rich
russbo.com
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 11:42 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.09046 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
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
  • (1)bbcode_code
  • (6)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
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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