vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Show Thread Enhancements - Embedded MP3 Attachment Player (https://vborg.vbsupport.ru/showthread.php?t=240671)

Gamertype 04-23-2010 12:29 AM

Is there a way to limit what usergroups can upload mp3's as attachments?

ericgtr 04-23-2010 01:10 AM

Quote:

Originally Posted by Gamertype (Post 2025673)
Is there a way to limit what usergroups can upload mp3's as attachments?

Sure, Admin CP > Attachments > Attachment Permissions.

Orakk 04-23-2010 07:07 AM

Quote:

Originally Posted by AURFSCAN (Post 2025595)
Originally Posted by junaid

I have many attachment types like zip, tar etc
Is it possible to set player view only MP3 attachment type?


to have the player only visible for mp3.

Code:



<!-- Embed Player -->

<vb:if condition="$attachment[attachmentextension] == mp3">

<embed type="application/x-shockwave-flash" src="http://www.google.com/reader/ui/3247397568-audio-player.swf?audioUrl=attachment.php?{vb:raw session.sessionurl}attachmentid={vb:raw attachment.attachmentid}&amp;d={vb:raw attachment.dateline}" width="400" height="27" allowscriptaccess="never" quality="best" bgcolor="#ffffff" wmode="window" flashvars="playerMode=embedded" />
</vb:if>

<!-- /Embed Player -->


Thank you muchly, worked a treat. :up:

junaid 04-23-2010 10:13 AM

Quote:

Originally Posted by AURFSCAN (Post 2025595)
Originally Posted by junaid

I have many attachment types like zip, tar etc
Is it possible to set player view only MP3 attachment type?


to have the player only visible for mp3.

Code:



<!-- Embed Player -->

<vb:if condition="$attachment[attachmentextension] == mp3">

<embed type="application/x-shockwave-flash" src="http://www.google.com/reader/ui/3247397568-audio-player.swf?audioUrl=attachment.php?{vb:raw session.sessionurl}attachmentid={vb:raw attachment.attachmentid}&amp;d={vb:raw attachment.dateline}" width="400" height="27" allowscriptaccess="never" quality="best" bgcolor="#ffffff" wmode="window" flashvars="playerMode=embedded" />
</vb:if>

<!-- /Embed Player -->


Thank you very much
it work fine

Orakk 04-23-2010 12:04 PM

To get this to work in IE code below is working for us.

Code:

<!-- Embed Player -->
<vb:if condition="$attachment[attachmentextension] == mp3">
  <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"  align="middle" height="27" width="400">
    <param name="quality" value="best">
    <param name="allowScriptAccess" value="never">
    <param name="wmode" value="window">
    <param name="movie"  value="http://www.google.com/reader/ui/3247397568-audio-player.swf?audioUrl=attachment.php?{vb:raw  session.sessionurl}attachmentid={vb:raw  attachment.attachmentid}&amp;d={vb:raw attachment.dateline}"  flashvars="playerMode=embedded" />
  <embed type="application/x-shockwave-flash"  src="http://www.google.com/reader/ui/3247397568-audio-player.swf?audioUrl=attachment.php?{vb:raw  session.sessionurl}attachmentid={vb:raw  attachment.attachmentid}&amp;d={vb:raw attachment.dateline}"  width="400" height="27" allowscriptaccess="never" quality="best"  bgcolor="#ffffff" wmode="window" flashvars="playerMode=embedded" />
  </object>
</vb:if>
<!-- /Embed Player -->


syrus.xl 04-23-2010 01:55 PM

You have an error in your coding. The wmode parameter should be set to transparent, not window. Otherwise, any DHTML menus will drop behind the mp3 player.

Quote:

Originally Posted by Orakk (Post 2025915)
To get this to work in IE code below is working for us.

Code:

<!-- Embed Player -->
<vb:if condition="$attachment[attachmentextension] == mp3">
  <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"  align="middle" height="27" width="400">
    <param name="quality" value="best">
    <param name="allowScriptAccess" value="never">
    <param name="wmode" value="window">
    <param name="movie"  value="http://www.google.com/reader/ui/3247397568-audio-player.swf?audioUrl=attachment.php?{vb:raw  session.sessionurl}attachmentid={vb:raw  attachment.attachmentid}&amp;d={vb:raw attachment.dateline}"  flashvars="playerMode=embedded" />
  <embed type="application/x-shockwave-flash"  src="http://www.google.com/reader/ui/3247397568-audio-player.swf?audioUrl=attachment.php?{vb:raw  session.sessionurl}attachmentid={vb:raw  attachment.attachmentid}&amp;d={vb:raw attachment.dateline}"  width="400" height="27" allowscriptaccess="never" quality="best"  bgcolor="#ffffff" wmode="window" flashvars="playerMode=embedded" />
  </object>
</vb:if>
<!-- /Embed Player -->



Gamertype 04-27-2010 05:37 PM

Quote:

Originally Posted by ericgtr (Post 2025691)
Sure, Admin CP > Attachments > Attachment Permissions.

I have my mods/admins set to a 50MB upload and VB keeps failing? Any reason why?

goran424 04-27-2010 06:26 PM

Quote:

Originally Posted by Gamertype (Post 2028211)
I have my mods/admins set to a 50MB upload and VB keeps failing? Any reason why?

Same reason as me as mentioned at previous page of this thread.

After contacting server host and telling them about the problem, they fixed it at their end. I suggest you try the same.

Here is the live demo, works perfect now:

http://ghostriders-thailand.com/foru...ts&p=69#post69

Orakk 04-28-2010 12:40 AM

Quote:

Originally Posted by syrus.xl (Post 2025971)
You have an error in your coding. The wmode parameter should be set to transparent, not window. Otherwise, any DHTML menus will drop behind the mp3 player.

Thank you, will fix.

Cheers. :up:

mactelesis 04-29-2010 01:06 PM

Where is "postbit_attachment" located?


All times are GMT. The time now is 11:59 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.01304 seconds
  • Memory Usage 1,750KB
  • 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
  • (4)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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