Quantcast
Channel: WHMCS Community Forums
Viewing all 13458 articles
Browse latest View live

Using conditional statement in email templates

$
0
0
Hi

I am re-designing the email template and I need to use the following conditional statements in order to deal with Outlook:

<!--[if (mso)|(IE)]><td align="center" width="167" style=" width:167px; padding-right: 0px; padding-left: 0px; padding-top:5px; padding-bottom:5px; border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent;" valign="top"><![endif]-->

However, using such square bracket conditional statement seems to break the email / whmcs.

How can I use such statements?

Is there any way to check clients e-mail & to delete them

$
0
0
Hello,

1. We face (as might all) an issue with clients and their e-mail address which do not exist any more,
so when we send a mass promo e-mail with our WHMCS tool we have about from 5% to 10% email recipients which do not exist,
last days we send a promo mail to 8000+ group list and 450 of them wasn't exist,
some of then are fake or too old free mail accounts or domain do not exist or.....
this issue exist to all of our group mail list so our Domain and IPs is in risk to be marked as spam, blacklisted ...

we try to find if there is any plugin free or paid one into our market which check our clients and cleaning them but there is no any such tool,

2. Is there any fast way to clean delete only the e-marketing mails which we send to our clients and not to delete all e-mail history, our WHMCS e-mail cleanup tool have only one option to delete all.

Thank you in advance
Ody

Resellerclub ssl error

$
0
0
Resellerclub ssl intallation error:

Array
(
[status] => ERROR
[message] => Required parameter missing: csr
)

Hosting Account Welcome Email

$
0
0
whmcs s not sending original Hosting Account Welcome Email template
but when I delete

"Control Panel URL: http://{$service_server_ip}:2082/
Once your domain has propagated, you may also use http://www.{$service_domain}:2082/

Server Information

Server Name: {$service_server_name}
Server IP: {$service_server_ip}"

this part whmcs is able to send email.

Can someone help me ?

Accessing module parameters from hook methods?

$
0
0
Either I've missed it, or the documentation is very sparse, but how do I access module parameters from a hook method?

Liam

Order Link: Preselect subdomain and automatically check plus goto next step

$
0
0
Thank you very much for taking a moment out of your day to look at this.

How do I automatically click the "check" button for the customer when using domain (or subdomain) preselected option on order process?

  1. A user would click a link
  2. A domain check would be passed automatically for them on page example/cart.php?a=add&pid=2&domainoption=subdomain&sld=ab c
  3. They would end up on page example.com/cart.php?a=confproduct&i=1

Essentially, I want the customer to skip the step that they would type in a domain. I don't want to disable domain registration in product details setup admin area though.

  • WHMCS 7.* using stock standard_cart order template.
  • Here is the example link I'm grabbing from the docs: example.com/cart.php?a=add&pid=1&domainoption=subdomain&sld=ab c
  • http://docs.whmcs.com/Linking_to_WHMCS > Order Links > Preselected Domain Option

New Product - Add Ip and SSD with a minimum of 1 and 8

$
0
0
Hi soulmates of WHCS,

I have many different servers around the world. When a client wants a new server, he gets first has to select the type of server (CPU) and GB.

Afterward, he has to select an IP (This should be Mandatory with a minimum of 1) and he should select the SSD Space (This also should be Mandatory, with a minimum of 8 GB.)

How to use WHCS to set this up as an add-on or something like that.

Kind regards,

EckyBrazzz

dologin.php attack

$
0
0
Hi,

I'm having issue with whmcs client login.
My client login has been attack with brute force login.
They send a lot of POST request to dologin.php ("POST /dologin.php HTTP/1.1")

How can i mitigate this attack?



Thank you

smarty error: unknown function "routePath"

$
0
0
I am using Version: 7.1.2, and getting lots of following error in the activity log file.

Smarty Error: Syntax error in template "file:/var/www/vhosts/mydomain.com/httpdocs/accounts/templates/mine/homepage.tpl" on line 22 "<a href="{routePath('announcement-view', $announcement.id, $announcement.urlfriendlytitle)}">{$announcement.t itle}</a>" unknown function "routePath"

anyone have experienced this?

regards,
Nathan

