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)

zoe 09-18-2005 05:09 PM

Quote:

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.
Hey Ericgtr,
Hope you don't mind if I port it for 3.5 I think I may have a possible solution. I'm working on it this morning.
zoe

ericgtr 09-18-2005 06:00 PM

Sure, help yourself. :)

zoe 10-21-2005 03:42 PM

Ok,
For all of you that are interested this works for 3.5 with a few minor modifications.
In the newattachmentbit you now change the code to:
Code:

http://www.yoursite.com/forum/attachment.php?attachmentid=$attach[attachmentid][/MP3]

ericgtr 10-21-2005 03:51 PM

Thanks zoe! :)

cbr929rrerion 10-30-2005 06:23 AM

I can not get this to work in 3.5, the bb code shows the player, i can upload the file, but the player dont appera just a link to the file..

I want it played inline and I want avi, mpeg, etc.. video files.. any ideas?

Icehawk002 12-06-2005 12:56 PM

Attachment shows up ok and opens, but the embeded bbcode does not provide a player in the post??

help please

ericgtr 12-06-2005 01:20 PM

Quote:

Originally Posted by Icehawk002
Attachment shows up ok and opens, but the embeded bbcode does not provide a player in the post??

help please

Please make sure you've followed each detail of the instructions. It's hard to tell from that description but you will want to make sure that your template changes were applied.

Icehawk002 12-06-2005 01:31 PM

Quote:

Originally Posted by ericgtr
Please make sure you've followed each detail of the instructions. It's hard to tell from that description but you will want to make sure that your template changes were applied.

eek what template change(s) I only did the one in newattachmentbit template

ericgtr 12-06-2005 01:37 PM

Quote:

Originally Posted by Icehawk002
eek what template change(s) I only did the one in newattachmentbit template

Right, that's the one. You applied the bbcode and it shows up right in the admin CP after you added it?

Icehawk002 12-06-2005 01:39 PM

yes bbcode shows up in admin.

ericgtr 12-06-2005 01:44 PM

It's hard to guess without seeing your setup, which template modification are you using, the one with or without restrictions (there are two options). If the one with restrictions try replacing it with the one without just to test.

Icehawk002 12-06-2005 01:48 PM

Quote:

Originally Posted by ericgtr
It's hard to guess without seeing your setup, which template modification are you using, the one with or without restrictions (there are two options). If the one with restrictions try replacing it with the one without just to test.

I am using without restrictions and have tried the original and the slight adapted line given by zoe further up this thread but both show up as just the code not a player.

As I said the file can be attached via manage attachments and shows up fine and is clickable opening quicktime player.

the bbcode appears correct in admin and have double checked this in the post.

The replacement code in bbcode [mp3] is as follows

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

thanks

ericgtr 12-06-2005 01:52 PM

Okay, in your bbcode what did you setup your tag to be i.e. mp3 etc? We want to be sure that this line matches the tags in the template mod.

So if it's MP3 it should look like this:
Code:

[MP3]http://www.yoursite.com/vb/attachment.php?attachmentid=$attach[attachmentid].mp3[/MP3]

Icehawk002 12-06-2005 01:57 PM

bbcode

[MP3]http://www.the-ice-castle.co.uk/forum/file.mp3[/MP3]

template

[MP3]http://www.the-ice-castle.co.uk.co.uk/forum/attachment.php?attachmentid=$attach[attachmentid].mp3[/MP3]

post

[MP3]http://www.the-ice-castle.co.uk/forum/attachment.php?attachmentid=227.mp3[/MP3]

ericgtr 12-06-2005 02:16 PM

Try this, nuke the bbcode and re-add it, don't change anything else.

Icehawk002 12-06-2005 02:20 PM

ok sorry no change though. mmmh :nervous:

ericgtr 12-06-2005 02:26 PM

Do you have windows media player installed? It will not work with quicktime using that embedded media code. I would register at your forums to see but it looks like it may contain adult content and I am at work.

Icehawk002 12-06-2005 02:28 PM

Quote:

Originally Posted by ericgtr
Do you have windows media player installed? It will not work with quicktime using that embedded media code. I would register at your forums to see but it looks like it may contain adult content and I am at work.


It contains adult material please be aware sent you pm.

Not sure if windows media player installed how would I check this I presume you mean installed on the server not local machine.

ericgtr 12-06-2005 02:33 PM

Quote:

Originally Posted by Icehawk002
It contains adult material please be aware sent you pm.

Not sure if windows media player installed how would I check this I presume you mean installed on the server not local machine.

Fixed, it's the little things that get ya...

