andremcarrano
Retired Forum Member-
Posts
21 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Hotfixes
Everything posted by andremcarrano
-
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
-
List Services in Client Home with translations
andremcarrano replied to andremcarrano's topic in Developer Corner
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 -
List Services in Client Home with translations
andremcarrano replied to andremcarrano's topic in Developer Corner
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"; -
List Services in Client Home with translations
andremcarrano replied to andremcarrano's topic in Developer Corner
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> -
List Services in Client Home with translations
andremcarrano replied to andremcarrano's topic in Developer Corner
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 -
List Services in Client Home with translations
andremcarrano replied to andremcarrano's topic in Developer Corner
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 -
List Services in Client Home with translations
andremcarrano replied to andremcarrano's topic in Developer Corner
Any help on this? Yes there any support from WHMCS here? -
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>
-
allow clients to view info in Wordpress dashboard?
andremcarrano replied to nutsandbolts's topic in Developer Corner
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 -
allow clients to view info in Wordpress dashboard?
andremcarrano replied to nutsandbolts's topic in Developer Corner
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 -
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
-
WHMCS Desktop App (un-named project) 15 second demo
andremcarrano replied to markehme's topic in Third Party Add-ons
Its very nice, i can help with windows version -
There where some problems with includes/additionaldomainfields.php already solved. thanks
-
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?
-
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.
-
Problems searching .com.br Brazilian domains
andremcarrano replied to andremcarrano's topic in Using WHMCS
And i havent reached daily limit searchs.. -
Problems searching .com.br Brazilian domains
andremcarrano replied to andremcarrano's topic in Using WHMCS
Resultados do WHOIS testing999.com.br % Copyright © Nic.br % The use of the data below is only permitted as described in % full by the terms of use (http://registro.br/termo/en.html), % being prohibited its distribution, comercialization or % reproduction, in particular, to use it for advertising or % any similar purpose. % [iP] 2011-10-14 17:35:32 (BRT -03:00) % Permission denied. For more information, contact abuse@registro.br. % Security and mail abuse issues should also be addressed to % cert.br, http://www.cert.br/, respectivelly to cert@cert.br % and mail-abuse@cert.br % % whois.registro.br accepts only direct match queries. Types % of queries are: domain (.br), ticket, provider, ID, CIDR % block, IP and ASN. -
Hi All.. Iv searched all over the forum and internet and didnt find any answer. When i search for any brazilian domain in client area, it returns me an indisponible message, but all the requested domains are available. All the prices for the TDL are set Checked whoisservers.php and everythink is ok. Tried all i know until now.. If someone could help me with this problem..please let me know Thanks
