Branding copy to another install

Status
Not open for further replies.

Andyd358

Member
Aug 23, 2018
260
9
18
55
UK
Hi

Ive chnaged the look pf our pbx was long winded and a lot of trial and erro doing it. like an idiot i didnt document what i did. I was wondeing if there was a way to extract that from the current pbx and put in on a new one easily. I did kind of try exporting the content of /var/www/fusionpbx to the new one it shows fine but wont let me login with the newly created credntials. I take it I copied over too much and it saltered someting i should not have. Kind of uing a sledge hammer to crack a nut.
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,498
413
83
The look/branding information is held in the postgrsql table v_default_settings. The category you are interested in is "theme" and the following sub categories are the ones that you most likely changed:

title
footer
favicon
logo
menu_brand_type
menu_brand_text
menu_brand_image_hover
menu_brand_image

background_color
menu_main_text_color
menu_main_background_color_hover
menu_sub_text_color
menu_sub_background_color
menu_sub_background_color_hover
menu_sub_text_color_hover
menu_main_text_color_hover
menu_main_background_color
login_body_background_color

Some of the above may not exist by default you have to add them in order to change the defaults.
 

Newbee

Member
Apr 15, 2020
58
5
8
Florida
also if you got your old server (that has the branding ) Default Settings and themes you should see the changes you made
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,498
413
83
Just to elaborate on what @Newbee has said. If you want to get the information programmatically (for the most commonly changes ones) (more sub-categories are available), the following SQL, should give you what you need from the server where you made the changes:
Code:
select * from v_default_settings
where default_setting_category = 'theme'
and default_setting_subcategory in
(
'title',
'footer',
'favicon',
'logo',
'menu_brand_type',
'menu_brand_text',
'menu_brand_image_hover',
'menu_brand_image',
'background_color',
'menu_main_text_color',
'menu_main_background_color_hover',
'menu_sub_text_color',
'menu_sub_background_color',
'menu_sub_background_color_hover',
'menu_sub_text_color_hover',
'menu_main_text_color_hover',
'menu_main_background_color',
'login_body_background_color'
)
 
  • Like
Reactions: Newbee
Status
Not open for further replies.