Domain Matrix - Show All

$
0
0
Can you advise how is it possible for us to by default, select all categories to show all pricing in the matrix, when someone visit the domain checker page?

Issues with provisioning module

$
0
0
Hi everyone,
We've been developing our module for our own VPS Control panel, but I having a little bit of issues (To WHMCS guys, please make a more detailed documentation!)

Here's the situation:

Configuration Function:

PHP Code:

function WNCloud_ConfigOptions() {
    return array (
        
// Choose Node button
        
"node" => array(
          
"FriendlyName" => "Node",
            
"Type" => "dropdown",
            
"Options" => "nodo-02",
            
"Description" => "Decide on which node create the VPS",
            
"Default" => "nodo-02",
        ),
        
// Choose Template button
        
"template" => array(
            
"FriendlyName" => "Server Template",
            
"Type" => "dropdown",
            
"Options" => getTemplates(),
            
"Description" => "Define which template should be installed by default",
            
"Default" => "800",
        ),
    );


Crate Account Function:

PHP Code:

function WNCloud_CreateAccount(array $params) {
    global 
$db;
    try {
        
$oid incrementalHash();
        
$status 'SETUP_WAIT';
        
$p '0';
        
$sql $db->prepare('INSERT INTO daemon (order_id, template_id, user, status, pass, root_pw) VALUES (:oid, :t, :user, :status, :pass, :pw)');
        
$sql->bindParam(':oid'$oid);
        
$sql->bindParam(':t'$params['configoption2']);
        
$sql->bindParam(':user'$params['clientsdetails']['email']);
        
$sql->bindParam(':status'$status);
        
$sql->bindParam(':pass'$p);
        
$sql->bindParam(':pw'$params['customfields']['password']);
        
$sql->execute();
    } catch (
Exception $e) {
        
logModuleCall(
        
'WNCloud',
        
__FUNCTION__,
        
$params,
        
$e->getMessage(),
        
$e->getTraceAsString()
        );
        
        return 
$e->getMessage();
    }
    
    return 
'success';



Other functions just like incrementalHash() and getTemplates() are working just fine! but the creation function just loops over and over when I click on the "Create" button from within WHMCS. Am I using the $params array wrong?

Regards

Invoice and Quote Logo overlap?

$
0
0
I'm having an issue with my logo overlapping the first sections on both the quote and invoice.

My site's template should be using the same logo found in my "General Settings": .../templates/zionhost-alt-v7/img/logo.png (referenced in code from quotepdf.tpl below). I have also read through the forums and WHMCS Documentation that I can edit "invoicepdf.tpl" and I assume "quotepdf.tpl" manages the PDFs generated by the "View PDF" in the Quote builder. I should also note that the zionhost template in use does not house any invoice or quote related template.

Code:

# Logo
if (file_exists(ROOTDIR.'/templates/zionhost-alt-v7/img/logo.png')) $pdf->Image(ROOTDIR.'/templates/zionhost-alt-v7/img/logo.png', 20, 25, 75);
elseif (file_exists(ROOTDIR.'/assets/img/logo.jpg')) $pdf->Image(ROOTDIR.'/assets/img/logo.jpg', 20, 25, 75);
else $pdf->Image(ROOTDIR.'/assets/img/placeholder.png', 20, 25, 75);

I have made several attempts to edit quotepdf.tpl, especially the scale value "75", yet when I refresh the page and "View PDF", no changes seem to be made. I've attached a sample quote to better illustrate the overlap, it is very similar in the Invoice PDF as well. I get an eire feeling I'm not in the right file. Can anyone point me in the right direction?
Attached Files

WHMCS is slow

$
0
0
Hey guys,

I have noticed that my WHMCS has become very slow, especially when accessing the Addon Modules page in the admin area. It is taking 1-2 minutes to load some pages. I don't have a ton of clients (less than 10) and my WHMCS is hosted on an Intel Xeon E3-1220 V2 3.1GHZ, Quad Core server with 8GB RAM running cPanel/CloudLinux. I'm guessing it's the database slowing things down or it could be an addon module. Does anyone have any recommendations on how to investigate the issue and figure out what is bogging things down? I'm using WHMCS version 7.2.2 with PHP 5.6.

Changing Title of cart/domain page through hook

$
0
0
Hi!

Can someone advise how can we use hook to change title of a page? We want to change for cart.php?a=add&domain=register.

The code below should work (although it is for all cart pages, although we want it for domain pages only), but don't..

Code:

<?php

function hook_setpagetitle($vars){

if ($vars['filename']=='cart'){
    $pagetitle = "Domain Name Registration";
}

return array("pagetitle" => $pagetitle);
}
add_hook("ClientAreaPage", 1, "hook_setpagetitle");

Offer free SSL for 3 months with web hosting purchase

$
0
0
Hello,

I need to offer free SSL for 3 months+ free domain name + free site builder for 3 months with a web hosting plan purchase. I need these add-ons to be added to the user cart automatically on order web hosting plan.

How can this be done in WHMCS?

I have already configured the web hosting plan, add-ons list!

How to setup special payments

$
0
0
Hello,
I want to set up a first Two Month payment and after that a Semi-Annually or Annually payment.

Is it possible to make two identical products:
1. with the two month payment which is not selectable by the client, and is link to the second identical product with the semy or annually payment?

That means that when select the product the invoice will show two products:
the two month payment
the semy-annual payment.

The two month payments will stop after the first payment is done. The administrator must stop that payment and the semy-annual payment will go through.

Is this possible and how do I set this up?

How to remove sidebar from client area checkout pages

$
0
0
Hello, I am quite new to WHMCS. My client wants to change the visual aspects of the WHMCS to make them more aligned with his website's aesthetic. One of the requirements I have is to remove the sidebar from certain pages (Eg:- Product Details pages, Checkout pages, etc.). By removing I mean to completely do away with them so the rest of the page's content takes up the entirety of the page.

I was able to remove the sidebar from the product details pages by modifying the header.tpl using this great piece of code I found on another thread.


PHP Code:

        {if !$inShoppingCart && ($primarySidebar->hasChildren() || $secondarySidebar->hasChildren()) && $templatefile neq 'clientareaproductdetails'}
            {if 
$primarySidebar->hasChildren()}
                <
div class="col-md-9 pull-md-right">
                    {include 
file="$template/includes/pageheader.tpl" title=$displayTitle desc=$tagline showbreadcrumb=true}
                </
div>
            {/if}
            <
div class="col-md-3 pull-md-left sidebar">
                {include 
file="$template/includes/sidebar.tpl" sidebar=$primarySidebar}
            </
div>
        {/if}
        <!-- 
Container for main page display content -->
        <
div class="{if !$inShoppingCart && ($primarySidebar->hasChildren() || $secondarySidebar->hasChildren()) && $templatefile neq 'clientareaproductdetails'}col-md-9 pull-md-right{else}col-xs-12{/if} main-content">
            {if !
$primarySidebar->hasChildren() && !$showingLoginPage && !$inShoppingCart && $templatefile != 'homepage' || $templatefile eq 'clientareaproductdetails'}
                {include 
file="$template/includes/pageheader.tpl" title=$displayTitle desc=$tagline showbreadcrumb=true}
            {/if} 


Can someone please tell me how to enhance this code to remove the sidebar from the checkout pages as well.
checkout2.jpg

Thanks in advance!
Attached Images

Client service migration

$
0
0
Hi,

I have already have a whmcs system and recently we bought another hosting provider and they use their own whmcs. And I want to move all client-service (clients,order, products) to my whmcs system, Is there any module for that ?

Configurable Options + Extra Option

$
0
0
Hello,

I have setup a list of Configurable Options however I need some advice.

I have created an Item with 2 options.
Is it possible that when select one of the options an next item will automatically will be select as Yes or No

Check the link: http://prntscr.com/fiu82i

In the first option the Shell Access will stay blanco
But when select the next option it will automatically say Yes.

How can I set this up?

PDF invoice version is broken

$
0
0
Greetings,

we tried to download for first time invoice in .pdf in our WHMCS. And it looks like this.
(don't pay attention to placeholder logo in invoices, we are changing it)
I guess there are issues with encoding?
2017-06-12_201221.png
Attached Images
Viewing all 13458 articles
Browse latest View live