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
  #112  
Old 08-02-2005, 02:25 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have a look at this thread to change it so you can allow for larger files, keep in mind that you need root access to your server, if you don't have it talk to your provider and they may be able to do it for you https://vborg.vbsupport.ru/showthread.php?t=81061

Thanks for the offer but I don't have anything setup for this, it's a pretty minor mod as it is
Reply With Quote
  #113  
Old 08-02-2005, 02:42 PM
madkidz madkidz is offline
 
Join Date: Aug 2004
Location: EN-Y-CE Get it
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok kool thanks.
Reply With Quote
  #114  
Old 08-08-2005, 05:13 PM
vnboy vnboy is offline
 
Join Date: Jul 2003
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just installed this today, it's great, thanks a lot!
BTW, I added a button to insert the code like this and it works:

-- In template editor_toolbar_wysiwyg
--> search for
PHP Code:
$vBeditTemplate[extrabuttons
--> insert just above it:
HTML Code:
			<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="20" /></td>
			<td><div class="imagebutton" id="cmd_wrap0_media"><img src="$stylevar[imgdir_editor]/media.gif" alt="$vbphrase[wrap_quote_tags]" width="21" height="20" /></div></td>
all you need is to put a gif image "media.gif" in the editor folder!
Reply With Quote
  #115  
Old 08-08-2005, 05:15 PM
vnboy vnboy is offline
 
Join Date: Jul 2003
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
HTML Code:
[MEDIA]http://www.yoursite.com/vb/attachment.php?attachmentid=$attach[attachmentid].mp3[/MEDIA]

actually, as I realised, you don't need to do so, just do it like this and it works on whatever server you put your website:

Code:
[MEDIA]./attachment.php?attachmentid=$attach[attachmentid].mp3[/MEDIA]
Reply With Quote
  #116  
Old 08-16-2005, 10:45 AM
khaleel's Avatar
khaleel khaleel is offline
 
Join Date: Oct 2004
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it compliant? Will it work in safari rss2 and firefox?
Reply With Quote
  #117  
Old 08-31-2005, 07:55 PM
bangthebook bangthebook is offline
 
Join Date: Jan 2005
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does this work with 3.0.7?
Reply With Quote
  #118  
Old 09-17-2005, 08:22 PM
zoe zoe is offline
 
Join Date: Aug 2005
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok,
I'm having some issues... I don't know if this is 3.5 RC3 compatable. Since RC3 was just released I'm almost positive it's not. Anyhow there are a few issues I encountered. In order for anybody to be able to upload huge files such as full MP3 songs over 2mb you need to tweak your php.ini file. For those of you in a shared environment it is not possible and most hosts will not do it for you. But if you get past that point and you add MP3 as a valid extension you're almost there. Now if you follow the instructions after you upload the file you'll see that it directs you how to post it so it is embedded i.e.
Quote:
You may optionally add the following line by copying and
pasting it into the body of the post. This will allow it to be played in an embedded media player inside the post
Now I'm fine and dandy but for some reason it still will not recognize the bb code. Yes it shows up in the admin and yes I can attach mp3s. Yes I have rebooted the server but no love... Any suggestions?
Thanks,
zoe
Reply With Quote
  #119  
Old 09-17-2005, 08:33 PM
zoe zoe is offline
 
Join Date: Aug 2005
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anybody have some ideas? I'm pretty flustered right now. It could be something simple... I'm going to go have some zoloft.
Reply With Quote
  #120  
Old 09-17-2005, 08:55 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 zoe
Anybody have some ideas? I'm pretty flustered right now. It could be something simple... I'm going to go have some zoloft.
zoe, this has never been tested outside of 3.0.7 so I can't claim it works with any of the later versions. One thing you can try is to delete the custom bbcode and re-add it again, I've had to do that before.
Reply With Quote
  #121  
Old 09-17-2005, 09:23 PM
zoe zoe is offline
 
Join Date: Aug 2005
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok,
I'll give it a shot... If not I can always take double the dose of Zoloft and work the code to figure out the problem. Any ideas where to start?
zoe
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:43 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.04742 seconds
  • Memory Usage 2,314KB
  • 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
  • (2)bbcode_html
  • (1)bbcode_php
  • (3)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