![]() |
I don't need this mod but I figured I'd contribute...
The player code [BBCODE] you have would "bloat" any web page with unneccesary code (slows download of page). Use this instead: NOTE: This code is not for video. If you want to display video you will need to add/edit new params to the javascript. INSERT IN vbulletin_global.js (or some javascript file that is fetched from showthread.php) Code:
function embedwma (wma,w) { Tag: MUSIC USE THIS FOR BBCODE REPLACEMENT: Code:
<script type="text/javascript">embedwma('{param}','{option}');</script> Description: Embed Music within posts. Example: [MUSIC="enter width of controls here"]enter url to file[/MUSIC] Use {option}: YES hope you like ... |
Quote:
|
it's the same as your code ... it just doesn't repeat the player code over and over again (everything is done on the client side)
FYI you have a previous example with attachment id (.avi) you do not need to add an extension ... the file is fetched by attachment.php (a function) with the proper extension Also, you may have to create another function to hide BBCODE if viewer does not have permission to download attachment file; otherwise, user will get an error message. |
Okay, thanks for this. :)
|
ok i installed it but the manage atachment window gets kind of messy when you have mor then one plue it showes up with every atachment is ther a way to make them only show up for media and not pics?
|
General question.
I'm posting file video.avi ALL the guests can see the file . ( mean to WATCH) How can i DENY them to watch ? Meaning only for Registered Members. And on the place of Video file custom text like To Watch the Movie plz Register . etc Thanks |
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
This hack adds a permission level to your board. Let's say you don't want unregister users to read the content of a post within a forum (A) then you turn off their ability to read posts in that forum (A) with this hack. They still can be able browse and see the title of thread within (A). The moment they click on the thread title, they will be prompted with an No Permission message and urge them to register. I think this is the one https://vborg.vbsupport.ru/showthread.php?t=60178 |
Sounds like a nice alternative for people if they want to use it. For me, I have several music forums and want users to be able to see the body of the posts so it wouldn't work, still this is a great idea! Thanks for pointing it out stitch.
|
Quote:
Great idea ! Thanks! |
I'm using this hack with great success. But I had another question about embedding players inside of posts. I'm embedding QuickTime, to show videos, and I'd like the background of the html that the QT player lives in (which gets embedded within the actual post), to match the postbit background color (all changeable, with the current style used, of course) Here's my html code:
Quote:
I currently use black, as a default. Any idea what html code I can put into this, so that the background is not black, but, the color of the viewer's style's postbit background??? |
Thanks for great work, ericgtr, just what I was lookin for. (first post)
:classic: |
very very nice!
/me clicks install |
Quote:
Code:
<object classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" id="Player" width="400" height="45" |
nice hack
* Marboosh.Net? clicks install |
docvador, sorry for the late response. Stitch put together a few of different players including Real Player here https://vborg.vbsupport.ru/showthrea...threadid=72060
|
Nice hack. I will soon install it. Is there a way to limit only certain user groups to be able to upload this file.
|
Quote:
|
Quote:
First of all Id like to thank ericgtr for the nice hack that I got working, and all the others that contributed with ideas and developments. Great job! Now, I am in need to display Quicktime mov-files in posts in the same way, and I was first very happy to find docvaders contribution above. But theres something fishy going on here... I have allmost no hair left on my poor old head. :ermm: First out is the expression OBJECT CLASSID="xxxxxxxxxxxx". Im a noob in vb and php, and even I can see that this will simply not work. It was easy to solve by going to Quicktime website and check the ID. Correct expression then becomes: OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" A bit different... But that is NOT my problem. My problem is passing a src parameter for the file location and name, to this statement: <PARAM name="SRC" VALUE="dechengwuxingbafa.mov"> and for the statement: EMBED SRC="xxxxxxxxx.mov" The Windows Mediaplayer solve this by using {param} instead of URL+filename. Basic... :tired: In the "Apple universe", I simply cannot find the same thing. I have to give an absolute URL+filename to make it work, but then my BB-code manager just plays the same movie whatever I do with the tags later on. I mean, pressing the new icon mov.gif in my wysiwyg editor gives me the tags [mov][/mov] and in between I just want to give the URL+filename for my excellent movie. Different in every post... Wont work... :o I have tryed the trick using the "sample.mov" in my website root. No good. My conclusion right now, before I felt forced to ask u expert guys for help: "How on earth can these wealthy MAC-users stay alive?" :tired: I'll put up a reward of ?1.000.000 thanks to the individual who can explain how the apple code communicates and passes arguments in this case! |
all sample codes for QuickTime manipulation are found here: http://developer.apple.com/samplecode/QuickTime/
|
I really like the looks and sound of this mod so I have installed it on my test board. I followed the directions to the letter but for some reason I see no sign of it when I go to upload a mp3 file. I do hope you continue work on this. It has great potential I think.
I will go back and double check to see if I could have copied something wrong from the post. Keep up the good work and don't let this die out :) Jaye www.mules.org |
It doesn't actually appear until after the mp3 file is uploaded :)
|
oh yes of course Eric ;)
OK so now when I go to upload an mp3 I get the dreaded 'page can not be displayed ' error. Not sure why, it has never happened before. Nothing I did should have affected it. I will try another file and see what happens. So far I have tried 3 different mp3 files. Love this, can't wait to get my little problem figured out. I am running vb 3.7 if that matters. Jaye |
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.
|
Curious, the hack is installed correctly, the player appears in the post, and the attachment is underneath it. However, when I press play on the player in the post, nothing happens. Am I missing a setup option somewhere?
Also, I added the mp3 as a storage type, since I didn't have it. What should the Mime Type be if it matters? Thanks! |
It sounds like the mp3 isn't pathed properly, make sure you change it in your attachmentbit template to your settings here:
Code:
yoursite.com/vb/attachment.php?attachmentid=$attach[attachmentid].mp3 Content-type: audio/x-mpeg |
Thanks, I can download the mp3 attachment and it plays fine in my local player. It just doesn't play inline. I click the play button and nothing happens.
Quote:
|
Quote:
Do you have an example? |
<i>I fixed it! </i>I recopied all the ohject code into the bbcode record, saved it, and it worked. Good job!
|
hi i'm a little confused as to where this goes
Now, in your newattachmentbit template add this to the bottom and change the URL to your own. Code: <div style="padding:$stylevar[formspacer]px"> <table class="fieldset" cellpadding="0" cellspacing="1" border="0" width="100%"> <tr> 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. </tr> <br /> <tr> <b>[MP3]http://www.yoursite.com/vb/attachment.php?attachmentid=$attach[attachmentid].mp3[/MP3]</b> </tr> </table> does this go into new attachment php???? i can get the WMP to show up ok on my board but i cant get the songs to play,mp3 files are uploading ok as well,,i just dont know where to put the above file please help |
No, that section goes into the newattachmentbit template only, just scroll to the bottom of the template and paste it in. Then be sure to change the url to match your site, where your vb directory is:
[MP3]http://www.yoursite.com/vbdirectory/attachment.php?attachmentid=$attach[attachmentid].mp3[/MP3] |
where do i find the newattachmentbit template?????or do i paste it all below this 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 this bit here [MP3]http://www.yoursite.com/vbdirectory/attachment.php?attachmentid=$attach[attachmentid].mp3[/MP3] do i put my main web url??? in there eg below [MP3]http://www.sats-general.com/vb/attachment.php?attachmentid=$attach[attachmentid].mp3[/MP3] or my forum home page thanx for your help so far,i'm all new to this |
Please read the instructions carefully, the first part you posted is the bbcode which is added through your admin CP > bbcodes (in the left menu towards the bottom). Then you need edit the newattachmenbit template by going into admin CP > Styles and templates > Search in Templates and type in newattachmentbit which will bring up the template where you will post the code that I gave.
|
hi i followed your instruction,put i still cant get it to play,uploading mp3 shows exactly the same as your screen shots,but when i click play it does nothing,my main web page is www.sats-general.com,and my forum is http://www.sats-general.com/forum/index.php?
ive tried both in template [MP3]http://www.sats-general.com/vb/attachment.php?attachmentid=$attach[attachmentid].mp3[/MP3] and [MP3]http://www.sats-general.com/forum/vb/attachment.php?attachmentid=$attach[attachmentid].mp3[/MP3] what am i doing wrong??? :o |
update the player doesnt like mozilla,i tried it using IE 6 i can click the play button it says connecting to media then stops in a matter of seconds,if i click on the file it opens up a seperate WMP window,ive loaded everything correctly what am i doing wrong here
|
Quote:
|
Quote:
|
All times are GMT. The time now is 04:34 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|