Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/04/2014 in Posts

  1. So you want to make your blesta installation to look like your website? First go to: app/views/client/default/ Make sure you Take a backup of the default folder or do make a new folder called default_backup and copy the files first before editing. upload the folders you need from your website like /css and /images and even /js if you have custom JS. Now go and edit: structure.pdt Here you can see everything which displays the Top / Content / footer. So remove everything except this: <section id="outer_layout"<?php echo ($this->Html->ifSet($outer_class) ? " class=\"" . $this->Html->_($outer_class, true) . "\"" : "");?>> <section class="layout"> <div class="page"> <?php echo $content;?> </div> </section> As that is the middle content Which we want to keep the same of course. Now copy the header from your website. <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>My site Name</title> <meta name="author" content="Blesta" /> <meta name="rating" content="Safe For Kids" /> <link href="http://yoursite.com/css/bootstrap.css" rel="stylesheet"> <link href="http://yoursite.com/css/cubicwebs.css?v=2" rel="stylesheet"> </head> <body> <section id="outer_layout"<?php echo ($this->Html->ifSet($outer_class) ? " class=\"" . $this->Html->_($outer_class, true) . "\"" : "");?>> <section class="layout"> <div class="page"> <?php echo $content;?> </div> </section> Now replace the http://yoursite.com/ of your CSS / JS to: [Remember to leave the external links like google the same] <?php echo $this->view_dir;?> And replace the Title of your design to: <?php echo (($page_title = (isset($page_title) ? $page_title : $this->_($page_title_lang, true, $get_params))) ? $this->Html->_($page_title, true) . " | " : "") . $this->Html->_($system_company->name, true);?> Like: <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><?php echo (($page_title = (isset($page_title) ? $page_title : $this->_($page_title_lang, true, $get_params))) ? $this->Html->_($page_title, true) . " | " : "") . $this->Html->_($system_company->name, true);?></title> <meta name="author" content="Blesta" /> <meta name="rating" content="Safe For Kids" /> <link href="<?php echo $this->view_dir;?>css/bootstrap.css" rel="stylesheet"> <link href="<?php echo $this->view_dir;?>css/cubicwebs.css?v=2" rel="stylesheet"> </head> <body> <section id="outer_layout"<?php echo ($this->Html->ifSet($outer_class) ? " class=\"" . $this->Html->_($outer_class, true) . "\"" : "");?>> <section class="layout"> <div class="page"> <?php echo $content;?> </div> </section> Now that will make the header the same. However we now need to add the final Blesta Header code, just above the </head><body> put the following code: <!--[if IE 9]><link href="<?php echo $this->view_dir;?>css/ie9_css3.css" rel="stylesheet" type="text/css" /><![endif]--> <link href="<?php echo $this->view_dir;?>css/jquery.qtip.css" rel="stylesheet" type="text/css" /> <?php // Theme CSS if (isset($theme_css)) { ?> <link href="<?php $this->Html->_($theme_css);?>" rel="stylesheet" type="text/css" media="screen" /> <?php } ?> <?php echo $this->Javascript->getFiles("head");?> <?php echo $this->Html->ifSet($custom_head); ?> <link href="<?php echo $this->view_dir;?>css/jquery.qtip.css" rel="stylesheet" type="text/css" /> <?php // Theme CSS if (isset($theme_css)) { ?> <link href="<?php $this->Html->_($theme_css);?>" rel="stylesheet" type="text/css" media="screen" /> <?php } ?> <?php echo $this->Javascript->getFiles("head");?> <?php echo $this->Html->ifSet($custom_head); ?> Now it's time for the Footer. Paste your footer under the </section> like: <section id="outer_layout"<?php echo ($this->Html->ifSet($outer_class) ? " class=\"" . $this->Html->_($outer_class, true) . "\"" : "");?>> <section class="layout"> <div class="page"> <?php echo $content;?> </div> </section> <div class="footer"> <div class="wrap"> <div class="foot_left"> <b>Our Products</b><br /> </div> <div class="foot_middle"> <b>Blesta</b><br /> </div> <div class="foot_middle"> <b>Legal</b><br /> </div> <div class="foot_right"> <a href="https://cubicwebs.com/" class="footlogo"></a><br /> © Blesta 2013. All Rights Reserved.<br /> </div> </div> </div> Now to add the final Blesta code to the footer, Under your last DIV put the following: <?php echo $this->Javascript->getFiles("body");?> <?php echo $this->Javascript->getInline();?> </section> </body> </html> Like: <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><?php echo (($page_title = (isset($page_title) ? $page_title : $this->_($page_title_lang, true, $get_params))) ? $this->Html->_($page_title, true) . " | " : "") . $this->Html->_($system_company->name, true);?></title> <meta name="author" content="Blesta" /> <meta name="rating" content="Safe For Kids" /> <link href="<?php echo $this->view_dir;?>css/bootstrap.css" rel="stylesheet"> <link href="<?php echo $this->view_dir;?>css/blesta.css?v=2" rel="stylesheet"> link href="<?php echo $this->view_dir;?>css/jquery.qtip.css" rel="stylesheet" type="text/css" /> <?php // Theme CSS if (isset($theme_css)) { ?> <link href="<?php $this->Html->_($theme_css);?>" rel="stylesheet" type="text/css" media="screen" /> <?php } ?> <?php echo $this->Javascript->getFiles("head");?> <?php echo $this->Html->ifSet($custom_head); ?> </head> <body> <section id="outer_layout"<?php echo ($this->Html->ifSet($outer_class) ? " class=\"" . $this->Html->_($outer_class, true) . "\"" : "");?>> <section class="layout"> <div class="page"> <?php echo $content;?> </div> </section> <div class="footer"> <div class="wrap"> <div class="foot_left"> <b>Our Products</b><br /> </div> <div class="foot_middle"> <b>Blesta</b><br /> </div> <div class="foot_middle"> <b>Legal</b><br /> <a href="https://cubicwebs.com/terms-of-service2">Terms & Conditions</a><br /> </div> <div class="foot_right"> <a href="https://cubicwebs.com/" class="footlogo"></a><br /> © Blesta 2013. All Rights Reserved.<br /> </div> </div> </div> <?php echo $this->Javascript->getFiles("body");?> <?php echo $this->Javascript->getInline();?> </section> </body> </html> Now you've got the Main core bit's done. Time to replace the extra bits, to make it easier I've made them sections and you can use what you need. Show Login when not logged in, but show Log out when logged in: <?php if ($this->Html->ifSet($logged_in)) { ?> <a href="<?php echo $this->Html->safe($this->client_uri . "logout/");?>">Logout</a> <?php } else { ?> <a href="<?php echo $this->Html->safe($this->client_uri . "login/");?>">Login</a> <?php } ?> Show different navigation depending whether user is logged in or not: <?php if ($this->Html->ifSet($logged_in)) { ?> <a href="http://billing.yourdomain.com/customers/accounts/">Payment Accounts</a> <a href="http://billing.yourdomain.com/customers/contacts/">Contacts</a> <a href="http://billing.yourdomain.com/customers/plugin/download_manager/client_main/">Downloads</a> <a href="http://billing.yourdomain.com/customers/plugin/support_manager/client_main/">Support</a> <a href="https://billing.yourdomain.com/plugin/order/main/signup/register">Sign up</a> <?php }else{ ?> <a href="https://yourdomain.com/shared-hosting">WebHosting</a> <a href="https://yourdomain.com/resellers">Resellers</a> <a href="https://yourdomain.com/managed-vps">VPS</a> <a href="https://yourdomain.com/shoutcasts">Streaming</a> <a href="https://yourdomain.com/domains">Domains</a> <a href="https://yourdomain.com/about-us">Company</a> <a href="https://billing.yourdomain.com/plugin/order/main/signup/register">Sign up</a> <?php } ?> If you have Multi-company licenses and you want the urls to change per company you will need to use this style URLs: Show the page title: <?php if ($this->Html->ifSet($title)) { $this->Html->_($title); } else { $this->_("AppController.client_structure.default_title"); } ?> Showing Theme Logo: <a href="<?php echo $this->Html->safe($this->base_uri);?>"> <?php if (!empty($theme_logo)) { ?> <img src="<?php $this->Html->_($theme_logo);?>" alt="Logo" /> <?php } else { ?> <img src="<?php echo $this->view_dir;?>images/logo.png" alt="Blesta" /> <?php } ?> </a> Showing your own logo with link to the index: <a href="<?php echo $this->Html->safe($this->base_uri);?>"><img src="urltologo.png"></a> or <a href="<?php echo $this->Html->safe($this->base_uri);?>"><div class="logo"></div></a> or <a href="<?php echo $this->Html->safe($this->base_uri);?>" class="logo"></a> Return to Admin panel message: <?php if ($this->Html->ifSet($staff_as_client)) { ?> <div class="global_note"><?php $this->_("AppController.client_structure.staff_as_client_note", false, $this->Html->ifSet($this->admin_uri) . "clients/logoutasclient/");?></div> <?php } ?> The buttons which say Login / Return to portal etc: <?php if ($this->Html->ifSet($logged_in)) { ?> <span class="button"><a href="<?php echo $this->Html->safe($this->client_uri . "logout/");?>"><?php $this->_("AppController.client_structure.text_logout");?></a></span> <?php } else { ?> <span class="button"><a href="<?php echo $this->Html->safe($this->client_uri . "login/");?>"><?php $this->_("AppController.client_structure.text_login");?></a></span> <?php } ?> <span class="button"><a href="<?php echo $this->Html->safe(WEBDIR);?>"><?php $this->_("AppController.client_structure.text_return_to_portal");?></a></span> Navigation with Link / Link / Link / Link and the bar under the header on default: <section class="outer_nav"> <section class="layout"> <div class="inner_layout"> <nav id="nav"> <ul> <?php $i = 0; $nav_total = count($nav); foreach ($this->Html->ifSet($nav, array()) as $link => $value) { $attributes = array(); $link_attributes = array(); if ($value['active']) $link_attributes['class'][] = "active"; if ($i == 0) $attributes['class'][] = "first"; elseif ($i == $nav_total-1) $attributes['class'][] = "last"; ?> <li<?php echo $this->Html->buildAttributes($attributes);?>> <a href="<?php $this->Html->_($link);?>"<?php echo $this->Html->buildAttributes($link_attributes);?>><?php $this->Html->_($value['name']);?></a> </li> <?php $i++; } unset($i); ?> </ul> </nav> </div> </section> </section> Hope this is a easier tut to follow, I've tried to make it as simple as I can. Good luck customizing your Blesta.
    1 point
  2. to fully support rtl-to-lft alignement , replcae the rtl.css content with this new content the file is located in app/views/clients/bootsrap/css . i hope this can be added to the core file for next release . /**** RTL BOOTSRAP ***/ body { direction: rtl; } th { text-align: right; } .col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 { float: right; } .nav { padding-right: 0; margin-bottom: 0; list-style: none; } .pull-left{ float: right !important; } .pull-right { float: left !important; } .text-left { text-align: right; } .text-right { text-align: left; } .dropdown-menu { float: right; text-align: right; } .dropdown-menu-right { right: auto; left: 0; } .nav-tabs > li { float: right; margin-bottom: -1px; } .pagination li { padding-left : auto; padding-right: 0 ; } .radio, .checkbox{ padding-left : auto; padding-right: 20px ; } .radio input[type=radio], .radio-inline input[type=radio], .checkbox input[type=checkbox], .checkbox-inline input[type=checkbox]{ float: right; margin-left : auto; margin-right: -20px ; } .close{ float: left; } .list-group-item > .badge { float: left; } @media (min-width: 768px) { .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 { float: right; } .navbar-nav { float: right; margin: 0; } .navbar-nav > li { float: right; } .navbar-right .dropdown-menu { right: auto; left: 0; } .navbar-right .dropdown-menu-left { right: 0; left: auto; } .navbar-nav.navbar-right:last-child { ; } .navbar-left { float: right !important; } .navbar-right { float: left !important; } } @media (min-width: 992px) { .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 { float: right; } } @media (min-width: 1200px) { .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 { float: right; } .col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 { float: right; } } /*** RTL STYLE ***/ .header { float: right; } .header .container { padding-right: 0; padding-left: auto; } .logo { float: right; margin: 13px 0 3px 15px; } .title { float: right; } .title .container { padding-right: 0; padding-left: auto; } .nav-content .container { padding-right: 5px; padding-left: auto; } .table-curved tbody > tr > td { border-right: 1px solid transparent; } .table-curved td, .table-curved th { border-right: 1px solid #e1e1e1; border-top: 1px solid #e1e1e1; } .table-curved tbody>tr>td:last-child { border-left: 1px solid #e1e1e1; } .table-curved tbody>tr>td:last-child { border-left: 1px solid #e1e1e1; } .table-curved tbody>tr>td:first-child { border-left: none; } .table-curved th:first-child { border-radius: 0; } div.panel-body div.alert { clear: both; } .col-border { border-right: 1px solid #efefef; border-left: 0px ; } /* Loading */ .loading_container { left: auto; right:0; } /* Order Page */ .well-order .total-due { text-align: left; }
    1 point
  3. Yes if the invoice is for 4k and they have 2k credit it will be applied to the invoice and they pay the rest.
    1 point
  4. 1 point
  5. And I don't think that you should be deprived of that. Which is why I think letting the client choose ought to be a configuration decision.
    1 point
  6. Sam

    Set Client Fields As Required

    Thank you sir. Eagerly awaiting 3.4.
    1 point
  7. Darin

    Selling Reseller?

    If you're a reseller of shared hosting, it's possible that your provider has disabled your ability to sell reseller accounts.
    1 point
  8. Just removed the main htaccess and its fixed! Thanks a lot to all who helped essentially you License (planning on changing my Blesta license to you soon ).
    1 point
  9. I'll +1 that password shouldn't be included by default however you can add it in if you wish. As for the email rotate I'm going to -1 that since a customer will probably go well you didn't email me that before... Yes we did!
    1 point
  10. Just realized in the easyapache exhaustive options PDO was not checked, rebuilding will update soon.
    1 point
  11. Hi you missunderstood, I installed it fine manually, it was on 2 other servers (not mine) that it didn't work on. Just thought Blesta should be made aware if it was a problem across the board as that would put potential customers off
    1 point
  12. Good found , that should be encrypted or removed when loged to database .
    1 point
  13. Yeah you'll have to remove it from the database, we always recommend users to change that when they've installed Blesta to something like ****** [Hidden for security]
    1 point
  14. I found the rotation settings. Here is my concern: The "Welcome Email" sends the user name and password by default. {username} {password} variables. I have changed that to say password: "the password you used when signing up" However, the old email with the user's name and password is being stored in the database in plain text. There is no way to delete it without manually changing the database.
    1 point
  15. Joseph H

    Cron Using Too Much Memory?

    Absolutely .... But just try to check If there were any failed attempts from the logs.
    1 point
  16. I recommend try updating the apps Softaculous > Software > General scripts > Update. Sometimes that causes errors. Also check to ensure you have the requirements for Blesta. Softaculous > Software > Script requirements. Otherwise I recommend contacting Softaculous direct on their forum, their team are very helpful with their software. If you don't own the server try uploading the files manually, if that works then it's a issue with Softaculous.
    1 point
  17. Joseph H

    Cron Using Too Much Memory?

    I had that Issue once, but for me It was caused by backup attempts that always kept on failing. I believe it's not the cron It'self that's causing the High Memory usage rather that the tasks that failed long running tasks. You can try to check If your back ups are running or set to run, disable them and observe You can change php version back and forth just to refresh the Memory usage: (Just a trick i learned during the hard times )
    1 point
  18. i will look to this . EDIT : fixed for next release 1.5.2 .
    1 point
  19. My only suggestion is when editing it remembers what selected so you don't have to keep clicking to ensure it saves correctly.
    1 point
  20. Michael

    Cron Using Too Much Memory?

    Could be a mysql Issue: can you check the logs?
    1 point
  21. Tyson

    Pro Rata And Free Trials

    Pro rata has nothing to do with free trials. It is for setting service dates to renew on a specific day each month, for simplicity.
    1 point
  22. for me is normal . you must increase the memory limit in CSF to 350 or 400Mb . normal just for cronjob , if you have small database with small services/clients/ then this shouldbe some more invistigation .
    1 point
  23. update to v1.5.1 , fixed a bug for the simple pages actions . added more exemple inthe second post .
    1 point
  24. I recommend you use the Universal module to make packages, then use the download manager to link to the products. Aka For people with _____ package only. Then they can download it.
    1 point
  25. For you all We are developping an native APP for Android/iPhone/Windows Mobile to store localy on the device all sencetive data, and we are trying to implement some of the best encryption metods, and also a 2 factor autentication, in the case of the device is stollen The best part, is all local, encrypted and with two factor autentication (we are thinking on Face Recognition + Touch Puzzle or Touch Puzzle + Password, after 10 times rong, the data is destroyed) but in this case we will sell the APP but for a very small fee
    1 point
  26. Paul

    Help Me With My Security? :)

    I'm not a fan of cloud storage of passwords. If the data is compromised, it could potentially be brute forced. It's also possible that a vulnerability in the encryption algorithm might be discovered in the future. I use a password manager, but the data is only stored on my devices. I could be robbed, but A. that's too much work for 1 set of passwords, and B. hackers prefer to work in the comfort of their parents basements.
    1 point
  27. User friendly isn't always a good thing, LastPass is miles ahead of what I see from PasswordBox in terms of security. Have you found any research papers dealing with PasswordBox? If not I wouldn't touch it no matter how pretty it was.
    1 point
×
×
  • Create New...