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 04-16-2005 11:14 AM

I think I see it now, try this:
[MP3]http://www.sats-general.com/forum/attachment.php?attachmentid=$attach[attachmentid].mp3[/MP3]

You don't need to use /vb that is an example of your vb directory, not what you actually need to use, it's supposed to be specific to your url which is /forum.

Rickie3 04-16-2005 12:44 PM

Quote:

Originally Posted by ericgtr
I think I see it now, try this:
[MP3]http://www.sats-general.com/forum/attachment.php?attachmentid=$attach[attachmentid].mp3[/MP3]

You don't need to use /vb that is an example of your vb directory, not what you actually need to use, it's supposed to be specific to your url which is /forum.

thankyou so much its working a treat now,excellent suport from you,your a saint thankyou

Rickie3 04-17-2005 06:17 AM

just to let you know i updated to the latest version of firefox,and the media player is working great

VBUsers 05-05-2005 07:01 AM

excellent hack installed and working with no problems

ericgtr 05-12-2005 09:30 PM

Update: Added an option to allow only certain groups to add the option to view/paste the URL in their post. Still working on securing the actual BBcode to specific groups.

Jaxx 05-27-2005 12:28 AM

How would you make it so people would have to sign in to view the video? I don't want to lock the forums down to that as quite a few of my members do read while in guest mode, but i'm not wanting to just allow anyone to click on the video's that might not be registered either.

ericgtr 05-27-2005 12:41 AM

At the moment there is no option for that, I've had a very difficult time trying to secure the custom bbcode.

yinyang 05-29-2005 10:22 AM

is there a way to do this not as an attachment, but as a url link? in other words, use [MEDIA] http://www.someotherwebsite.com/video.wmv[/MEDIA]

that would be incredible!

Snitz 05-29-2005 10:46 AM

Quote:

Originally Posted by yinyang
is there a way to do this not as an attachment, but as a url link? in other words, use [MEDIA] http://www.someotherwebsite.com/video.wmv[/MEDIA]

that would be incredible!

yes, i'd like that feature too
along with the upload thingy

MauriceReed 05-29-2005 02:01 PM

Quote:

Originally Posted by ericgtr
Do you have your files set to upload to the filesystem instead of the database? I would recommend it, especially if you are allowing mp3 files.

as a n00b, im not following that instructiuon m8.
im having the same problem, where i have uploaded the attachment, it shows underneath the player, al is well, except i cant hear the file playing, and the player just seems to stick on "connecting"......

uploaded all ok, all the filepaths are right......scratching my head now....lol

ericgtr 05-29-2005 02:03 PM

The bbcode will work for an outside link as well, as long as it's a file it can recognize, it's just a parser. So give it a try and see if it works for .wmv, if not it's a matter of finding the right WMV code which is pretty easy.

ericgtr 05-29-2005 02:24 PM

Quote:

Originally Posted by MauriceReed
as a n00b, im not following that instructiuon m8.
im having the same problem, where i have uploaded the attachment, it shows underneath the player, al is well, except i cant hear the file playing, and the player just seems to stick on "connecting"......

uploaded all ok, all the filepaths are right......scratching my head now....lol

Okay, to make sure you are storing your files in file system and not the database.
Admin CP > Attachments > Attachment Storage Type. If 'Move Items to a Different Directory' is checked it means your files are stored in the database, you need to check 'Move Items from File System into Database' to move them into the file system.

Another common problem for it not playing is an incorrect path in the template, make sure this matches your site structure exactly:
Code:

[MEDIA]http://www.yoursite.com/vb/attachment.php?attachmentid=$attach[attachmentid].mp3[/MEDIA]
So from looking at your site in your profile it would belike this: (note, ++ is there because the language filter on this site doesn't like it, but you get the idea)

Code:

[MEDIA]http://www.gob++++es.co.uk/forum/attachment.php?attachmentid=$attach[attachmentid].mp3[/MEDIA]
:)

yinyang 05-29-2005 04:19 PM

Quote:

Originally Posted by ericgtr
The bbcode will work for an outside link as well, as long as it's a file it can recognize, it's just a parser. So give it a try and see if it works for .wmv, if not it's a matter of finding the right WMV code which is pretty easy.

nope.

if we're only doing it this way, do we still need to make the changes in newattachmentbit?

ericgtr 05-29-2005 04:21 PM

Quote:

