ZenphotoCMS Forum
Custom colors not being saved for flvplayer - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html)
+--- Thread: Custom colors not being saved for flvplayer (/thread-5900.html)



Custom colors not being saved for flvplayer - hobbes - 28-09-2009

I'm trying to change the custom colors for flvplayer in 1.2.6, but it's not being saved. I suspect there is a permission issue somewhere causing this, but I don't know where the color values are being saved. I can't find a database table for them, so I guess there's a file somewhere.

Does anyone know what file/directory should be writable to save the custom colors?

Cheers,




Custom colors not being saved for flvplayer - acrylian - 28-09-2009

The colors are saved in the options table.




Custom colors not being saved for flvplayer - hobbes - 28-09-2009

Thanks. I guess I didn't look hard enough.

It seems that the player is getting the values from the database, but the values are in the wrong format. They should be in [i]0x[/i]FFFFFF format, rather than [i]#[/i]FFFFFF format:

http://developer.longtailvideo.com/trac/wiki/Flashvars3#Thecolors

If I edit the database with the correct format, the player changes the colors fine, but not with the current format. I'm using 1.2.6 and player v3, by the way.

Also, I think there's a typo in "flvplayer.php" on line 151 that prevents the "frontcolor" loading:

so.addVariable("frontcolor","'.getOption('flv_player_frontkcolor').'");

Is that "k" an error in "'flv_player_frontkcolor'?

Thanks,
Richard




Custom colors not being saved for flvplayer - acrylian - 28-09-2009

Thanks you are right actually, it is the wrong. Funny that no one ever noticed that since it must be there since, well, a long time.. Also thanks for the typo find. We will correct this in the nightly build. Note: The nightly and so the next 1.2.7 release will drop support for flv player v3.




Custom colors not being saved for flvplayer - acrylian - 29-09-2009

Both issues will be fixed in tonight's nightly. The color hex format was actually alright, there were just some quotes gone missing.




Custom colors not being saved for flvplayer - hobbes - 29-09-2009

Great.

Thanks for your work on zenphoto.