Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard

Reply
 
Thread Tools
Playing Attached Media Files Inline Details »»
Playing Attached Media Files Inline
Version: 1.00, by eXtremeTim eXtremeTim is offline
Developer Last Online: Feb 2008 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.6.1 Rating:
Released: 09-15-2006 Last Update: Never Installs: 62
 
No support by the author.

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


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>
Demo:
https://vborg.vbsupport.ru/attachmen...chmentid=24797
https://vborg.vbsupport.ru/attachmen...chmentid=24798
https://vborg.vbsupport.ru/attachmen...chmentid=24799
https://vborg.vbsupport.ru/attachmen...chmentid=24800


Attachment Content Types:

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.

Playing inline attachments under firefox has proven to be problemsome since I noticed firefox does not pass the cookie info in for the inline video playing. So if you want attachments to play inline in firefox you must set it so that guests can view attachements. (I am currently looking for fixes to this if possible)


This is a clean up and rerelease of this hack: https://vborg.vbsupport.ru/showthread.php?t=99871

If you have that hack installed just install the product file and you will be good. If you have her one before that then follow her template reverses from that thread.

I tried to contact the author but they havent been on the site in well over a month. Pms and emails were unresponded to. I will remove this hack if the hack author requests.


Whats fixed:

Fixed the problem with attachments being shown multiple times when more then one of the same file type was uploaded in a single post.
Cached all the templates used by this hack.

Show Your Support

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

Comments
  #62  
Old 05-01-2007, 09:35 PM
snoop1979 snoop1979 is offline
 
Join Date: Feb 2006
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok now i have one little problem, sometimes says loading, then ready, but won't play, but in other computer does play, the file can be downloaded fine, this is weird cuz some files (a few) play fine for me but not for a friend in another location, what can i do?
Reply With Quote
  #63  
Old 05-17-2007, 07:34 PM
Lahoria's Avatar
Lahoria Lahoria is offline
 
Join Date: Nov 2002
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any one got small icon for these media files ?
Reply With Quote
  #64  
Old 05-17-2007, 09:53 PM
Lahoria's Avatar
Lahoria Lahoria is offline
 
Join Date: Nov 2002
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

when I try to upload files fize about 3 mg , I get error, !!!!!!!!! I have edited filesize allowed to 20 mb ... any help ?

error :

Internet Explorer cannot display the webpage

Most likely causes:
You are not connected to the Internet.
The website is encountering problems.
There might be a typing error in the address.

What you can try:
Diagnose Connection Problems

More information
Reply With Quote
  #65  
Old 05-17-2007, 10:21 PM
eXtremeTim eXtremeTim is offline
 
Join Date: Jun 2002
Location: eXtremewebtech.com
Posts: 1,201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That wouldnt have anything to do with this hack that would more then likely be a problem with your server configuration.
Reply With Quote
  #66  
Old 05-19-2007, 09:46 AM
E.Blackadder E.Blackadder is offline
 
Join Date: Jan 2005
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any chance of adding .flv files to the supported list?

cheers
Reply With Quote
  #67  
Old 05-19-2007, 06:31 PM
eXtremeTim eXtremeTim is offline
 
Join Date: Jun 2002
Location: eXtremewebtech.com
Posts: 1,201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anybody got an flv player thats free that I can include with this hack?
Reply With Quote
  #68  
Old 05-19-2007, 10:57 PM
E.Blackadder E.Blackadder is offline
 
Join Date: Jan 2005
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yep...

here:
http://dw.com.com/redir?pid=10505954...-10505954.html

here:
http://www.jeroenwijering.com/upload...flv_player.zip

here:
http://www.videolan.org/mirror.php?f...8.6b-win32.exe


The last one seems more proffesional...

but there again.. what do i know...lol


thanks for helping..
Reply With Quote
  #69  
Old 06-06-2007, 10:44 PM
csavern csavern is offline
 
Join Date: Feb 2007
Location: Texas
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

now when i go to attach file i get a big long list of little boxes with red a red x in them and says undefined
could someone tell me how to fix this problem
Reply With Quote
  #70  
Old 06-07-2007, 10:23 AM
csavern csavern is offline
 
Join Date: Feb 2007
Location: Texas
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

and i am running 3.6.7 PL1
if someone could tell me how to uninstall and put it back to the way it use to be i would be thankful
if cant find a way to fix it
to take a look at it you can go here
www.rotormadness.com
Reply With Quote
  #71  
Old 06-28-2007, 01:53 AM
csavern csavern is offline
 
Join Date: Feb 2007
Location: Texas
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bump
Reply With Quote
Reply

Thread Tools

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 07:07 AM.


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.06184 seconds
  • Memory Usage 2,314KB
  • 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
  • (1)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)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