vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Show Thread Enhancements - Playing Attached Media Files Inline (https://vborg.vbsupport.ru/showthread.php?t=126756)

eXtremeTim 09-15-2006 10:00 PM

Playing Attached Media Files Inline
 
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.

Barakat 09-16-2006 10:40 AM

yesterday i install Moya hack ... anyway i will install this instead ..

Gizmo5h1t3 09-16-2006 11:14 AM

adapted this for meself for 3.5...and it works fine.

thanks.

Snake 09-16-2006 11:24 AM

Yeah works fine on 3.6. Thanks!

eXtremeTim 09-16-2006 05:42 PM

Please click install.

Die2Night 09-16-2006 11:37 PM

Is there anyway to change the video play back size so that its bigger?

Living in music 09-16-2006 11:41 PM

I'd like it ! Thanks to poster.

eXtremeTim, r u Moya ? :D

eXtremeTim 09-17-2006 05:35 AM

No i stated in earlier i could not get in touch with moya and was releasing for now at least so people could benifit from a fully working version.

cunder 09-19-2006 07:14 AM

play inline in firefox you must set it so that guests can view attachements. (I am currently looking for fixes to this if possible)

I hope that you find it fast:)

paldo 09-19-2006 05:53 PM

nice thank you :) installed

cunder 09-27-2006 11:00 AM

Quote:

Originally Posted by cunder
play inline in firefox you must set it so that guests can view attachements. (I am currently looking for fixes to this if possible)

I hope that you find it fast:)

[Bumb]:confused:

InTeNsE-HuMoR 09-27-2006 05:13 PM

Hi, Can someone tell me where I might find the "postbit_attachment" file? I can't find it anywhere in my vb directory. Also, does this mod work with 3.6.1? Thanks.

scan-pa 09-28-2006 03:25 AM

Quote:

Originally Posted by InTeNsE-HuMoR
Hi, Can someone tell me where I might find the "postbit_attachment" file? I can't find it anywhere in my vb directory. Also, does this mod work with 3.6.1? Thanks.

"postbit_attachment" is a template not a file, access your adminCP and click on the Styles and Templates menu.

InTeNsE-HuMoR 09-28-2006 05:12 AM

Quote:

Originally Posted by scan-pa
"postbit_attachment" is a template not a file, access your adminCP and click on the Styles and Templates menu.

Ok, thank-you for your help! :)

iran.gs 09-29-2006 06:41 PM

Installed and added the codes how ever i tried to use it i dont see those extra obtions what am i doing wrong ?

curriertech 09-30-2006 02:09 PM

This caused pretty big issues with pdf attachments also displaying inline on my forum. Any idea why? I didn't change anything from the default install.

scan-pa 10-01-2006 03:23 AM

Quote:

Originally Posted by iran.gs
Installed and added the codes how ever i tried to use it i dont see those extra obtions what am i doing wrong ?

You still need to add the new types of attachments to the Attachments manager in the adminCP area.

Log into your adminCP area, scroll doen the left navbar and expand the Attachments menu, you should then see the following:

Attachment Manager
Attachment Permissions
Search
Moderate Attachments
Attachment Statistics
Attachment Storage Type


Click on Attachment Manager

At the bottom of this Click on Add New Extention.

next you need to add the following one at a time with whatever size upload you wish to allow.

New Attachment Content Types:

WMA
WMV
MP3
SWF
AVI
MOV
MP4
MPEG
MPG
RAM
RM
SWC

Hope that helps.

scan-pa 10-01-2006 03:26 AM

Quote:

Originally Posted by curriertech
This caused pretty big issues with pdf attachments also displaying inline on my forum. Any idea why? I didn't change anything from the default install.

Go into Attachment Manager and click edit on the PDF line. Change open in new browser to YES.

InTeNsE-HuMoR 10-01-2006 10:45 AM

Is there any way to control what size the attachments are? Like if I upload a flash game in swf file format at 640x640 it comes out smaller when added to the post?

curriertech 10-01-2006 01:18 PM

Quote:

Originally Posted by scan-pa
Go into Attachment Manager and click edit on the PDF line. Change open in new browser to YES.

It still shows the whole document inline.

iran.gs 10-02-2006 08:56 PM

Quote:

Originally Posted by scan-pa
You still need to add the new types of attachments to the Attachments manager in the adminCP area.

Log into your adminCP area, scroll doen the left navbar and expand the Attachments menu, you should then see the following:

Attachment Manager
Attachment Permissions
Search
Moderate Attachments
Attachment Statistics
Attachment Storage Type


