This topic is locked
[SOLVED]

 Help adding additional icons to a Diagram

4/13/2017 11:26:50 AM
PHPRunner General questions
R
ringlis1 author

Hello,
I want to add the red and blue man to my diagram. The images are already included with the package.
This is the default code:

// You can create custom buttons. To do this uncomment the following lines.

// For each button specify the image source, width and height in parameter $this->settings["image_source"].

//$this->settings["image_source"] = array (

//array("image"=>"images/pict1.png","width"=>50, "height"=>100),

//array("image"=>"images/pict2.png","width"=>50, "height"=>100)

//);


the blue_man.gif is the button/icon I want to add. I guess I am not exactly sure what goes in the [image_source"] field.
This is the code I tried and tried several variations, but, cannot seem to get it to work:

// You can create custom buttons. To do this uncomment the following lines.

For each button specify the image source, width and height in parameter $this->settings["blue_man.gif"].

$this->settings["red_man.gif"] = array (

array("image"=>"images/blue_man.gif","width"=>50, "height"=>100),

array("image"=>"images/red_man.gif","width"=>50, "height"=>100)

);


Thank you in advance for your help!

R
ringlis1 author 4/16/2017

I was able to figure it out.

$this->settings["image_source"] = array (

array("image"=>"images/red_man.gif","width"=>50, "height"=>100),

array("image"=>"images/blue_man.gif","width"=>50, "height"=>100)

);


There are two lines that need to be set as FYI

// You can create custom buttons. To do this uncomment the following lines.

// For each button specify the image source, width and height in parameter $this->settings["image_source"].


Since I was following the instructions, it was saying to comment out after the first line, which is where it was not working.