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)

goran424 04-30-2010 12:50 AM

Quote:

Originally Posted by mactelesis (Post 2029007)
Where is "postbit_attachment" located?

Go to vBulletin ACP -> Styles & Templates -> Style Manager (choose your current style)

At "All style Options" click that small arrow down and you'll see Template Options -> Edit Templates -> Postbit Templates -> postbit_attachment

milaszewski 04-30-2010 01:31 AM

It's fantastic! Finally!
It works great!

I would love to see it working for inline attachments too! Any ideas?

Senja 05-10-2010 01:56 PM

Attachment Manager - mp3 11000000 bytes

The problem with uploading a file larger than 1MB.
More than 1MB not loaded

AURFSCAN 05-18-2010 06:36 PM

Thanks for this ericgtr, It was good while it lasted but time to give google the flick....

Your google player works perfectly but our ol favourite is back and running sweet :)

https://vborg.vbsupport.ru/showthread.php?t=242738

ericgtr 05-18-2010 06:58 PM

Quote:

Originally Posted by AURFSCAN (Post 2039405)
Thanks for this ericgtr, It was good while it lasted but time to give google the flick....

Your google player works perfectly but our ol favourite is back and running sweet :)

https://vborg.vbsupport.ru/showthread.php?t=242738

I've already updated this mod with a new player once, but have added the player for download.

Alphaforums.com 06-03-2010 12:00 AM

This app is just pure Win. You are the definition of win ericgtr. That's all I have to say (plus that I have tagged, nominated, installed, and 5-Stared).

Note: You may need to activate the mp3 extension in ACP>Attachments for mp3s to be attachable.

baghdad4ever 06-03-2010 06:50 PM

installed

khanh.phanvan 06-05-2010 08:34 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 -->


very good Thank you very much .

BiZiMDiYaR 06-05-2010 12:04 PM

Hi,

Is there a vbulletin player, to be able to add an internet radio station and also to play, even if you switch the pages.. ? So the radio should always be online on the forum etc.. Anyone has an idea ? Should be a good player, which plays on IE, firefox, chrome etc... would be a good one :)


Thanks.

frankiepeppers 06-10-2010 09:45 AM

I have followed instructions to the letter. and no luck with it showing up. any help would be appreciated. my fourms: frankiepeppers.com/forums
UPDATE: GOT IT WORKING

Pashaali 07-02-2010 05:09 AM

everything is done but when im click on play batten song not play , how i fix it . my hosting supported mp3 file http://www.desifunbox.com/thread12.html

SGoogle 07-03-2010 06:01 AM

Tag and Thank you Very Much

DAMINK 07-03-2010 06:24 AM

Got me stumped at the second. I added the code to postbit attachment and edited it to reflect my urland uploaded the attached file to root of my server. I have allowed for .mp3 to be allowed as attachments. I have uploaded a couple and no luck. It just comes up as a link.
http://www.ftw.net.au/fileuploads2/1...34_Capture.png
url is http://www.ftw.net.au/showthread.php...an-test-thread!
Small word of warning. Its an over 18 site i guess. Content can get a bit racey so dont look around just stick to thread at hand :)

AURFSCAN 07-03-2010 06:27 AM

You dont upload file to server, you attach file in post

DAMINK 07-03-2010 06:35 AM

I did attach file to post.
That is the result.

I also uploaded the .swf player my server to play it from there.
Thats the file i pointed at in the postbit hack.

AURFSCAN 07-03-2010 07:47 AM

get rid of everthing you did to install this and use this https://vborg.vbsupport.ru/showthread.php?t=242738

If you still want to use this google one , post the code that you put in your postbit attach template

DAMINK 07-03-2010 08:10 AM

Tried that AURFSCAN and still the same result.
I must be missing something.
I see in that thread you got it going well.
SO just edit specific themes postbit attachement adding the supplied code then upload the player and javascript. Should be a no brainer. Yet its not working for some reason.
I will persist however. This is somethin i really need.

AURFSCAN 07-04-2010 02:27 AM

yep thats it, might be the links in your code are not pointing correctly to the player files ??

post the code your using

DAMINK 07-04-2010 02:35 AM

Certainly mate.
In postbit / postbit_attachment above existing code i placed this.

Code:

<!-- Embed Player -->

<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>

<!-- /Embed Player -->

However that i believe is the code from the link you refferenced?
Cant remember now to be honest. Damn stomach infection is running wild in my house currenly.

AURFSCAN 07-04-2010 03:37 AM

place it below ???

Code:

<li>
        <img class="inlineimg" src="{vb:stylevar imgdir_attach}/{vb:raw attachment.attachmentextension}.gif" alt="{vb:rawphrase file_type_x, {vb:raw attachment.attachmentextension}}" />
        <a href="attachment.php?{vb:raw session.sessionurl}attachmentid={vb:raw attachment.attachmentid}&amp;d={vb:raw attachment.dateline}"<vb:if condition="$show['newwindow']"> target="_blank"</vb:if>>{vb:raw attachment.filename}</a>
({vb:raw attachment.filesize}<vb:if condition="$show['views']">, {vb:rawphrase x_views, {vb:raw attachment.counter}}</vb:if>)
</li>

<br />

<!-- 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 -->


DAMINK 07-04-2010 04:01 AM

Yep tried that too AURFSCAN.
Same result each time.

