Jump to content

andremcarrano

Retired Forum Member
  • Posts

    21
  • Joined

  • Last visited

About andremcarrano

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

andremcarrano's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. Hi There, I was wondering if there's a way to change the way suspension in Cpanel works.. We use whmcs to manage all of our wordpress installs, so as soon as WHMCS see that there's an non paid invoice, its runs the suspension function from Cpanel. The main problem for us when a account is suspended is that we can't update the website, plugins, wordpress or themes. We are using InfiniteWP to manage all the updates of our websites, Sometime we use iMacro to make some changes in all our clients website. I really need to find a way just to change the suspension method, maybe using only htaccess to limit access to website and admin of wordpress. That way we can still manage to do our updates in ou clients websites, even if its suspended for a while. I've heard of some supensionacct script, how we can make secure changes to change this and not break any of our websites? What is the best way to achieve this with whmcs? Disable suspensionacct script and make a whmcs hook AfterModuleSuspend to uplaod an htaccess file in public_html folder? Hope somebody understand our needs and give some tips to achieve something like that. Thanks Guys
  2. testaccountterm ?? That will fetch from /overriders folder! I want to use the default translation, without creation of /lang/overrides/english.php as this translation is already available in /lang/english.php
  3. That's a good solution for some people. Thanks anyway! But i don't see why i have to /overrides this as its already in my lang files. $_LANG["orderpaymenttermfreeaccount"] = "Conta Grátis"; $_LANG["orderpaymenttermonetime"] = "Uma vez"; $_LANG["orderpaymenttermmonthly"] = "Mensal"; $_LANG["orderpaymenttermquarterly"] = "Trimestral"; $_LANG["orderpaymenttermsemiannually"] = "Semestral"; $_LANG["orderpaymenttermannually"] = "Anual"; $_LANG["orderpaymenttermbiennially"] = "Bianual";
  4. This is a hack, and i don't want to do that way. <td> {if $service.billingcycle == "Free Account"} {$LANG.orderpaymenttermfreeaccount} {elseif $service.billingcycle == "Annually"} {$LANG.orderpaymenttermannually} {else} {$service.billingcycle} {/if} </td> <td>{$service.nextduedate|date_format:"%d/%m/%Y"}</td>
  5. This will not work as this is a query result I need a smart solution to load the language directly from lang/ folder not using any hack
  6. i dont see why this query will change any result. take a look..i want to change active, inactive, free account, monthly to my language loading from the lan the same as clientarea.php?action=products but in homepage thanks
  7. I'm using this code to list services in Client home. But it's not showing translated bylling cycle and correct date format as it should. The clientarea.php?action=products page default from whmcs show the correct info. You to pull the translation for {$service.billingcycle} ? {php} $userid = $this->_tpl_vars['clientsdetails']['id']; $result = mysql_query("SELECT *,tblhosting.id as serviceid FROM tblhosting,tblproducts WHERE userid =$userid AND tblhosting.packageid= tblproducts.id AND tblhosting.domainstatus='Active'"); $services = array(); while ($data = mysql_fetch_array($result)) { array_push($services, $data); } $this->_tpl_vars['services'] = $services; {/php} <div class="table_title"> <h3>Produtos/Serviços</h3> </div> <table class="table table-striped table-framed table-centered no-more-tables"> <thead> <tr> <th>{$LANG.orderproduct}</th> <th>{$LANG.orderprice}</th> <th>{$LANG.orderbillingcycle}</a></th> <th>{$LANG.clientareahostingn extduedate}</th> <th>{$LANG.clientareastatus}</th> <th> </th> </tr> </thead> <tbody> {foreach from=$services item=service} <tr> <td>{$service.name}{if $service.domain}<br /><a href="http://{$service.domain}" target="_blank">{$service.domain}</a>{/if}</td> <td>{$service.amount}</td> <td>{$service.billingcycle}</td> <td>{$service.nextduedate}</td> <td><span class="label {$service.domainstatus}">{$service.domainstatus}</span></td> <td class="textcenter"><form method="post" action="{$smarty.server.PHP_SELF}?action=productdetails"><input type="hidden" name="id" value="{$service.serviceid}" /><input type="submit" value="{$LANG.clientareaviewdetails}" class="btn info" /></form></td> </tr> {foreachelse} <tr> <td colspan="6" class="textcenter">{$LANG.norecordsfound}</td> </tr> {/foreach} </tbody> </table>
  8. I'm about to finish this module in the next weeks. The main goal its make the client access their sites trough whmcs or viceversa, that way they get used to pay the bills. Its like an oAuth between wordpress and whmcs for client, system and support sync. Plus it will have his tickets and bills directly in wordpress. Sync with both sides. Sync Passwords. I think you gonna like this module because make client life and your much easier. Subscribe to this post and stay in touch for the updates. We plan to release in 10/12
  9. I'm making this integration with a lot of features like, suspension of wordpress, if its in a external server. add ons with plugins, dashboard with invoices and tickets, and user sign on. Sing in whmcs, and the user will be automatically redirected to his wp site. if you have interest pm me
  10. Im trying to create a custom client area page to list all products Looking at the documentation, my example above isn't working. I use {$domain} in adm.tpl but don't get any data! It would be better catch using API, any body have a custom page example working for 5.1.2? <?php define("CLIENTAREA",true); //define("FORCESSL",true); # Uncomment to force the page to use https:// require("dbconnect.php"); require("includes/functions.php"); require("includes/clientareafunctions.php"); $pagetitle = $_LANG['clientareatitle']; $breadcrumbnav = '<a href="index.php">'.$_LANG['globalsystemname'].'</a>'; $breadcrumbnav .= ' > <a href="adm.php">ADM</a>'; initialiseClientArea($pagetitle,'',$breadcrumbnav); # Check login status if ($_SESSION['uid']) { # Here's an example to get the currently logged in clients first name $query="SELECT * FROM tblhosting WHERE userid='".$_SESSION['uid']."'"; $result = mysql_query($query) or die('Error, query failed'); while ($data = mysql_fetch_array($result)) { $assignedips = $data['assignedips']; $domain = $data['domain']; } $smartyvalues['assignedips'] = $assignedips; $smartyvalues['domain'] = $domain; $templatefile = "adm"; outputClientArea($templatefile); } else { # User is not logged in outputClientArea(login); } ?> Thanks
  11. There where some problems with includes/additionaldomainfields.php already solved. thanks
  12. I haven't made any modifications in my system and i'm getting a blank page on whmcs chekout cart.php?a=confdomains Version 5.1.2 Everythink was working yesterday. Anybody know what could be wrong?
  13. I'm starting to build some custom modules for whmcs. Actually my need is a module that changes a password of a custom system, when the cpanel password is changed in whmcs. I'm trying to find where i can attach my function to work when a administrator change cpanel pass via whmcs. Also would be cool to find a function to do the same, but with the client area password. , I already searched on docs and forum and didn't find any info. Also would be great a function(while) to fetch all client data from whmcs, and data for cpanel. I appreciate any kind of help and expect to release some free modules in setember.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated