Recent Topics

1 Jul 27, 2007 23:44    

Introduction:

This plugin lets you attach songs to your posts. You can get it to display the ID3 tag information, attach a media player, and attach a download link to the song. It scans your media directory (customizable) for music and displays the results in a drop down list. It is highly customizable.

Moved / Preview / Download / More Information: [url=http://www.balupton.com/blogs/b2evo?title=song_attacher_plugin]here.[/url]

2 Aug 14, 2007 03:32

There seems to be some quirk in firefox. When I click the song attacher button the scrollbar adjusts like the song attacher information is coming up but when I scroll down it is nowhere to be seen. It works fine in IE6. Any advice on how to get it to display in Firefox? I'd rather never have to load IE again. :) thanks!

3 Aug 14, 2007 03:40

Do you get any javascript errors? And if you don't mind, you could pm me the admin details so I can check it out first hand, would save time.

4 Aug 23, 2007 01:46

When I press the ATTACH button after choosing the file, and criteria, nothing happens. ehh? Using Firefox, on a MAC

5 Aug 23, 2007 07:28

Ok, well my room mate just bought a mac today! so can test that out. Which version of firefox, b2evo and the plugin are you running, and on the page, can you go in firefox tools->error console, and then do whatever, and see if anything pops up. Cheers.

6 Aug 23, 2007 07:36

balupton wrote:

Ok, well my room mate just bought a mac today! so can test that out. Which version of firefox, b2evo and the plugin are you running, and on the page, can you go in firefox tools->error console, and then do whatever, and see if anything pops up. Cheers.

Firefox 2

b2evo 1.9.3

Song Attacher 1.0.0.1-beta

Error: textarea_wrap_selection is not defined
Source File: http://levelgroundky.com/plugins/song_attacher_plugin/includes/common/renderers/admin.js
Line: 51

8 Sep 08, 2007 22:26

Hey, I was just wondering how you change the font/border color of the attacher in the blog post? I checked through all of the css files I could find, but nothing worked. Thanks!

9 Sep 09, 2007 11:55

/song_attacher_plugin/includes/basic.css is where you would stick your custom css.

10 Sep 09, 2007 23:18

Yeah I tried that, but it didn't work... Can I just edit the colors already there or do I have to add something else... Because just changing the color of this doesn't change the font color of the artist, album, etc. tags; they're still just grey :

p.renderer_plugin.song_attacher span.song_attacher_download a {
	text-decoration:none;
	color:#F7932A;
}
p.renderer_plugin.song_attacher span.song_attacher_download a:hover {
	color:#F7932A;
	text-decoration:underline;
}

And how do I change the color of the upper/lower border?

Oh, and I was also wondering if you could change the media player that the plugin in uses, something similar to dewplayer perhaps (http://forums.b2evolution.net/viewtopic.php?p=42812), so that you can pause, fastforward, etc. Instead of just play and stop.

Thanks.

11 Sep 10, 2007 03:55

Could you attach a link to the blog/page that uses the song attacher so I can have a fiddle with the css?

For the media player bit, you can customize the media player it uses, for more info http://musicplayer.sourceforge.net/

I will make customization easier in the next release :)

12 Sep 13, 2007 00:26

Here's my blog:

http://www.scrvtch.com/blog/

Ah, thank you very much; I'll look into it.

EDIT:

Ah, well I figured out how to change the media player but it looks like the artist/album/song information can't be used in the actual player and it looks like it doesn't even have fast forward / rewind buttons anyway, so I'll just wait until you come out with a new version. XP

Thanks for your help!

13 Sep 16, 2007 05:20

I've noticed that changes to some of the files don't take effect unless you uninstall/reinstall the plugin from the backoffice. (There may be better way to do it, but I'm fairly dumb.)

I had switched the buttonized flash player for a more robust one, changed the width/height strings in the php file...but it didn't change until after it was reinstalled.

I don't know anything about b2evo really, does it copy the code for installed plugins to a file somewhere?

btw, balupton. Love your plugins. They're going to come in handy both for my site, and for another site I'm setting up for someone :D

14 Sep 16, 2007 14:01

GPMoD Baka-chan, b2evo backoffice -> tools -> delete cache :)

15 Sep 16, 2007 19:18

Ack! Thanks, much better. xD

16 Oct 02, 2007 01:13

Hi Balupton:

Tried your Plugin today and up till now it works fine.
My only doubt or question is where or if I can change or lacalize to spanish the Titles Artist, Album, Title) that show in the actual post.

