The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to modify Theme from RVBlue to X3 for all accounts?

Discussion in 'User Experience' started by eurorocco, Apr 30, 2014.

  1. eurorocco

    eurorocco Well-Known Member

    Joined:
    Jun 23, 2003
    Messages:
    99
    Likes Received:
    0
    Trophy Points:
    6
    Hi!

    I had discontinued RV Skins from all my servers (!), but one I left for the passionate about it, but its Webmail access is not working today. Does display the email account functions but no Horde, Squirrelmail or Roundcube.

    I can ssh and even perl... How can I modify all acounts from RVBlue to X3? Is there one text file I could modify to make this happen or a command-line to do it one by one and then iterate through a script passing it the username?

    Thanks!

    ER

    PD
    This is not a Cpanel issue, but an RVSkin issue, but your help is greatly appreciated!
     
  2. eurorocco

    eurorocco Well-Known Member

    Joined:
    Jun 23, 2003
    Messages:
    99
    Likes Received:
    0
    Trophy Points:
    6
    Perl script to do this in
    /root/setallrvskintox3

    <code>
    #!/usr/local/bin/perl

    $themefrom = "rvblue";
    $themeto = "x3";

    @users = glob("/var/cpanel/users/*");

    foreach $user (@users){
    print "replace RS=$themefrom RS=$themeto -- $user\n";
    }

    print "/scripts/updateuserdomains\n";
    </code>

    chmod u+x /root/setallrvskintox3
    /root/setallrvskintox3 >/root/fixthemes
    more /root/fixthemes

    If you like the output that should look like...

    replace RS=rvblue RS=x3 -- /var/cpanel/users/<user1>
    replace RS=rvblue RS=x3 -- /var/cpanel/users/<user2>
    replace RS=rvblue RS=x3 -- /var/cpanel/users/<user3>
    /scripts/updateuserdomains

    Then run at your own risk with...

    . /root/fixthemes

    Thanks!

    ER
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Assuming all of your accounts use packages, you could simply edit the theme associated with the package via:

    "WHM Home » Packages » Edit a Package"

    Thank you.
     
  4. electric

    electric Well-Known Member

    Joined:
    Nov 5, 2001
    Messages:
    697
    Likes Received:
    1
    Trophy Points:
    18
    Another option:

    Go to:

    WHM Home »Multi Account Functions »Modify/Upgrade Multiple Accounts

    Then scroll down about halfway and on the right-side you'll see a selection section where you can easily choose all accounts for a specific reseller, etc... (This part is not easy to find if you have a lot of accounts and you will have to scroll up/down to find it. I have no idea why cpanel makes this so hard to find...)

    Once you have selected the desired accounts, then scroll to the bottom of the page, choose the new cpanel theme, and submit.
     
Loading...

Share This Page