Cwp.user branding logo in CWP.Pro systems.

Started by danieliazzz, December 02, 2017, 02:09:14 AM

Previous topic - Next topic

danieliazzz

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. :)

SimeonF

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 ;)

Jason

Quote from: 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 ;)

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

Netino

You can set the 'immutable' attribute, by using:

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

Regards,

Jason


heelrayner

Quote from: 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. :)

has there been any updates here?

Administrator

cwp is already designed so you can change templates, make your own copy and set that new template for users from the admin panel.



AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy


Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp





Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor











Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions

Get Fast Support Here
http://centos-webpanel.com/support-services

paperweight

Quote from: 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.

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

overseer

You have to remove the immutable bit before making changes to the CSS files; and it is better practice to add to custom.css
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:

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.)

fardly83

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



this client panel on port  https://mydomain:2083

overseer

Hover over the broken image icon and see the path the link is looking for the logo.