Jump to content

Clebson

Member
  • Posts

    6
  • Joined

  • Last visited

About Clebson

Clebson's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. Hii, I have created some custom fields in my WHMCS to be displayed on the customer's registration page. One of these fields the client must inform the single document of the person. I want to know some way to check if there is already a record in the database according to what the customer inform in the field. How can I do this for a custom field? I noticed he does this check for the email. I know it can be done via HOOK, I even tried to create but I could not, I do not know exactly how it works. Does anyone have an example or do know of any simple way to do this verification? I want to do the verification using the "onblur" event in the input field of the registration page. Thank you very much in advance!
  2. Hello guys! In an earlier version of WHMCS, 7.0 was displayed on the admin home page the total of yield day, month, and year. It was displayed by the following code from homepage.tpl file: {if $viewincometotals} <div id="incometotals" class="contentbox" style="font-size:18px;"><a href="transactions.php"><img src="images/icons/transactions.png" align="absmiddle" border="0"> <b>{$_ADMINLANG.billing.income}</b></a> <img src="images/loading.gif" align="absmiddle" /> {$_ADMINLANG.global.loading}</div> <br /> {/if} In this new version it is no longer available, I tried to use this code in the new template but it did not work. Does anyone know how the DB query was done to display this data?
  3. Good afternoon everyone! I need to create a custom page for registration in whmcs. Since I have no file access code "register.php" can not copy. I know it's possible to create a page using the API (http://docs.whmcs.com/API:Add_Client). It is the first time will use the API, can anyone help me create a .php page equal to register.php? Thank you very much in advance!
  4. Hello I saw on some sites that have WHMCS, some hook that checks for custom fields with the database. Works the same way that the email field, ie, it checks if the email already exists in the database. With only difference that the check occurs after typing the characters in the field. Someone has some hook as an example? Thank you in advance who can help me.
  5. Good afternoon everyone! Does anyone know a way to check if there is already a record for the custom fields for a new account in the client area? I created a script here, it works perfectly out of WHMCS, I could not make it work in the whmcs templates. file: [b]connectdb.php [/b] <?php header("Content-Type: text/html; charset=ISO-8859-1"); $db_host = 'localhost'; $db_username = 'db_username'; $db_password = 'db_password'; $db_name = 'db_name'; $con = mysql_connect($db_host, $db_username, $db_password); mysql_select_db($db_name, $con); $sql = " SELECT * FROM `tblcustomfieldsvalues` WHERE `value` = '{$_POST['value']}' "; $q = mysql_query( $sql );//exec if( mysql_num_rows( $q ) > 0 )//error echo 'Sorry! The value informaod already exists.'; else echo '.'; ?> file: [b]index.html[/b] <script type="text/javascript"> $(function(){ $(".value").blur( function(){ var value = $(".value").val(); $.post('connectdb.php',{value: value},function(data){ if( data!='.' ){ alert(data); $(".value").val('');} jAlert('Text'Title'); });});}); </script> <form method="post"> <label>VAT: <input type="text" id="value" /></label> </form> Does anyone know any other way to do this? Thx.
  6. See my Client Area below: Image 1: http://dl.dropbox.com/u/40718161/IMG-1.png Image 2: http://dl.dropbox.com/u/40718161/IMG-2.png Image 3: http://dl.dropbox.com/u/40718161/IMG-3.png Image 4: http://dl.dropbox.com/u/40718161/IMG-4.png
×
×
  • 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