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
Playing Windows Media Files Inline Using Plugin Details »»
Playing Windows Media Files Inline Using Plugin
Version: 1.00, by Moya Moya is offline
Developer Last Online: Aug 2009 Show Printable Version Email this Page

Version: 3.5.1 Rating:
Released: 11-01-2005 Last Update: 11-08-2005 Installs: 64
Uses Plugins Template Edits
 
No support by the author.

This just an upgrade over from my existing hack HERE
to use plugin system for vb3.5 gold


What this hack does::

This hack allows your users to upload media files via your board file management and play the media fields within their post.. It is adivisable to have one inline per post.


Foreword:

This hack might not work on all system due to different configuration, platform, and such. I will try to help you all as much as I can.

This hack will use your board attachment system to run mp3, wma, wmv, flash files. It is a bit server intensive. So be warned

Security Risk:

It has been known that flash files can be used to exploit and compromise certain securities on user computer. You might want to verify your flash attachment before enable flash playing inline on your forum.

Files To edit: 0
Queries to run: 0
Uses Product: Yes
Template Edits: 1



Template Edit

To remove previous version from Postbit template
Postbit template

Look for

HTML Code:
<if condition="$show[flashattachment]">
<fieldset class="fieldset">
<legend>$vbphrase[attached_flash] $flashfilename </legend>

<div style="padding:$stylevar[formspacer]px">
$post[flashattachments]
</div>
</fieldset>

</if>



<if condition="$show[wmaattachment]">
<fieldset class="fieldset">
<legend>$vbphrase[attach_wma] $wmafilename</legend>

<div style="padding:$stylevar[formspacer]px">
$post[wmaattachments]
</div>
</fieldset>

</if>

<if condition="$show[wmvattachment]">
<fieldset class="fieldset">
<legend>$vbphrase[attach_wmv] $wmvfilename</legend>

<div style="padding:$stylevar[formspacer]px">
$post[wmvattachments]



</div>
</fieldset>

</if>
	
<if condition="$show[mp3attachment]">
<fieldset class="fieldset">
<legend>

$vbphrase[attach_mp3] $mp3filename</legend>

<div style="padding:$stylevar[formspacer]px">
$post[mp3attachments]

</div>
</fieldset>

</if>

Postbit legacy template

Look for

HTML Code:
<if condition="$show[flashattachment]">
<fieldset class="fieldset">
<legend>$vbphrase[attached_flash] $flashfilename </legend>

<div style="padding:$stylevar[formspacer]px">
$post[flashattachments]
</div>
</fieldset>

</if>



<if condition="$show[wmaattachment]">
<fieldset class="fieldset">
<legend>$vbphrase[attach_wma] $wmafilename</legend>

<div style="padding:$stylevar[formspacer]px">
$post[wmaattachments]
</div>
</fieldset>

</if>

<if condition="$show[wmvattachment]">
<fieldset class="fieldset">
<legend>$vbphrase[attach_wmv] $wmvfilename</legend>

<div style="padding:$stylevar[formspacer]px">
$post[wmvattachments]



</div>
</fieldset>

</if>
	
<if condition="$show[mp3attachment]">
<fieldset class="fieldset">
<legend>

$vbphrase[attach_mp3] $mp3filename</legend>

<div style="padding:$stylevar[formspacer]px">
$post[mp3attachments]

</div>
</fieldset>

</if>

REMOVE THEM

SAVE

Open postbit_attachment and add to very top

HTML Code:
<tr>
<td width=450 colspan="2">

<if condition="$show[realattachment]">
<fieldset class="fieldset">
<legend>$vbphrase[attach_real] $realfilename</legend>

<div style="padding:$stylevar[formspacer]px">
$post[realattachments]
</div>
</fieldset>

</if>


<if condition="$show[movattachment]">
<fieldset class="fieldset">
<legend>$vbphrase[attach_mov] $movfilename</legend>

<div style="padding:$stylevar[formspacer]px">
$post[movattachments]
</div>
</fieldset>

</if>

<if condition="$show[flashattachment]">
<fieldset class="fieldset">
<legend>$vbphrase[attached_flash] $flashfilename </legend>

<div style="padding:$stylevar[formspacer]px">
$post[flashattachments]
</div>
</fieldset>

</if>

<if condition="$show[pdfattachment]">
<fieldset class="fieldset">
<legend>$vbphrase[attach_pdf] $pdffilename</legend>

<div style="padding:$stylevar[formspacer]px">
$post[pdfattachments]
</div>
</fieldset>

</if>

<if condition="$show[aviattachment]">
<fieldset class="fieldset">
<legend>$vbphrase[attach_avi] $avifilename</legend>

<div style="padding:$stylevar[formspacer]px">
$post[aviattachments]
</div>
</fieldset>

</if>

<if condition="$show[mpgattachment]">
<fieldset class="fieldset">
<legend>$vbphrase[attach_pdf] $mpgfilename</legend>

<div style="padding:$stylevar[formspacer]px">
$post[mpgattachments]
</div>
</fieldset>

</if>
<if condition="$show[mpegattachment]">
<fieldset class="fieldset">
<legend>$vbphrase[attach_pdf] $mepgfilename</legend>

<div style="padding:$stylevar[formspacer]px">
$post[mepgattachments]
</div>
</fieldset>

</if>



