2 vggren Aug 14, 2007 03:32
![](http://www.gravatar.com/avatar/df19e418aea5a5c189f650484f22e1ab?size=80&default=https%3A%2F%2Fforums.b2evolution.net%2Fmedia%2Fshared%2Fglobal%2Favatars%2Fdefault_avatar_unknown.jpg%3Fmtime%3D1659823855)
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.
When I press the ATTACH button after choosing the file, and criteria, nothing happens. ehh? Using Firefox, on a MAC
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.
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
Hrmm, I thought 1.9.3 had that function, upgrading to b2evo 1.10 will fix this, I won't bother making a fix, as there is a push for 1.10 [url=http://b2evolution.net/news/2007/08/05/1_10_upgrade_now]here[/url].
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!
/song_attacher_plugin/includes/basic.css is where you would stick your custom css.
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.
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 :)
Here's my 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!
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
GPMoD Baka-chan, b2evo backoffice -> tools -> delete cache :)
Ack! Thanks, much better. xD
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!
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
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";
# 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
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
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.
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)
So all I would need is to add?
'album' => 'Album',
Yep :)
I'll answer myself: Yes
Thank you Balupton; all is perfect now.
Both answers were written simultaneously...
Thank You again!
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
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
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. :(
Just thought I'd bump this to the top to see if there was going to be a new release.
Thanks
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!