vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Add-On Releases - Brando Amp3 Mp3 Attachment Player (https://vborg.vbsupport.ru/showthread.php?t=242738)

brandondrury 05-17-2010 10:00 PM

Brando Amp3 Mp3 Attachment Player
 
1 Attachment(s)
This is an update of https://vborg.vbsupport.ru/showthread.php?t=161567 which now works with the new variable system in vB4. I've tested it in 4.0.3 and it works just like the old player did in vB3.

I don't have time to figure out how products work so this is a simple template hack. Maybe someone can improve it.

There is another vb4 mp3 attachment plugin that relies on player from Google which is no longer available. You host the player on your server so there is no worrying about Google moving or deleting the file.

Instructions:
  1. Unzip Brando-Mp3-Attachment.zip, paste the "audio" folder in your forumroot/clientscripts folder.
  2. Open up postbit_attachment template
  3. Paste the code from brando-mp3.txt at the very top of the template

Brandon

TimberFloorAu 05-17-2010 11:24 PM

1. have you got permission to reuse this hack ?
2. any demo
3. any images

brandondrury 05-17-2010 11:28 PM

Quote:

1. have you got permission to reuse this hack ?
Nope. I guess they can remove it if it's against TOS. I just figured I'd take 5 minutes and pass on what numerous people have asked for. I had to swap out the variables myself. I figured I could save people some time.

Quote:

2. any demo
3. any images
I have no time for this. The code works. Maybe another person can pretty up this thread if they really want to. Sorry, I'm just insanely busy.

Brandon

your24hourstore 05-18-2010 12:36 AM

odd place for it :>

oh i see its for inline playing of mp3 or something

AURFSCAN 05-18-2010 06:45 AM

good work thx

sweetguy2004 05-18-2010 10:39 AM

thanks alot nice job!

AURFSCAN 05-18-2010 06:29 PM

1 Attachment(s)
:up:


100% perfect :D

AURFSCAN 05-18-2010 08:46 PM

The added bold code is whats needed to show the player only for an mp3 file and to not display the player to guests.


Code:


<!-- Embed Player -->
<vb:if condition="$show['member']">
<vb:if condition="$attachment[attachmentextension] == mp3">

<script src="./clientscript/audio/audio-player.js" language="JavaScript"></script>

<script src="./clientscript/audio/audio-player.js" language="JavaScript"></script>

<object style="vertical-align: middle;" id="./attachment.php?{vb:raw session.sessionurl}attachmentid={vb:raw attachment.attachmentid}&amp;d={vb:raw attachment.dateline}" width="290" height="24" data="./clientscript/audio/player.swf" type="application/x-shockwave-flash">
<param value="./clientscript/audio/player.swf" name="movie"/>

<param value="playerID=1&soundFile=./attachment.php?{vb:raw session.sessionurl}attachmentid={vb:raw attachment.attachmentid}&amp;d={vb:raw attachment.dateline}" name="FlashVars"/><param value="high" name="quality"/>

<param value="false" name="menu"/>
<param value="transparent" name="wmode"/>
</object>
</vb:if></vb:if>

<!-- /Embed Player -->


rootsxrocks 06-06-2010 08:54 PM

Fantastic This Make being an admin worth it . I have wanted this for years now for wavs ogg and that weird foprmat on my phone.

rootsxrocks 06-06-2010 08:57 PM

marked and nominated thank you for the effort


All times are GMT. The time now is 12:29 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.01378 seconds
  • Memory Usage 1,737KB
  • 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_code_printable
  • (2)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
  • (10)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