
Xarcell
Member-
Posts
14 -
Joined
-
Last visited
About Xarcell

Xarcell's Achievements

Junior Member (1/3)
1
Reputation
-
I have created a custom header & footer for the emails in general settings. I have not touched the custom emails yet. If I go to "clients > client name > send message", the email shows the header & footer. However, with invoices, the header & footer do not appear. the code is entirely different. What am I doing wrong?
-
I there a tutorial on how this can be done? Although, I would want everyone to see events.
-
Is there a way for me to show calendar and it's events on the front end, for user's? I'd like for user's to be able to see the calendar and events & upcoming sales; etc.
-
I'm trying to get a community addon to work. It's NHP CMS Plus. It doesn't come with any documentation or anything. I contacted the person who created it via support ticket(Lee Mason and No Half Pixels) and support has been ultra slow. Anyway, he says the contents of the htaccess.txt in the addon must be added to the root .htaccess. It's contents are: <IfModule mod_rewrite.c> RewriteEngine On Options +FollowSymlinks RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . modules/addons/whmcs_cms_plus/seourls.php [L,QSA] </IfModule> Still, it doesn't work. I removed everything in my root .htaccess except that snippet of code and I still get "ERR_TOO_MANY_REDIRECTS" in Chrome and "The page isn't redirecting properly" in Firefox when I use the addon. Anyone here have any ideas why it isn't working, or possible conflicts in WHMCS, or server misconfiguration that could be causing the problem? I'm positive mod_rewrite is enabled. Thanks.
-
WHMCS 5.3.7 I noticed today after asking a client when he may pay his bill to avoid suspension that he actually did already paid it. I can confirm this via paypal receipt and the invoice number, but shows as unpaid in WHMCS. Then I noticed that there invoices missing altogether(3 in the past year). Any idea as to what caused this and how to fix it?
-
Thanks for the tip, I didn't realize I could do this without editing templates.
-
I was wondering how I would go about adding a prefix to my ticket ID? Say for example, a ticket ID looks like this: #123456 I want it to looks like this: #XP-123456
-
So I'm trying to create a custom order template. Here's what I have so far: I created a vpscustom.php and a vpscustom.tpl. When I visit mydomain.com/vpscustom.php I can see what I've done so far. Inside the tpl, I have this as a test run: <form method="post" action="cart.php?a=add&{if $product.bid}bid={$product.bid}{else}pid={$product.pid}{/if}"> <label>Operating System</label> <select id="configid1" name="configid[1]" onchange="read_configid1()"> <option value="17" mprice="0" aprice="0">Linux Centos 5.7</option> <option value="18" mprice="0" aprice="0">Linux Red Hat Enterprise 5.5</option> <option value="19" mprice="0" aprice="0">Windows 2008 R2 Web 64 bit</option> <option value="20" mprice="0" aprice="0">Windows 2008 R2 Standard 64 bit</option> </select> <div class="ordernowbox"><input type="submit" value="{$LANG.ordernowbutton} »" class="ordernow" /></div> </form> I'm still trying to figure out how to pass the configid[1] value to the url. When I click "order", it takes me to the plain old cart page. Any pointers?
-
NVM, I think I got it figured out.
-
I need some help understanding a little bit better the "prorata billing". Is that a typo? Shouldn't it be "prorate billing"? "Prorata Billing" means the service is prorated correct? As in your not charged for the whole billing cycle when you sign up, only from that date of signup to the "Prorate Date"? What is "Charge Next Month" exactly? I set up prorata billing enabled, with a prorate date of "1", and a charge next month date of "1". I gave a client a $5 promo for signing up. He signed up on 11-18-2012, but still ended up paying $2.87, on a $5 month service. I thought he should have had a $1.87 credit applied? I'm confused about this setup, and would like to get it corrected. My goal is to allow prorating(assuming my definition of what that is is correct), and monthly charge be on the first of every month. Thanks in advance.
-
Nevermind, after some research, and updating some code in some scripts by various members, I managed to make custom error pages. I'll share with you what I have so that others by benefit from it. This can be done in 5 easy steps, with no coding knowledge required. 1.| Create a "error.php" file with this as it's contents: <?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="error.php">Whoops!</a>'; initialiseClientArea($pagetitle,'',$breadcrumbnav); # To assign variables to the template system use the following syntax. # These can then be referenced using {$variablename} in the template. $smartyvalues["variablename"] = $value; # Check login status if ($_SESSION['uid']) { # User is logged in - put any code you like here # Here's an example to get the currently logged in clients first name $result = mysql_query("SELECT firstname FROM tblclients WHERE id=".(int)$_SESSION['uid']); $data = mysql_fetch_array($result); $clientname = $data[0]; $smartyvalues["clientname"] = $clientname; } else { # User is not logged in } # Define the template filename to be used without the .tpl extension $templatefile = "error"; $referer = $HTTP_REFERER; $smarty->assign("refer", $referer); switch($e) { default: $e="404"; break; case '400': $e="400"; break; case '401': $e="401"; break; case '403': $e="403"; break; case '404': $e="404"; break; case '500': $e="500"; break; case '503': $e="503"; break; } $smarty->assign("e", "$e"); outputClientArea($templatefile); ?> 2.| Upload the "error.php" file to your WHMCS "root" directory. 3.| Create a "error.tpl" file with this as it's contents: <div class="page-header"> <div class="styled_title"><h1>Whoops! <small>Sometimes these things happen...</small></h1></div> </div> {if $e==400} <h2>Error 400</h2><p>The server made a bad request. Please try again later. Thank you.</p> {/if} {if $e==401} <h2>Error 401</h2><p>You need authorization to proceed beyond this point. If you forgot your password or username, you'll need to notify my <a href=/contact.php>admin</a>. Thanks</p> {/if} {if $e==403} <h2>Error 403</h2><p>.Permission Denied.<br>I'd love to give you permission, but you see, my owner has requested this specific file is off limits to you. I can even show you the request.</p> {/if} {if $e==404} Referrer: {$refer} <h2>Error 404</h2><p>The file requested does not exist on this server. Perhaps you forgot the filename. Perhaps this was moved, and the <a href={$refer}>referring page</a> should be notified.If you were looking for the order page, that can be found <a href=/order.php>here</a>.</p> {/if} {if $e==500} <h2>Error 500</h2><p>Something has gone wrong with one of my scripts and I'm clueless as to what. Maybe my logs will contain a bit more information.</p> {/if} 4.| Upload the "error.tpl" file to your "template/YOUR-THEME-USED" directory. 5.| Add these lines to your .htaccess file(a hidden file in your WHMCS root): #RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} ErrorDocument 400 /error.php?e=400 ErrorDocument 401 /error.php?e=401 ErrorDocument 403 /error.php?e=403 ErrorDocument 404 /error.php?e=404 ErrorDocument 500 /error.php?e=500 Done. Enjoy!
-
I'm looking for a way to create custom error pages, but I'm not seeing a solution. Anything out there that works and is current(WHMCS 5.1)?
-
WHMCS NHP2012 Theme TWITTER BOOTSTRAP V2.0 - responsive!
Xarcell replied to leemason's topic in Commercial Modules and Addons
The font size needs some work in this theme. I recommend relative units & media queries. You can try out your theme with this tool: http://quirktools.com/screenfly/ I wanted to purchase this theme to keep from having to do it myself, but I think it needs more work. -
I'm new to WHMCS. I'm building a custom template and menu. Is there a way I can create a link that will take the client to his/her cpanel directly from WHMCS? I've researched it, but I cannot find anything that is clear on the subject. Thanks.