Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Member
    Join Date
    Aug 2003
    Posts
    38

    Default x3mail theme statsbar

    What do I need to modify to remove the unnecessary information from the x3mail theme statsbar. The preview in WHM shows an image without the unnecessary information.

    What do I need to do to hide that information with this theme?
    Attached Thumbnails Attached Thumbnails x3mail theme statsbar-x3mail.preview.gif   x3mail theme statsbar-x3mail.gif  

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,718
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Brandonm View Post
    What do I need to modify to remove the unnecessary information from the x3mail theme statsbar. The preview in WHM shows an image without the unnecessary information.

    What do I need to do to hide that information with this theme?
    Go into your Branding Editor (in the Preferences section of the cPanel interface) and click "Edit this style" under the style you wish to edit. Then click on Edit HTML Page and proceed to edit index.html.

    Inside index.html you will find either code either resembling this:

    HTML Code:
    <cpanel Branding="include(extended_statsbar.html)">
    or something resembling the below, depending on version of cPanel 11 you are using:

    HTML Code:
    <?cp StatsBar::stat([tr id="statsbar-%" class="row-%"][td width="40\{percent}"][span class="stat-head"]%[/span][br /][div class="progressbarbig"][div class="progress_bar_% progress_barbig_base"][/div][/div][/td][td  align="left" class="truncate" ]%/%[/td][/tr],name,rowtype,item,percent10,count,max) display=diskusage|bandwidthusage,infinitylang=true,rowcounter=mainstats ?>
    If you see the extended_statsbar.html line, you can remove that line and that should remove the stats you want to remove.

    If you only see code like the latter (a StatsBar::stat API2 call with a display= parameter denoting which items to display), then change the display= to only display the items you want to display. Basically it's a list of items, separated with a | character called a pipe.

  3. #3
    Member
    Join Date
    Aug 2003
    Posts
    38

    Default

    Quote Originally Posted by cPanelDavidG View Post
    Go into your Branding Editor (in the Preferences section of the cPanel interface) and click "Edit this style" under the style you wish to edit. Then click on Edit HTML Page and proceed to edit index.html.
    I'm not seeing Preference or Branding Editor. I remember seeing it before somewhere, however I do not see it currently. How do I enable that?

  4. #4
    Member
    Join Date
    Aug 2003
    Posts
    38

    Default

    Found it through WHM search, here is what I see.

    HTML Code:
    	<cpanelif $CPVAR{'mailonlytheme'}>
    	<?cp StatsBar::stat([tr class="row-%"][td width="40\{percent}"][span class="stat-head"]%[/span][br /][div class="progressbar"][div class="progress_bar_% progress_bar_base"][/div][/div][/td][td  align="left" class="truncate" ]%/%[/td][/tr],rowtype,item,percent10,count,max) display=emailac_counts|mailinglists|autoresponders|emailforwarders,infinitylang=true,rowcounter=mainstats ?>
    	</cpanelif>
    	<cpanelif !$CPVAR{'mailonlytheme'}>
    	    <?cp StatsBar::stat([tr class="row-%"][td width="40\{percent}"][span class="stat-head"]%[/span][br /][div class="progressbar"][div class="progress_bar_% progress_bar_base"][/div][/div][/td][td  align="left" class="truncate" ]%/%[/td][/tr],rowtype,item,percent10,count,max) display=emailac_counts|subdomains|parkeddomains|addondomains|ftpaccounts|sqldatabases|mailinglists,infinitylang=true,rowcounter=mainstats ?>
    	</cpanelif>
    	<?cp StatsBar::stat([tr class="row-%"][td width="40\{percent}" align="left"][span class="stat-head"]%[/span][/td][td align="left"  class="truncate"  ]%[/td][/tr],rowtype,item,value) display=hostingpackage|shorthostname|cpanelversion|cpanelrevision|theme|apacheversion|phpversion|mysqlversion|machinetype|operatingsystem|sharedip|dedicatedip|sendmailpath|perlpath|kernelversion,rowcounter=mainstats ?>             				  
    	<cpanelif $CPFLAGS{'pro'}>
    	<tr class="row-<?cp StatsBar::rowcounter(%,rowtype) rowcounter=mainstats ?>"><td width="40%" align="left"><span class="stat-head"><cpanel langprint="cPanelPro"></span></td><td class="truncate"   align="left"><cpanel include="cpanelpro/version"></td></tr>
    	</cpanelif>
    So shouldn't it already hide the unnecessary information according to the cpanelif statements?

  5. #5
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,718
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Brandonm View Post
    Found it through WHM search, here is what I see.

    HTML Code:
    	<cpanelif $CPVAR{'mailonlytheme'}>
    	<?cp StatsBar::stat([tr class="row-%"][td width="40\{percent}"][span class="stat-head"]%[/span][br /][div class="progressbar"][div class="progress_bar_% progress_bar_base"][/div][/div][/td][td  align="left" class="truncate" ]%/%[/td][/tr],rowtype,item,percent10,count,max) display=emailac_counts|mailinglists|autoresponders|emailforwarders,infinitylang=true,rowcounter=mainstats ?>
    	</cpanelif>
    	<cpanelif !$CPVAR{'mailonlytheme'}>
    	    <?cp StatsBar::stat([tr class="row-%"][td width="40\{percent}"][span class="stat-head"]%[/span][br /][div class="progressbar"][div class="progress_bar_% progress_bar_base"][/div][/div][/td][td  align="left" class="truncate" ]%/%[/td][/tr],rowtype,item,percent10,count,max) display=emailac_counts|subdomains|parkeddomains|addondomains|ftpaccounts|sqldatabases|mailinglists,infinitylang=true,rowcounter=mainstats ?>
    	</cpanelif>
    	<?cp StatsBar::stat([tr class="row-%"][td width="40\{percent}" align="left"][span class="stat-head"]%[/span][/td][td align="left"  class="truncate"  ]%[/td][/tr],rowtype,item,value) display=hostingpackage|shorthostname|cpanelversion|cpanelrevision|theme|apacheversion|phpversion|mysqlversion|machinetype|operatingsystem|sharedip|dedicatedip|sendmailpath|perlpath|kernelversion,rowcounter=mainstats ?>             				  
    	<cpanelif $CPFLAGS{'pro'}>
    	<tr class="row-<?cp StatsBar::rowcounter(%,rowtype) rowcounter=mainstats ?>"><td width="40%" align="left"><span class="stat-head"><cpanel langprint="cPanelPro"></span></td><td class="truncate"   align="left"><cpanel include="cpanelpro/version"></td></tr>
    	</cpanelif>
    So shouldn't it already hide the unnecessary information according to the cpanelif statements?
    The first two cpanelif statements test if it is a mail-only theme (xmail or x3mail) and displays less information if you are using a mail-only theme. The third cpanelif statement tests if you have enabled the cPanel Pro plug-in and displays additional information if it does.

    Since you are likely using x3, the test for if it is a mail-only theme returns false.

  6. #6
    Member
    Join Date
    Aug 2003
    Posts
    38

    Default

    I have the theme set as 'x3mail' not 'x3'. I would like to note that the normal 'xmail' works as it should. For your reference I have "cPanel 11.24.5-R37127 - WHM 11.24.2 - X 3.9".

  7. #7
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,718
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Brandonm View Post
    I have the theme set as 'x3mail' not 'x3'. I would like to note that the normal 'xmail' works as it should. For your reference I have "cPanel 11.24.5-R37127 - WHM 11.24.2 - X 3.9".
    Sorry about that, you are correct.

    The x3mail theme on my test server works as expected for the sidebar. Try running /scripts/upcp --force (or go to WHM -> cPanel -> Upgrade to Latest Version and check the checkbox) and let me know if the issue persists after doing this.

  8. #8
    Member
    Join Date
    Aug 2003
    Posts
    38

    Default

    I ran the force update last night to try to see if it would change the theme files at all but it didn't.

  9. #9
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,718
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Brandonm View Post
    I ran the force update last night to try to see if it would change the theme files at all but it didn't.
    I just switched my test server to RELEASE and am now able to replicate this issue. This issue also arises in CURRENT. However, since this issue doesn't appear in EDGE, it appears that this issue has been resolved but the appropriate update has not yet propagated to all builds.

  10. #10
    Member
    Join Date
    Aug 2003
    Posts
    38

    Default

    Is there some way for me to get the new theme files without having to use EDGE? I'd rather not use EDGE in a production environment.

    Could I, update to EDGE > download the theme files for x3mail > install the theme as a custom theme > revert back to RELEASE?

  11. #11
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,718
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Brandonm View Post
    Is there some way for me to get the new theme files without having to use EDGE? I'd rather not use EDGE in a production environment.

    Could I, update to EDGE > download the theme files for x3mail > install the theme as a custom theme > revert back to RELEASE?
    I have just sent you a Private Message, please read.

Similar Threads & Tags
Similar threads

  1. StatsBar::stat JSON Error
    By higherlogic in forum cPanel Developers
    Replies: 1
    Last Post: 07-15-2010, 07:33 PM
  2. MySQL connections fail using x3 theme, works with x theme - why??
    By oshs in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 02-17-2008, 06:47 PM
  3. trouble with x3mail skinning
    By PPNSteve in forum Themes and Branding
    Replies: 3
    Last Post: 01-17-2008, 06:55 PM
  4. Trouble switching from x Theme to x2 Theme
    By charliep in forum Themes and Branding
    Replies: 2
    Last Post: 11-25-2006, 04:11 AM
  5. Squirrelmail theme + NeoMail Theme
    By it_ideas in forum Themes and Branding
    Replies: 4
    Last Post: 05-03-2003, 05:37 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube