vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   bbCode That Plays Most Media File (https://vborg.vbsupport.ru/showthread.php?t=103047)

Moya 12-15-2005 10:00 PM

bbCode That Plays Most Media File
 
I am just being lazy to add all of the bbcode for

wma, wmv, avi, swf, mp3, wma, mpg, mpa, mpeg, mov. So I just come up with this little product that take care of them all - just one bbcode added

Like the usual: There are known or unknown security risks for playing media file like flash file. It is up to you to take precaution

Here is how can add this one.

Add the product via products pannel

NOTE: For some boards, the bbcode only work at the beginning of the code evaluation. If you encounter the problem where tag shows up, use
product-bbcodeplayall-parsestart.xml instead of the first one.

Upload the media.gif into your images directory

BBCODE:Title:
Code:

Media
Tag:
Code:

media
Replacement:
Code:

[media]{param}[/media]
Example:
Code:

[media]Media Link goes here[/media]
Description:
Code:

The [media] tag allows you to play certain type of media within your posts.
Use {option}:
Code:

NO
Button Image:
Code:

images/media.gif

CSS: Additional CSS Definitions

In second box input:

HTML Code:

.bbcode_hack
{
background-color: #FFFFFF; 
border-left: 6px solid #ACDB3C;
border-right: 1px dotted #333333;
border-top: 1px dotted #333333;
border-bottom: 1px dotted #333333;
margin: 8px auto 0px auto;
padding: 5px; color:#333333;
}





That is it. You are done!!

utw-Mephisto 12-15-2005 11:40 PM

Awesome :)

Works like a charm ..

newfun 12-15-2005 11:42 PM

Cool! Thanks
:devious:

How can I remove the music link below media phayer? I don't really like that look

utw-Mephisto 12-15-2005 11:52 PM

It would be great to have this bbcode visible for members only .. maybe somehow combined with the hide hack ..

loiloiloiloi 12-15-2005 11:53 PM

cool, thank a lot ! :D

utw-Mephisto 12-16-2005 12:08 AM

There seems to be another problem too ... everybody else can only see the written tag, like [media]bla.mp3[/media] ...

When I have been somewhere else in the forum and go back to my post I see the tag only too ...

Only when I edit my own post and save it, THEN I can see the player within the post .. other people however still see only the tag itself ...

Moya 12-16-2005 12:11 AM

Can I take a look at your site?

Moya 12-16-2005 12:12 AM

Quote:

Originally Posted by utw-Mephisto
It would be great to have this bbcode visible for members only .. maybe somehow combined with the hide hack ..

It now has the hide option to guest. Just download the xml file again and upload to your site

utw-Mephisto 12-16-2005 12:17 AM

Quote:

Originally Posted by stitch
Can I take a look at your site?

Sure

http://ut2007world.com/showthread.php?t=2046

I have not yet implemented the hide thingi for guests (thanks for that) ...

Moya 12-16-2005 12:26 AM

I register as Moya and test out a media code. It works

http://ut2007world.com/showthread.php?p=23064#post23064

utw-Mephisto 12-16-2005 12:27 AM

... not .. as I said, it seems it works only for the initial post, as soon as you leave the thread it is a tag only

http://img357.imageshack.us/img357/677/untitled1ar.jpg

utw-Mephisto 12-16-2005 12:34 AM

Yeah, just tested back and forth and asked other to test too ..

You post the media, then you can see the movie etc. then you go to another thread and then back again to the media post and THEN you can see the tag only ...

Moya 12-16-2005 12:34 AM

Do you any hack that use the same bbcode_parse_complete? I think it only work with post that doesnt have any reply on your board. It is wierd. I will look into this problem tonite.

utw-Mephisto 12-16-2005 12:38 AM

Quote:

Originally Posted by stitch
Do you any hack that use the same bbcode_parse_complete? I think it only work with post that doesnt have any reply on your board. It is wierd. I will look into this problem tonite.

Mmm.... I am not a coder tbh, don't know if any hack is using that ... I mean I don't mind if it doesn't work on reply, but again, just post it, leave the thread and view your own thread without reply and it is gone .. Thanks for looking into it .... I need to go for today ... :( thanks

newfun 12-16-2005 12:44 AM

I just checked in xml and I found that:

