Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/17/2014 in all areas

  1. Did you purchase it through Blesta, or through a reseller? If Blesta, login to your account and re-issue the license. If a reseller, contact the reseller and tell them they need to re-issue your license.
    2 points
  2. 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
  3. flangefrog

    Format Tax Rate

    Please format the tax rate on display. Instead of displaying GST (15.0000%) I want it to display GST (15%). Probably something like floatval($tax_rate) would be fine, I can't think of a reason anybody would need extra 0s. As a workaround I've changed the database column to be an INT.
    1 point
  4. flangefrog

    Cloudscale Backup

    This vQmod allows you to select Cloudscale as a region in your S3 backup settings. Cloudscale is a New Zealand based cloud storage company which is compatible with the S3 API. Blesta 3.3.0+ cloudscale.xml
    1 point
  5. Cody

    Release 3.3.1

    Version 3.3.1 is now available. You can download it in the Client Area. This is a patch release that corrects issues with 3.3.0. Patching Blesta See Patching Blesta in the User Manual for instructions. Release Notes See Blesta Core - Version 3.3.1. See all Change Logs.
    1 point
  6. A few other applications have a nifty ability to automatically merge template changes which are required for Blesta updates. It would be awesome if Blesta had something similar. I use XenForo and their implentation of such a system is amazing and has always worked flawlessly for me through several major updates with lots of template changes even. https://xenforo.com/community/threads/template-merging-and-history.48846/
    1 point
  7. Both are sent in the email, the HTML *and* text versions. If the customers email client can display HTML, then it uses the HTML version. If it doesn't support HTML, then it uses the text version. Both should always be updated when editing an email template.
    1 point
  8. Thanks! Sounds good. I'll give it a shot...
    1 point
  9. Sorry for the delay ... open the file /app/models/packages.php search (line 1428) order(array('period' => "ASC", 'term' => "ASC"))->fetchAll(); replace with order(array('period' => "DESC", 'term' => "DESC"))->fetchAll(); you are done .. NOTE :every upgrade of blesta you should do the same .
    1 point
  10. Tyson

    $0 Invoice Not Paid

    Yes, looks like this has been a bug since v3.3.0-b1. Fixed for v3.3.2 in CORE-1482.
    1 point
  11. Paul

    Format Tax Rate

    CORE-1483
    1 point
  12. The "English" Language File is always replaced with a new one on every upgrade, but you can replace the original with one of your support manager pro, blesta backups (if you have done before the upgrade)
    1 point
  13. PauloV

    Blesta Developer

    If you want I can send you a Quote for programing the Payment Module
    1 point
  14. to correct the issue just change the "width" in .nav1 from 48% to auto or remove the attribute of with /*width = 48% ;*/
    1 point
  15. Yes Client account > Account Actions > View mail log > Resend. Not yet Naja7Host I believe is doing one.
    1 point
  16. That's not true. <?php $this->Form->fieldPassword("field_name", array('value' => "field_value")); ?>
    1 point
×
×
  • Create New...