Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
bbCode That Plays Most Media File Details »»
bbCode That Plays Most Media File
Version: 1.00, by Moya Moya is offline
Developer Last Online: Aug 2009 Show Printable Version Email this Page

Version: 3.5.2 Rating:
Released: 12-15-2005 Last Update: 12-15-2005 Installs: 59
Uses Plugins Template Edits
Is in Beta Stage  
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 12-16-2005, 12:27 AM
utw-Mephisto utw-Mephisto is offline
 
Join Date: Jan 2005
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Reply With Quote
  #13  
Old 12-16-2005, 12:34 AM
utw-Mephisto utw-Mephisto is offline
 
Join Date: Jan 2005
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 ...
Reply With Quote
  #14  
Old 12-16-2005, 12:34 AM
Moya's Avatar
Moya Moya is offline
 
Join Date: May 2004
Posts: 356
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #15  
Old 12-16-2005, 12:38 AM
utw-Mephisto utw-Mephisto is offline
 
Join Date: Jan 2005
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #16  
Old 12-16-2005, 12:44 AM
Rickie3's Avatar
Rickie3 Rickie3 is offline
 
Join Date: Nov 2004
Location: Australia/Tasmania
Posts: 770
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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;
}
Reply With Quote
  #17  
Old 12-16-2005, 12:44 AM
newfun newfun is offline
 
Join Date: May 2005
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #18  
Old 12-16-2005, 12:55 AM
newfun newfun is offline
 
Join Date: May 2005
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cpanel -> style &...-> Select style --> Main CSS
Reply With Quote
  #19  
Old 12-16-2005, 01:34 AM
Rickie3's Avatar
Rickie3 Rickie3 is offline
 
Join Date: Nov 2004
Location: Australia/Tasmania
Posts: 770
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by newfun
cpanel -> style &...-> Select style --> Main CSS
DOH thankyou
Reply With Quote
  #20  
Old 12-16-2005, 01:58 AM
Moya's Avatar
Moya Moya is offline
 
Join Date: May 2004
Posts: 356
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #21  
Old 12-16-2005, 06:02 AM
utw-Mephisto utw-Mephisto is offline
 
Join Date: Jan 2005
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

uploaded new file, still same problem ..

Send PM
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 01:07 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.04730 seconds
  • Memory Usage 2,317KB
  • 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
  • (8)bbcode_code
  • (1)bbcode_html
  • (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
  • (3)pagenav_pagelink
  • (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