As allways, great work!

17 Oct 02, 2007 01:34

change line 503 of _song_attacher.plugin.php to

			# Add to result
			$translate = array(
				'artist'	=> 'whatever artist is in spanish',
				'title'		=> 'whatever title is in spanish'
			);
			$tags_html .=
				'<span class="'.$this->classname.'_tag_name">'.ucwords($translate[$tag]).':</span> '.
				'<span class="'.$this->classname.'_tag_value">'.$value.'</span>'.
				'<br />'."\r\n";

And in that function just change any other seeable text like

'<br /><span class="'.$this->classname.'_download">Download this song <a href="'.$song_url.'" title="Song Link">here.</a></span>'."\r\n";

to spanish as well

18 Oct 02, 2007 01:46

I'm getting this error:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in .../xyz/plugins/song_attacher_plugin/_song_attacher.plugin.php on line 503

The code i've included is:


         # Add to result
         $translate = array(
            'artist''Artista',
            'title''Título'
         );
         $tags_html .=
            '<span class="'.$this->classname.'_tag_name">'.ucwords($translate[$tag]).':</span> '.
            '<span class="'.$this->classname.'_tag_value">'.$value.'</span>'.
            '<br />'."\r\n";

19 Oct 02, 2007 01:55


         # Add to result
         $translate = array(
            'artist' => 'Artista',
            'title' => 'Título'
         );
         $tags_html .=
            '<span class="'.$this->classname.'_tag_name">'.ucwords($translate[$tag]).':</span> '.
            '<span class="'.$this->classname.'_tag_value">'.$value.'</span>'.
            '<br />'."\r\n"; 

There needs to be that => between the english and spanish

20 Oct 02, 2007 02:00

Thanks for the explanation. But now I'm getting this error:

Notice: Undefined index: album in /public_html/xxx/plugins/song_attacher_plugin/_song_attacher.plugin.php on line 507

21 Oct 02, 2007 02:07

Yeah I didn't do everything for you, you will need to stick in translations for all the tags you are using in there. So album is one of them.

22 Oct 02, 2007 02:08

Also, the results look like this:

Artista: XYZ
: Carnegie Recital
Título: La Ronde des Lutins
Descargue esta pieza aquí.
(Player Icon here)

I want them to be:

Artista: XyZ
Album: Carnegie Recital
Título: La Ronde des Lutins
Descargue esta pieza aquí.
(Player Icon here)

23 Oct 02, 2007 02:10

So all I would need is to add?

'album' => 'Album',

25 Oct 02, 2007 02:12

I'll answer myself: Yes

Thank you Balupton; all is perfect now.

26 Oct 02, 2007 02:13

Both answers were written simultaneously...

Thank You again!

27 Oct 07, 2007 01:13

Hey, I'm just posting as a follow-up to my css colour troubles I was having earlier. After messing around, I realized that I could not change the css within basic.css because the names of the classes in the .css file were different than those being referenced by the plugin.

For example,

in the css file, the classes were named like this:

p.renderer_plugin.song_attacher span.song_attacher_download a {
	text-decoration:none;
	color:#F7932A;

when they should have been named this:

p.renderer_plugin.song_attacher_plugin span.song_attacher_plugin_download a {
	text-decoration:none;
	color:#F7932A;

(Notice the extra plugin within the names.)

After changing this in the css, the color changes were implemented in my actual posts. I'm not sure if that's a problem with the plugin or if I messed it up somehow, but now it's fixed. XP

28 Nov 12, 2007 13:26

hi, could you send your .css file here. i'm missing the song_attacher_plugin classes in basic.css, all there is is p.renderer_plugin. strange..

PAT

29 Jan 13, 2008 01:48

Sadly, it appears this plugin is not 2.x compatible. The the official release of 2.3, any plans for a code update? I was sad to discover that it doesn't work, because it was exactly what I was looking for. :(

30 Aug 18, 2008 05:11

Just thought I'd bump this to the top to see if there was going to be a new release.
Thanks


Form is loading...