Color to soundboard buttons

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Color to soundboard buttons

Postby zenithbsolutions » Sat Feb 17, 2018 2:12 am

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
zenithbsolutions
 
Posts: 122
Joined: Tue Aug 25, 2015 2:17 am

Re: Color to soundboard buttons

Postby blackbird2306 » Sat Feb 17, 2018 7:17 am

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!
Vicibox 6.0.2 from Vicibox_v.6.0.x86_64-6.0.2.iso | Vicidial 2.12-560a build: 160617-1427 | Asterisk 1.8.32.3
blackbird2306
 
Posts: 409
Joined: Mon Jun 23, 2014 5:31 pm

Re: Color to soundboard buttons

Postby zenithbsolutions » Sat Feb 17, 2018 10:34 am

Awesome! Thank you so much for the Solution.
zenithbsolutions
 
Posts: 122
Joined: Tue Aug 25, 2015 2:17 am


Return to Support

Who is online

Users browsing this forum: No registered users and 74 guests