Jump to content

Michael

Moderators
  • Posts

    9,522
  • Joined

  • Last visited

  • Days Won

    186

Everything posted by Michael

  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.
  2. Michael

    My Try Haha

    Thanks mate took me a while to get it right though haha.
  3. Michael

    My Try Haha

    Well I've still got a few bits to do. But this is my edit: http://billing.cubicwebs.xxx/ and then later will be moved to https://billing.cubicwebs.com shortly.
  4. Ah Well you know the Support Manager has the Predefined Responses, like that for the backend where you can: - Create categories - Remove Categories. Inside a category: - Add Article - Remove Article - Edit Article Frontend (Like portal module but): - You can see the list of categories like (Ones I have on mine currently) Categories- Account Questions - Blesta - Domain - cPanel - Webhosting - Litespeed - CloudLinux - Managed VPS Most Popular Articles /dev/shm is not mounted with the noexec,nosuid? Getting the error in ConfigServer Firewall?/dev/shm is not mounted with the noexec,nosuid options... IMPORTANT: PayPal / 2Checkout Subscriptions If you have elected to utilize Paypal or 2Checkout's Subscription option to pay your... Block IP ranges on CSF? OK, so you wish to block a IP range from your server using cPanel/WHM.We've always recommended... SSYN Cookies (DDos Protection) As you may know DDos protection is a must and very expensive, therefore we can only suggest the... Reward Points Exchange So you want to find out how to exchange your reward points into client credit? Here you can see... When viewing the Article: Knowledgebase > Managed VPS > Article Title Article Title Article Content.
  5. For the knowledgebase?
  6. There's no way to do it unless you can code, because I thought it was simple to do since there's code you can use from the support manager but I'm a bit stuck. @Paul, @Cody and @Tyson might do one for us if there's a high demand, because they want it to be the best Billing system, which is now, but some of us like yourself, dave and myself really need / want one lol. It would cost them over $3,000 to do one. However if we was to pay for ModulesGarden (Rip off Polish developers) would cost $600 - $900.
  7. Not at the moment Clare I was going to get a developer to do it but they was going to charge $600 - $900 for it. And I'm trying to do one now by editing the support tickets but it's not going well atm cause I don't know what I'm doing lol, maybe @Paul, @Cody and @Tyson might since I'm not the only one in need of one..
  8. It's not yet, but it's expensive to get custom modules. Last night:
  9. Haha it's funny the Android S is funny as-well
  10. Haha asked her to marry you yet mate
  11. Michael

    Xenforo

    and for the best right Paul
  12. I don't advertise my section, it is on the site but the google bot just indexes them and because people search the keywords and I get loads of visitors using it. Some customers check it to help them manage their VPS because they feel independent, but they can always contact us since all our services are managed.
  13. Michael

    Xenforo

    It's because VB is rubbish, outdated and wont get far, well I believe so, I was talking to Paul and it was a choice between xenforo or IPB and because XF development went to a halt when VB did a lawsuit against them. The url will probably be /forums when the site goes live.
  14. Just wondering how many other users have active knowledgebase / FAQ sections? Within about 3 hours:
  15. Yes and after it will search it like clicking enter.
  16. But that's not where you can say what your looking for. If I wanted a client, I knew his name, I'd click that and say the name it's searched it instantly.
  17. No it doesn't aha, that's like saying they have access to the other websites, mobile apps & forums.. http://cubicwebs.com.clearwebstats.com/ so Google has access to that website?
  18. You know some sites which you can click on a button and you can use your microphone (Laptop, Phone) to talk and it will recognize it.. Well I believe this would be a good feature request for the future.
  19. At least I know I'm not the only one aha
  20. Michael

    Xenforo

    The forums is the old forums until V3 is released... and IB has mucked all jelsoft's work up yep I agree.
  21. Michael

    Xenforo

    it's not in the Beta section, this is anything goes section. And it wont be a beta forum when V3 is released... PS: VBulletin is rubbish look at VB4 and VB5 good day to you. haha
  22. On my current layout, I have WH and it's built with their template system so it's all built with their custom page code, then it links to a whatever.tpl. On that with the script I had to pay for, I can then display the prices for each product which changes with the currency. All I have to put is: {$plan5_monthly|replace:'GBP':''|replace:'USD':''|replace:'AUD':''|replace:'BRL':''|replace:'CAD':''|replace:'EUR':''|replace:'INR':'<br />'|replace:'JPY':''|replace:'NOK':''|replace:'RUB':''|replace:'TRY':''} Feel free to check it at: http://cbic.ws/blestav3only
  23. Michael

    Xenforo

    Anyone who's a Xenforo user, are you excited like me for v1.2? It looks so fantastic with everything they keep showing us I want it now lol.
  24. yeah it just has this when I hover over it: https://IPaddress:port/ Would you like access to the billing area?
  25. Got my new domain to add to my portfolio magicserver.pw

    1. John
    2. MemoryX2
    3. Michael

      Michael

      Aha thanks guys didn't know you can comment on here.

×
×
  • Create New...