Instructions say
Code:

Use {option}: No
Yours was set to Yes ;)

Enjoy!

Icehawk002 12-06-2005 02:35 PM

Dont you just hate that LOL - thank you very much :nervous:

ericgtr 12-06-2005 02:36 PM

Glad to help :)

Mikecp421 01-01-2006 02:22 PM

worked for me good stuff

Funboy 03-09-2006 05:58 PM

Well done ericgtr,

Had this up and running in under 1min.

Well pleased.

thx for the share.

G_Man 03-19-2006 04:21 PM

Any chance you are going to release a 3.5 version?

ericgtr 03-19-2006 05:12 PM

I had considered it but this mod was released and appears to do much more https://vborg.vbsupport.ru/showthread.php?t=106239 :)

G_Man 03-19-2006 08:07 PM

Quote:

Originally Posted by ericgtr
I had considered it but this mod was released and appears to do much more https://vborg.vbsupport.ru/showthread.php?t=106239 :)

very cool. Checking it out now. Thanks a lot for pointing me that way. :D

Poethik 03-29-2006 07:46 PM

Thats the best Idea I've ever heard. I need to learn this coding stuff.

nomiqw 04-17-2006 12:11 PM

nice work m8 just got it working on my site thnx

ben_erhan 08-27-2006 11:10 AM

ericgtr ,

I have used this modification long times.
But after upgrade to 3.0.6 I couldnt use.
ıs there a way to use at this version?
I have all the things but it did not work:(
There are lots of post with this code:(

looking forward to hearing your best news.

MikaK 08-29-2006 03:29 PM

I've managed to set up this for the most part. But there is an issue with bbcode parsing in some special cases:

What could possibly cause this:

If I add an url into a forum posting inside bbcode and it contains an ampersand the result looks like

Code:

http://www.soundchilds.net/backstage/play.php?band_id=29&amp;song_id=24&amp;mode=song_hifi
and gets parsed all ok ie. the media can be streamed when using the [MEDIA] bbcode tag..

example post. http://www.soundchilds.net/loud_loun...35&postcount=3


If I add the same [MEDIA] tag at member.php in a profile field that can take bbcode the url breaks at a few places and looks like

Code:

http://www.soundchilds.net/backstage/play.php?band_id=29&amp;amp;  song_id=24&amp;amp;mode=song  _hifi
My member.php calls the functions_bbcodeparse.php. Including the file got the img tags properly showing instead of plain url's (I have the image resize hack installed).

Is there anyone around with an idea what might cause the above difference in parsing? Where would be best start looking?

I'm running a vb v 3.0.3

Thanks for any ideas!

Best regards,

-Mika

ReWrite 02-16-2007 04:49 AM

Super Idee !

david05 05-24-2007 08:42 PM

Thank you very much, It also works well with 3.6.7

jGas 08-02-2007 06:32 PM

hi. i've got a question.

is there the possibility to have ALL the posts (also the old ones!) with mp3 to display the player inline?

Tom S 02-29-2008 11:01 PM

I do not know what I do not have set right, but this will not work. Can someone please give me a hint of what may be the problem. The player shows in one post that I am testing this with. But when you push the play button it just stops.

See here: http://www.bigfootreferenceguide.com...45&postcount=1

Please help, this will help our Members so much rather than having to click back and forth from 2 different windows.

Tom S. :confused:

Hawkins 04-05-2008 06:32 AM

Quote:

Originally Posted by Tom S (Post 1454068)
I do not know what I do not have set right, but this will not work. Can someone please give me a hint of what may be the problem. The player shows in one post that I am testing this with. But when you push the play button it just stops.

See here: http://www.bigfootreferenceguide.com...45&postcount=1

Please help, this will help our Members so much rather than having to click back and forth from 2 different windows.

Tom S. :confused:

:confused: I tried it on your site and it WORKS. :p

Hawkins 04-05-2008 06:35 AM

I spent my past week in looking for something like this, just a simple but perfect mp3 players.

What surprises me is that this is rare, after AnyMedia goes obsolete. All other mods are focused too much on the youtube thingy and totally neglect the simplest.

Moreover, I think that by increasing the size to 500 x 400, the same replacement can be used to play wmv video clips. I have yet to try it out.

/* Sigh */

:up:

Hawkins 04-05-2008 06:59 AM

So I tested it and it works fine for wmv type video clips.

I made another tag [wmv] using the same replacement, but increased the display size,

Attachment 78274


All times are GMT. The time now is 10:40 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.01714 seconds
  • Memory Usage 1,820KB
  • 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
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (37)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