Page 1 of 1

Color to soundboard buttons

PostPosted: Sat Feb 17, 2018 2:12 am
by zenithbsolutions
Hi,

I have a requirement to apply different colors to different buttons on the sound board.

Kindly help me where I can find the sound board path / location where I can edit the php / CSS to set colors to the buttons.


All your thoughts are appreciated.

Thank you

Re: Color to soundboard buttons

PostPosted: Sat Feb 17, 2018 7:17 am
by blackbird2306
This is not currently a feature. The place where you have to look is "vdc_soundboard_display.php" in agc directory.
You can achieve this with some minor changes:
change vdc_soundboard_display.php at about line 220 right after <head> tag:
Code: Select all
echo "<head>\n";
// add this next line with external link to custom.css
echo '<link rel="stylesheet" type="text/css" href="css/custom.css" />';

then change custom.css in "agc/css/" directory with your preferred colors. All "buttons" (td not button at all) have their own ids. An example:
this is in soundboard edit menu:
FILENAME: 1. from-unknown-caller
RANK: 1
HORZ: 1
type: button
FONT: 6BI
level: 1

change custom.css (to find out the id of every button look with browser (e.g. Chrome) F12, Ctrl+Shift+ C (select element) at bottom Sample Soundboard View in Soundboard edit menu):
Code: Select all
#TOP---from-unknown-caller---1---1---1---1 {background-color: blue;}


This is not the best solution, but the easiest and shortest way!

Re: Color to soundboard buttons

PostPosted: Sat Feb 17, 2018 10:34 am
by zenithbsolutions
Awesome! Thank you so much for the Solution.