Control Web Panel

Developers => Suggestions => Topic started by: danieliazzz on December 02, 2017, 02:09:14 AM

Title: Cwp.user branding logo in CWP.Pro systems.
Post by: danieliazzz on December 02, 2017, 02:09:14 AM
In Update 364, CWP introduced the CWP.users panel.
It would be nice that for CWP.Pro users to have the ability to change the logo of CWP in the CWP.user panel. Of coures we can still include the CWP branding as a footer. :)
Title: Re: Cwp.user branding logo in CWP.Pro systems.
Post by: SimeonF on December 07, 2017, 03:18:41 PM
That's pretty easy right now:

Just replace /usr/local/cwpsrv/var/services/users/cwp_theme/design/img/cwp_logo.png by the logo you'd like ;)
Title: Re: Cwp.user branding logo in CWP.Pro systems.
Post by: Jason on February 25, 2018, 08:59:55 PM
That's pretty easy right now:

Just replace /usr/local/cwpsrv/var/services/users/cwp_theme/design/img/cwp_logo.png by the logo you'd like ;)

Problem with that is the logo is overwritten with every update so unless you write a Cron to copy a new logo every 5 min the logo will just change back to original logo after CWP update.

Also you need to keep in mind the Dark theme's Logo.

But yes would be nice to be able to make this change on a permanent basis for pro users. :D
Title: Re: Cwp.user branding logo in CWP.Pro systems.
Post by: Netino on March 25, 2018, 04:57:43 PM
You can set the 'immutable' attribute, by using:

chattr +i /usr/local/cwpsrv/var/services/users/cwp_theme/design/img/cwp_logo.png

Regards,
Title: Re: Cwp.user branding logo in CWP.Pro systems.
Post by: Jason on March 27, 2018, 09:21:36 AM
Netino!! Thx man that works  ;D
Title: Re: Cwp.user branding logo in CWP.Pro systems.
Post by: heelrayner on February 16, 2019, 01:51:06 AM
In Update 364, CWP introduced the CWP.users panel.
It would be nice that for CWP.Pro users to have the ability to change the logo of CWP in the CWP.user panel. Of coures we can still include the CWP branding as a footer. :)

has there been any updates here?
Title: Re: Cwp.user branding logo in CWP.Pro systems.
Post by: Administrator on February 16, 2019, 08:43:22 PM
cwp is already designed so you can change templates, make your own copy and set that new template for users from the admin panel.
Title: Re: Cwp.user branding logo in CWP.Pro systems.
Post by: paperweight on May 17, 2019, 04:31:14 AM
cwp is already designed so you can change templates, make your own copy and set that new template for users from the admin panel.

But I'm trying to modify the admin panel. Specifically, I want to add my own logo where the "CWP7pro.admin" is displayed in the top-left corner.

But I see it is Ioncube encoded, sao I can only adjust CSS... so instead I want to change the color of that text "CWP7pro.admin" because i have multiple CWPpro installations and I need an easy way to differentiate them.

But when I try to edit /usr/local/cwpsrv/htdocs/admin/design/css/main.css it says I have no permissions.

I am trying to alter the CSS in #header .navbar .navbar-brand .slogan
Title: Re: Customize CSS in admin panel
Post by: overseer on May 15, 2020, 04:23:09 PM
You have to remove the immutable bit before making changes to the CSS files; and it is better practice to add to custom.css
Code: [Select]
sudo chattr -i /usr/local/cwpsrv/htdocs/admin/design/css/custom.css
sudo chmod 644 /usr/local/cwpsrv/htdocs/admin/design/css/custom.css

As mentioned, updates wipe out this file, so you have to call cron after updates to re-inject your code. Put something like this in a script:
Code: [Select]
sudo chattr -i /usr/local/cwpsrv/htdocs/admin/design/css/custom.css
sudo chmod 644 /usr/local/cwpsrv/htdocs/admin/design/css/custom.css
sudo tee -a /usr/local/cwpsrv/htdocs/admin/design/css/custom.css <<'END' > /dev/null

/* CSS CUSTOMIZATIONS */
{ blah }
END
(I am using this to inject the dark_cwp customizations into the CSS.)
Title: Re: Cwp.user branding logo in CWP.Pro systems.
Post by: fardly83 on September 10, 2020, 03:00:46 AM
i've cwp7pro

but my logo in client area always missing i dont know why... last time its work, can you check and update. really sad to look logo doesnt work.

ive attached image

(https://i.ibb.co/Hrx3px5/Capture.png)

this client panel on port  https://mydomain:2083
Title: Re: Cwp.user branding logo in CWP.Pro systems.
Post by: overseer on January 29, 2023, 11:59:16 PM
Hover over the broken image icon and see the path the link is looking for the logo.