Change bgcolor param?

pztrick - March 26, 2009 - 05:19
Project:SWF Tools
Version:6.x-2.x-dev
Component:SWF Tools
Category:support request
Priority:minor
Assigned:Unassigned
Status:active
Description

Hey,
I am wondering how I can change the bgcolor for 1pixelout without hard-coding it....
The 1pixelout player was appearing fine--but it starts minimized, and there was a blank white box behind it stretching the same 24x290 dimensions.

I ended up adding this to the swftools.module right before the player object is embedded:
$P['bgcolor'] = "#42424B";

But that isn't an ideal fix, because it will get lose with future updates...

It had been passing #FFFFFF as the param, and I don't know where it was getting that from...?

Thanks.
Patrick

#1

Stuart Greenfield - March 26, 2009 - 07:57

I'm at an internet cafe, so don't have access to the code.

Off the top of my head, I thought all the 1PixelOut coloring features were on its setting page? If they're not I should add them, and maybe I can bring back the FlowPlayer 3 color chooser?

The other place to check is whether the bgcolor parameter is being set by the "master" background value - you can set that on the main SWF Tools settings page.

In either case, I'll double check if these answers aren't right!

#2

Stuart Greenfield - March 29, 2009 - 00:48
Status:active» fixed

Double checked and it's on the setting page. There are text fields for each configurable element, and you use the format 0xRRGGBB. Tested locally and set the background to black with no trouble.

#3

System Message - April 12, 2009 - 00:50
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

#4

sreiser - May 25, 2009 - 20:34

Stuart, I'm having the same issue. Luckily, I've found the solution, it's a parameter name mismatch. SWFTools.module is looking for a parameter of bgcolor, you're calling it bg in 1pixelout.module on line 74. Switching that to bgcolor solves the problem.

#5

sreiser - May 25, 2009 - 20:35
Status:closed» active

Stuart, I'm having the same issue. Luckily, I've found the solution, it's a parameter name mismatch. SWFTools.module is looking for a parameter of bgcolor, you're calling it bg in 1pixelout.module on line 74. Switching that to bgcolor solves the problem.

 
 

Drupal is a registered trademark of Dries Buytaert.