<plugin active="1">
<title>Play All Media bbcode_parse_complete</title>
<hookname>bbcode_parse_complete</hookname>
<phpcode><![CDATA[
//Play All Media bbcode by Stitch @ aotrangmongmo.com/chutgidenho.com
global $vbulletin, $stylevar, $vbphrase;
$homeurl = $vbulletin->options[bburl];
if (substr($homeurl,-1,1) != "/")
{
$homeurl = $homeurl ."/";
}

//$homeurl='http://www.aotrangmongmo.com/vb35/';

I don't know what that use for. I also already test the media bbcode but after I refesh . It apear a music link.

Rickie3 12-16-2005 12:44 AM

where exactly do i put this code please??????

Code:

.bbcode_hack
{
background-color: #FFFFFF; 
border-left: 6px solid #ACDB3C;
border-right: 1px dotted #333333;
border-top: 1px dotted #333333;
border-bottom: 1px dotted #333333;
margin: 8px auto 0px auto;
padding: 5px; color:#333333;
}


newfun 12-16-2005 12:55 AM

cpanel -> style &...-> Select style --> Main CSS

Rickie3 12-16-2005 01:34 AM

Quote:

Originally Posted by newfun
cpanel -> style &...-> Select style --> Main CSS

DOH thankyou

Moya 12-16-2005 01:58 AM

Quote:

Originally Posted by newfun
I just checked in xml and I found that:

<plugin active="1">
<title>Play All Media bbcode_parse_complete</title>
<hookname>bbcode_parse_complete</hookname>
<phpcode><![CDATA[
//Play All Media bbcode by Stitch @ aotrangmongmo.com/chutgidenho.com
global $vbulletin, $stylevar, $vbphrase;
$homeurl = $vbulletin->options[bburl];
if (substr($homeurl,-1,1) != "/")
{
$homeurl = $homeurl ."/";
}

//$homeurl='http://www.aotrangmongmo.com/vb35/';

I don't know what that use for. I also already test the media bbcode but after I refesh . It apear a music link.

Uh oops I forgot that link there. I reupload the new file. Can you give admin access to your site?

utw-Mephisto 12-16-2005 06:02 AM

uploaded new file, still same problem ..

Send PM

Moya 12-16-2005 06:48 AM

I fix that problem. For some reason, your board start are thing at the beginning of the bbcode segment. You can check it out now

utw-Mephisto 12-16-2005 06:50 AM

Thanks a lot man ....... :) I REALLY appreciate it ...

Moya 12-16-2005 06:50 AM

Quote:

Originally Posted by newfun
I don't know what that use for. I also already test the media bbcode but after I refesh . It apear a music link.


Download the product-bbcodeplayall-parsestart.xml and replace the other one.

kadafi_alive 12-16-2005 08:07 AM

so which one should we download? The partstart one or the other one?

kadafi_alive 12-16-2005 09:11 AM

Hmm,

The first one doesn't work on firefox (shows player but doesn't play) but works on IE. I have tested it with a mp3 file.

Also, is there a way to autoplay it instead of pressing play?

newfun 12-16-2005 09:12 AM

The first one wasn't right still have something wrong I don't know anyway thanks for sharing, I try the second one now, hope it work.

newfun 12-16-2005 09:22 AM

Quote:

Originally Posted by kadafi_alive
Hmm,

The first one doesn't work on firefox (shows player but doesn't play) but works on IE. I have tested it with a mp3 file.

Also, is there a way to autoplay it instead of pressing play?

U right! same here I test the second one worked on IE but not for fire fox

utw-Mephisto 12-16-2005 09:26 AM

looks horrible .. :
http://ut2007world.com/showthread.php?p=23128#post23128

nexus851 12-16-2005 09:34 AM

so which file do we download to make it work on IE and FIREFOX??? or at least the most compatible version out...

NuclioN 12-16-2005 09:35 AM

doesn't work! New post gives only the url with media tags and when post in a already posted thread a horrible display of code appeared.

NuclioN 12-16-2005 09:36 AM

Quote:

Originally Posted by utw-Mephisto

The same here.

newfun 12-16-2005 09:48 AM

Quote:

Originally Posted by nexus851
so which file do we download to make it work on IE and FIREFOX??? or at least the most compatible version out...

none of them work with fire fox but I am sure the second one work on IE
maybe we can wait some one clever to solve this

kadafi_alive 12-16-2005 10:03 AM

I have also tried other media formats (eg rm) and they don't work. Nothing appears.

utw-Mephisto 12-16-2005 10:12 AM

the weird thing : Some of MP3s etc. do work and some don't .. I disabled it for now since most of them don't and I get a lot of complains since people really like the tags ...

nexus851 12-16-2005 11:04 AM

Quote:

Originally Posted by newfun
none of them work with fire fox but I am sure the second one work on IE
maybe we can wait some one clever to solve this

thanx, im gonna wait off till the bugs are all cleared up then..

croportal 12-16-2005 02:46 PM

nice plugin....i click install

can u tell me what is for 2 plugins????? and withc plugin i upload

Moya 12-16-2005 08:49 PM

Quote:

Originally Posted by kadafi_alive
Hmm,

The first one doesn't work on firefox (shows player but doesn't play) but works on IE. I have tested it with a mp3 file.

Also, is there a way to autoplay it instead of pressing play?

Try the new upload file. I fixed that media code. When it comes to FF, it think it is depend on the plugins that your browser can import.

Moya 12-16-2005 08:50 PM

Quote:

Originally Posted by kadafi_alive
I have also tried other media formats (eg rm) and they don't work. Nothing appears.

I fixed that too. Can you try the new file!

Moya 12-16-2005 08:52 PM

Quote:

Originally Posted by NuclioN
doesn't work! New post gives only the url with media tags and when post in a already posted thread a horrible display of code appeared.

Try the second product with parsestart word.

Moya 12-16-2005 08:53 PM

Quote:

Originally Posted by croportal
nice plugin....i click install


can u tell me what is for 2 plugins????? and withc plugin i upload

It is depend on your board. I would try the first one first.


All times are GMT. The time now is 03:50 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.01546 seconds
  • Memory Usage 1,826KB
  • 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
  • (8)bbcode_code_printable
  • (1)bbcode_html_printable
  • (14)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
  • (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