<if condition="$show[wmaattachment]">
<fieldset class="fieldset">
<legend>$vbphrase[attach_wma] $wmafilename</legend>

<div style="padding:$stylevar[formspacer]px">
$post[wmaattachments]
</div>
</fieldset>

</if>

<if condition="$show[wmvattachment]">
<fieldset class="fieldset">
<legend>$vbphrase[attach_wmv] $wmvfilename</legend>

<div style="padding:$stylevar[formspacer]px">
$post[wmvattachments]



</div>
</fieldset>

</if>
	
<if condition="$show[mp3attachment]">
<fieldset class="fieldset">
<legend>

$vbphrase[attach_mp3] $mp3filename</legend>

<div style="padding:$stylevar[formspacer]px">
$post[mp3attachments]

</div>
</fieldset>

</if>


</td>
</tr>


Upload the included XML as product.



Demo











If you use this hack please click install.


As christianb mentioned in the other post, you might need to setup attachement types for your forum to play properly.



Use the following for your types

HTML Code:
WMA ?  Content-type: audio/x-ms-wma
WMV ?  Content-type: video/x-ms-wmv
MP3  ?  Content-type: audio/x-mp3
SWF ?  Content-type: application/x-shockwave-flash
AVI  ?  Content-type: video/x-ms-avi
MOV ?  Content-type: video/quicktime
MP4 ? Content-type: video/quicktime
MPEG ?  Content-type: video/mpeg
MPG ?  Content-type: video/mpeg
RAM ?  Content-type: audio/x-pn-realaudio
RM ?  Content-type: audio/x-pn-realaudio
SWC ?  Content-type: application/x-shockwave-flash

NOTE: This hack use your board attachment.php to play those specified media files. Therefore, you will have to set up user right to download attachement in under forum permissions.


Quote:
Originally Posted by Supported Codes
mov, mpeg, mpg, mp4, wma, real, wma, wmv, avi

Show Your Support

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

Comments
  #102  
Old 11-11-2005, 04:15 AM
Moya's Avatar
Moya Moya is offline
 
Join Date: May 2004
Posts: 356
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You will have to install plug in for FF.

BTW: Can I take a look at your board?
Reply With Quote
  #103  
Old 11-11-2005, 06:49 PM
puertoblack2003's Avatar
puertoblack2003 puertoblack2003 is offline
 
Join Date: Aug 2005
Location: Philadelphia
Posts: 1,073
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good day,

for some reason can't download xml file any idea's

thanks

i'm using i.e tried in firefox and same problem
Reply With Quote
  #104  
Old 11-12-2005, 03:16 AM
Moya's Avatar
Moya Moya is offline
 
Join Date: May 2004
Posts: 356
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nievesidenshop
good day,

for some reason can't download xml file any idea's
I am not sure what happens. You might want to contact the moderators or admin here.
Reply With Quote
  #105  
Old 11-12-2005, 09:04 AM
Wordplay Wordplay is offline
 
Join Date: Nov 2001
Location: Dengoku
Posts: 864
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i cant find anything along the lines flashattachment attached_flash or wmaattachment only attached_others.
???
Reply With Quote
  #106  
Old 11-13-2005, 12:11 AM
puertoblack2003's Avatar
puertoblack2003 puertoblack2003 is offline
 
Join Date: Aug 2005
Location: Philadelphia
Posts: 1,073
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by stitch
I am not sure what happens. You might want to contact the moderators or admin here.
thanks for the relpy, i figured it out i had to do some work but got it and installed....1 thing works well with ie but not firefox u stated on the post above to get a plugin do u know wat plugin it is ?

thanks
Reply With Quote
  #107  
Old 11-13-2005, 04:18 AM
Moya's Avatar
Moya Moya is offline
 
Join Date: May 2004
Posts: 356
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nievesidenshop
thanks for the relpy, i figured it out i had to do some work but got it and installed....1 thing works well with ie but not firefox u stated on the post above to get a plugin do u know wat plugin it is ?

thanks
Usually the browser will tell you what kind of plugin it is is looking for. I have run into this problem with FF and for some unknown reason it starts working. I am not sure how to fix that.
Reply With Quote
  #108  
Old 11-13-2005, 06:39 AM
Wordplay Wordplay is offline
 
Join Date: Nov 2001
Location: Dengoku
Posts: 864
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm...
Reply With Quote
  #109  
Old 11-17-2005, 03:08 PM
JohnBee JohnBee is offline
 
Join Date: Oct 2004
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed, looks fine, nothing plays though.

It does show a busy message as though loading, but when I hit play it simply flashes and does nothing.

I tried with .vmw .avi and a few other formats. using 3.5.1 - tested in Firefox and iE same results.
Reply With Quote
  #110  
Old 11-17-2005, 03:23 PM
Moya's Avatar
Moya Moya is offline
 
Join Date: May 2004
Posts: 356
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can I take a look at your site!
Reply With Quote
  #111  
Old 11-19-2005, 10:24 PM
Wordplay Wordplay is offline
 
Join Date: Nov 2001
Location: Dengoku
Posts: 864
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i dont quite get this... installed the plug in... but now how do my members upload the videos? do i have to add new extensions? and it'll know what to do with them, because they dont show up in the file types allowed for the attachment upload when uploading attachments...
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 12:44 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.17541 seconds
  • Memory Usage 2,342KB
  • 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
  • (4)bbcode_html
  • (4)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
  • (4)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