1 balupton Jul 27, 2007 23:44
3 balupton 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 tugboatstudio 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 balupton 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 tugboatstudio 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
7 balupton Aug 23, 2007 07:45
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].
8 scrvtch 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 balupton Sep 09, 2007 11:55
/song_attacher_plugin/includes/basic.css is where you would stick your custom css.
10 scrvtch 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 balupton 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 scrvtch Sep 13, 2007 00:26
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!
13 gpmod_baka_chan 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 balupton Sep 16, 2007 14:01
GPMoD Baka-chan, b2evo backoffice -> tools -> delete cache :)
15 gpmod_baka_chan Sep 16, 2007 19:18
Ack! Thanks, much better. xD
16 gcasanova 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 balupton 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 gcasanova 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 balupton 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 gcasanova 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 balupton 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 gcasanova 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 gcasanova Oct 02, 2007 02:10
So all I would need is to add?
'album' => 'Album',
24 balupton Oct 02, 2007 02:11
Yep :)
25 gcasanova Oct 02, 2007 02:12
I'll answer myself: Yes
Thank you Balupton; all is perfect now.
26 gcasanova Oct 02, 2007 02:13
Both answers were written simultaneously...
Thank You again!
27 scrvtch 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 perler 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 vivisected 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 alexk 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
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!