Originally Posted by yinyang
nope.

if we're only doing it this way, do we still need to make the changes in newattachmentbit?

It's the bbcode that you need, Stitch put some together for us here https://vborg.vbsupport.ru/showpost....50&postcount=6

yinyang 05-29-2005 04:57 PM

i followed your embed install instructions and substituted your code with stitch's wmv code. it didn't work :(

ericgtr 05-29-2005 05:20 PM

Quote:

Originally Posted by yinyang
i followed your embed install instructions and substituted your code with stitch's wmv code. it didn't work :(

Try deleting the existing bbcode and create a new one with all the same parameters and replace the media player code that I provided with stitch's code.

yinyang 05-29-2005 07:51 PM

Quote:

Originally Posted by ericgtr
Try deleting the existing bbcode and create a new one with all the same parameters and replace the media player code that I provided with stitch's code.

ok, basically i cut and pasted your code:

PHP Code:

<object classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" id="Player" width="400" height="200" 
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,0,0" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">

<
param name="URL" value="{param}">
<
param name="rate" value="1">
<
param name="balance" value="0">
<
param name="currentPosition" value="1">
<
param name="defaultFrame" value>
<
param name="playCount" value="1">
<
param name="autoStart" value="0">
<
param name="loop" value="-1">
<
param name="currentMarker" value="0">
<
param name="invokeURLs" value="-1">
<
param name="baseURL" value>
<
param name="volume" value="100">
<
param name="mute" value="0">
<
param name="uiMode" value="full">
<
param name="stretchToFit" value="0">
<
param name="windowlessVideo" value="0">
<
param name="enabled" value="-1">
<
param name="enableContextMenu" value="0">
<
param name="fullScreen" value="0">
<
param name="SAMIStyle" value>
<
param name="SAMILang" value>
<
param name="SAMIFilename" value>
<
param name="captioningID" value>
<
param name="enableErrorDialogs" value="0">
<
param name="_cx" value="7938">
<
param name="_cy" value="6482">

<
embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/windows95/downloads/contents/wurecommended/s_wufeatured/mediaplayer/default.asp" src="{param}" 
rate=1
balance
=0
currentPosition
=1
playCount
=1
autoStart
=0
loop
=-1
currentMarker
=0
invokeURLs
=-1
volume
=100
mute
=0
uiMode
=full
stretchToFit
=0
windowlessVideo
=0
enabled
=-1
enableContextMenu
=0
fullScreen
=0
SAMIStyle
SAMILang
SAMIFilename
captioningID
enableErrorDialogs
=0
_cx
=7938
_cy
=6482
width
=400 
height
=200>
</
embed>
</
object

and then substituted everything between your <embed></embed> with stitch's wmv code:

PHP Code:

<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/windows95/downloads/contents/wurecommended/s_wufeatured/mediaplayer/default.asp" src="{param}" 
rate=
balance
=
currentPosition
=
playCount
=
autoStart
=
loop
=-
currentMarker
=
invokeURLs
=-

volume
=100 
mute
=
uiMode
=full 
stretchToFit
=
windowlessVideo
=
enabled
=-
enableContextMenu
=
fullScreen
=
SAMIStyle 
SAMILang 
SAMIFilename 
captioningID 

enableErrorDialogs
=
_cx
=7938 
_cy
=6482 

width
=400 
height
=300
</
embed

i don't think i did it correctly since it didn't work.

MauriceReed 05-30-2005 01:05 AM

Quote:

Originally Posted by ericgtr
Okay, to make sure you are storing your files in file system and not the database.
Admin CP > Attachments > Attachment Storage Type. If 'Move Items to a Different Directory' is checked it means your files are stored in the database, you need to check 'Move Items from File System into Database' to move them into the file system.

Another common problem for it not playing is an incorrect path in the template, make sure this matches your site structure exactly:
Code:

[MEDIA]http://www.yoursite.com/vb/attachment.php?attachmentid=$attach[attachmentid].mp3[/MEDIA]
So from looking at your site in your profile it would belike this: (note, ++ is there because the language filter on this site doesn't like it, but you get the idea)

Code:

[MEDIA]http://www.gob++++es.co.uk/forum/attachment.php?attachmentid=$attach[attachmentid].mp3[/MEDIA]
:)


many thanks for the prompt reply mate...working fine now.
i DID have the paths correct, but for some strange reason, the wrong attachment reference was coming up when i cut n pasted the url into the post.

that sounds wrong in itself....lol
anyways, its working fine now..again, many thanks.

SpaceStar 06-10-2005 08:27 PM

Hello Eric

Great hack, just installed and after having some trouble uploading songs (because the files were located in database, after moving them to thr filesystem, i was able to uploading the songs) - but there is a new problem now. And I bet you've answered it before :) but I am still not able to work it out - so I need your help.

I am not able to run the file. I am sure it has to do something with the path -....

<b>[MP3]http://www.forum.pegham.net/attachment.php?attachmentid=$attach[attachmentid].mp3[/MP3]</b>

Looking forward :)

Regards

ericgtr 06-10-2005 08:38 PM

Did you get this worked out? I just checked and was able to play it in the embedded player on your site.

SpaceStar 06-10-2005 08:50 PM

Quote:

Originally Posted by ericgtr
Did you get this worked out? I just checked and was able to play it in the embedded player on your site.


Was that an answer to my question Eric? :ermm:

ericgtr 06-10-2005 09:00 PM

I went to your site and it works for me, that's all I was saying :)

SpaceStar 06-10-2005 09:04 PM

Yeh I have tried it now and yes it is working - thanx a lot eric :)