Click on Attachment Manager

At the bottom of this Click on Add New Extention.

next you need to add the following one at a time with whatever size upload you wish to allow.

New Attachment Content Types:

WMA
WMV
MP3
SWF
AVI
MOV
MP4
MPEG
MPG
RAM
RM
SWC

Hope that helps.


Excelent job thanks buddy for the info it works now :rolleyes:

smoknz28 10-02-2006 09:02 PM

Is there a hack out there that will enable users to link online video files (stored on another server) to their posts and enable others to play them within the post?

I'm running vB 3.6.1

Thanks,
Mark

GraphicPlanet 10-03-2006 10:31 AM

i installed allready
But i dont know how is working and how i have to actvie
plz somebody help me

AMD_Warrior 10-08-2006 01:28 AM

I need help..


http://djze.com/test-2-t30.html?p=72#post72

look it keeps loading but never plays...WHY?

ninjamaster 10-08-2006 10:11 AM

thanks for this 1 :)

AMD_Warrior 10-08-2006 04:38 PM

Tim this is still nto wroking for me

i cant play mp3 files

http://djze.com/showthread.php/mp3_t...?p=100#post100

scan-pa 10-08-2006 06:11 PM

Quote:

Originally Posted by AMD_Warrior
Tim this is still nto wroking for me

i cant play mp3 files

http://djze.com/showthread.php/mp3_t...?p=100#post100

That link works. The song played for me.

after the site loads, give it a few seconds then click the play button..

cunder 10-09-2006 09:29 AM

is this problem already has been solved or not:surprised:

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)

Greek76 10-10-2006 10:52 PM

This mod works as is?
Do I need to add a media player to my forum?
Also is it possible to let only certain users upload media files?
Is it possible to post a link in a specific forum and let those users who wish to listen be able to listen to it if its obviously operating?

Thanks

basskiller 10-15-2006 02:49 AM

I keep getting "Upload of file failed. "

installed : product media inline v1.1.xml
Modified Posbit attachment template

added mp3 extensiion
upped the file size to mp3 - 14.35 MB
The file I tried to upload is only 6mb

anyone have a clue?? LOL

after doing a little investigating I found this PHP Maximum Upload Size 2.00 MB on my main admincp
I believe this is where my problem lies
anyone know how to change this?

eXtremeTim 10-17-2006 12:40 PM

The php maximum upload size is controlled in your php.ini so your server admin or host will have to update it for you.

Salvar 10-18-2006 10:16 PM

Well I get an MSQL database error and I can not see what there my browser is also crashing.

Can it be that my MSQL packet is too small?

1.00 MB packet size?

IT Dept 10-27-2006 03:17 AM

I've inserted your code in
postbit_attachment, added new extensions in Attachments Manager, increase Max Filesize but I still can't upload file in Manage Attachments.

Can you tell me how to solve this error?

Thanks in advanced.

eXtremeTim 10-27-2006 03:28 AM

I wouldnt recommend using mysql storage for attachments esp when using this hack since this hack has a tendancy to deal with larger attachments, also everybody you also need to factor in your php max upload size becuase no matter what vb is set at if the php max upload size is less then the size of your file your file wont be uploaded.

IT Dept 10-27-2006 05:33 AM

PHP Max Post Size : 8.00 MB
PHP Maximum Upload Size : 2.00 MB
My MP3 file : 4.00 MB
Max Filesize for this extension: 20.00 MB

I still can not upload, plz help me!

iran.gs 10-27-2006 01:25 PM

Installed how ever if u can supply bottons for them would be great and also my attachment now is so wide, when pops up for uploads

iran.gs 10-27-2006 01:26 PM

yes me too large size i get error but small file works fine

PossumX 12-02-2006 08:50 PM

I got this hack to install and work for uploads, however, when I attempt to play the inline WMV file, nothing happens. The Media Player is displayed, with controls, yet when play is hit....nothing.

Any ideas?

It is also fouling up the post display (signature outside of the postbit)

Clicked UNINSTALL .... never mind

khaleegi 01-09-2007 05:24 PM

Hello

Thanks for this mod, i was looking for such on.
I did the installation easily, but the real player files not played

Any suggestions?

Regards

cfspinner 01-09-2007 09:49 PM

Installed and clicked install. Works perfect so far :) It would be nice if it could be turned on or off based on the forum or if the user had the ability to choose if they want to display inline or as attachment.


All times are GMT. The time now is 02:17 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.01270 seconds
  • Memory Usage 1,841KB
  • 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
  • (1)bbcode_html_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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