To clarify. Once this code is put into postbit_attachments then all you need to do is attach a file of that format and it should play yes? Or am i missing something simple?

AURFSCAN 07-04-2010 04:16 AM

thats all there is to it, you did upload these files to the /clientscript/audio folder as we're talking about that mod not this one in this thread

DAMINK 07-04-2010 04:35 AM

Yes i sure did. And double and tripple checked to make sure both files were in the /clientscript/audio folder.
Even tried editing the code thinking it might have been the way it was enterpreting the root directory. ( ./ ../ etc) But no luck either way.
I will continue to try with this, time permitting.

AURFSCAN 07-04-2010 04:51 AM

Well thats me out... you've done everything I'd do.. good luck DAMINK

goran424 07-04-2010 07:30 AM

1 Attachment(s)
Hey Eric,

previously I could play tunes within the post itself, but now pop-up comes with options to open or save which I hate frankly....Can you help me out? Any ideas how to fix this?

http://ghostriders-thailand.com/foru...p-Highway-Hits

hayatt2000 07-05-2010 01:15 AM

1 Attachment(s)
Did not work with me!
See attached image.

I made sure to change YOURSITE.COM to my site, and the swf player has been uploaded.

I have version 4.0.4

Any help? :(

AURFSCAN 07-05-2010 02:55 AM

Im thinking these attachment mp3 players wont work with the latest 4.0.4

these attach players work perfectly with earlier vb 4 versions

DAMINK 07-05-2010 06:23 AM

Yep i come to the same conclusion AURFSCAN.
Wish i knew why though. So much of my forum was based on vides, music and the like being freely posted by my members.
Now i cant do any of that in any capacity.
However dissapointing i remain confident in time such things will be made available in VB.
Sooner the better ;)

hayatt2000 07-05-2010 09:03 AM

I see.
Thanks all, and I do hope to see a version that is compatible with 4.0.4.

Regards.

AURFSCAN 07-05-2010 09:26 AM

you could always use bbcode players inside a post, link to files you upload to your server etc. Ive made bbcodes for both these players and they both work to play mp3's inside a post. search for vb 3 series bbcode players here, they work on 4


this one works on 4 no worries, it uses the same player as the amp3

https://vborg.vbsupport.ru/showthrea...ght=mp3+player

DAMINK 07-05-2010 10:01 AM

Thats working. Although it gave a few errors with that code. Missing some " or so it says.
Anyway it does load up the player now. Only it errors opening the file.
Half way there already though and i assume its something simple now so i will go play with it for a while and see.
Thanks once again AURFSCAN. Appreciated.

SoltanWorld 07-05-2010 10:31 AM

Great I have use this as Mp3 Player BB code too.

Thanks 5star

AURFSCAN 07-05-2010 12:38 PM

1 Attachment(s)
DAMINK make sure the link in between the tags are quoted

for bbcode

DAMINK 07-06-2010 06:42 AM

Quote:

Originally Posted by AURFSCAN (Post 2064779)
DAMINK make sure the link in between the tags are quoted

for bbcode

Yep checked that and that was fine.
I got it working. Actually more accurately it may have been working all along :(
The file size i was using may have been too big. I tried a smaller mp3 and it was fine.
So now i am left wondering where to change the settings to allow for bigger files to play?
I have increased the upload size in attachments. It seems to attach fine just not play fine.
But essentially it is working and for that i cant thank you enough AURFSCAN.
You have been patient with me mate. Cheers. :up:


Using this same theory i was able to get video to play on my forum now also :) YAY!!!!!!!
One happy chappy here. Thanks again all.
And the size limit seems to be attachment related which dont bother me as i have a upload script i made a long time ago for members and they use that.
Now everything is perfect. (Cant wipe the smile off my face guys and gals)

skol 07-06-2010 03:58 PM

You'll probably find your host is restricting you to the size of upload,changing the upload size in VB serves no purpose if your host dosen't allow it.

DAMINK 07-06-2010 07:27 PM

Quote:

Originally Posted by skol (Post 2065352)
You'll probably find your host is restricting you to the size of upload,changing the upload size in VB serves no purpose if your host dosen't allow it.

Nope. I am a reseller and ultimately my own host :) So i know that is not the issue.
I am able to play any size now using my own upload system etc.
Running a charm i have to say now.
Thanks for the bbcode advice everyone and sorry for hijacking this thread :(
However i hope the advice given to me can help others while using this plugin or editing to suit.

dankreiner 07-14-2010 02:39 PM

is there any way that when you finish the first file, it automatically moves on to the second without having to hit play on the next file? the other thought was is there a way that users can download all attachments with a single click?

SoltanWorld 07-16-2010 06:41 AM

just a problem within this : when i have attach sth like pdf files, the player shows too, is there any way to make it to be shown just within mp3 files?

sadiq6210 07-23-2010 04:52 PM

Thanks =) installed

toolmanwill 10-30-2010 06:06 PM

i use this code, works like a charm
Code:

<!-- Embed Player -->
<vb:if condition="$show['member']">
<vb:if condition="$attachment[attachmentextension] == mp3">
<embed type="application/x-shockwave-flash" src="{vb:raw vboptions.bburl}/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>
</vb:if>
<!-- /Embed Player -->

Thanx Eric, i like this...nice and simple!1


All times are GMT. The time now is 04:37 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.01509 seconds
  • Memory Usage 1,832KB
  • 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
  • (5)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
  • (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