chariotdriver 07-14-2005 11:53 AM

Short Noob question,
I'm just getting my Vb set up and I'm searching for hacks to have a coder install for me. I'm possibly needing this one as I'm about to attend a convention and will be trying to find a means to show Video that I have edited to the members in a easy to find means.
I had played with insertion of links to a .wmv file just to see how it worked. It did but of course it opened a window to do this in.
If i get this hack, and save the video to wmv, will the user have to download anything for this to play in that post that I drop it in. And also does it work for the version that I have?
Thanks,

csidlernet 07-20-2005 09:08 AM

thanks it looks cool *installs*

madkidz 08-02-2005 10:06 AM

I dont know what I did wrong with this, but for some reason I cant see in the manage attachment "valid file extensions, ...mp3" as one of them. Can some one help me out.

ericgtr 08-02-2005 01:20 PM

Quote:

Originally Posted by madkidz
I dont know what I did wrong with this, but for some reason I cant see in the manage attachment "valid file extensions, ...mp3" as one of them. Can some one help me out.

Did you add .mp3? If you haven't you will need to in Admincp > Attachments > Extensions & Sizes

madkidz 08-02-2005 01:56 PM

Quote:

Originally Posted by ericgtr
Did you add .mp3? If you haven't you will need to in Admincp > Attachments > Extensions & Sizes

Yes I did. I have it as mp3 and not .mp3. For the mime type can I leave it as the default Content-type: unknown/unknown

ericgtr 08-02-2005 02:01 PM

I use:
Content-type: audio/x-mpeg

But it should still show up either way as long as it's in the extension list, not sure though so try adding this and see if it makes a difference. Also, you may want to try to upload the file anyway and see if it allows it.

madkidz 08-02-2005 02:15 PM

Quote:

Originally Posted by ericgtr
I use:
Content-type: audio/x-mpeg

But it should still show up either way as long as it's in the extension list, not sure though so try adding this and see if it makes a difference. Also, you may want to try to upload the file anyway and see if it allows it.

OK I got it to show up. Thanks, but the only problem now is that its saying "File Too Large. Exceeds PHP's limit of 2.00 MB. " How could I increase this.
By the way this is cool once I get it working, do you have a donation set up to contribute for this hack.

ericgtr 08-02-2005 02:25 PM

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 :)

madkidz 08-02-2005 02:42 PM

Ok kool thanks.

vnboy 08-08-2005 05:13 PM

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!

vnboy 08-08-2005 05:15 PM

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]

khaleel 08-16-2005 10:45 AM

Is it compliant? Will it work in safari rss2 and firefox?

bangthebook 08-31-2005 07:55 PM

does this work with 3.0.7?

zoe 09-17-2005 08:22 PM

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

zoe 09-17-2005 08:33 PM

Anybody have some ideas? I'm pretty flustered right now. It could be something simple... I'm going to go have some zoloft.

ericgtr 09-17-2005 08:55 PM

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.

zoe 09-17-2005 09:23 PM

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


All times are GMT. The time now is 01:11 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.01594 seconds
  • Memory Usage 1,875KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_html_printable
  • (3)bbcode_php_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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