|
May
10
2013
Mar
23
2013
Tweet: Oeh. Lastig plekje uitzoeken :-) http://t.co/H8Lsq…Posted by Robert Verspuy in Tweets, tags: twitter
Feb
25
2013
Tweet: Zonne grote sneeuwbal jonguh! http://t.co/4qHedJHE…Posted by Robert Verspuy in Tweets, tags: twitter
Feb
20
2013
Disable richtext editor in WHMCSPosted by Robert Verspuy in Software, WHMCS, tags: hack, htaccess, rewriteengine, richtext, whmcsSince a few months I’ve been using WHMCS for all invoicing for my company Exa-Omicron. I’ve altered the standard email templates, but there was one thing that would not work very nicely and the richtext editor is causing problems. I wanted to use foreach loops in the email templates to loop over all the invoice items. This way the customer can see all the invoice line items in the email instead of opening the PDF. By using a table for the invoice items, I made the email look almost exactly the same as the invoice PDF. So for example:
But when reopening the email template, the richtext editor does not understand the Smarty template elements like foreach. The richtext editor tries to correct the HTML and moves the foreach lines outside of the <table> tags. but this makes the whole email template unusable, because it will not generate correct HTML anymore. My html knowledge is good enough to write templates without a richtext editor, so I searched for an option to disable the richtext editor completely. Unfortunately I could not find such an option in WHMCS. So I added a apache rewriteengine rule in the .htaccess file to forward the webrequest from the browser to always disable the richtext editor.
So when the browser requests the url /admin/configemailtemplates.php and the query string only holds a action = edit and a numeric id, then the browser is redirected to the exactl same URI, but with a &noeditor=1 added to the query string. And this solved all my ‘richtext editor tries to correct html’ issues
Feb
19
2013
Tweet: Finally somebody shows what really happens in the…Posted by Robert Verspuy in Tweets, tags: twitter
Feb
08
2013
Using Ansible to setup complex networkingPosted by Robert Verspuy in Linux, Software, tags: ansible, centos, configurationWhen you need to configure multiple servers it’s always good to look at some configuration management software like Puppet of Chef. But there is a new kid in town and it looks promissing. I’ve played around with Ansible a bit to setup a complex network configration on 5 blade servers running a CentOS minimal. I mentioned this last weekend to Fabian Arrotin last weekend at FOSDEM and he told me to put that info online. So here it is!
Feb
02
2013
Tweet: We zijn er! #fosdem @mvdvlies @mhzijlstra @adebree…Posted by Robert Verspuy in Tweets, tags: twitter
Feb
01
2013
Tweet: Uitzicht in hotel in Brussel. Morgen #fosdem http:…Posted by Robert Verspuy in Tweets, tags: twitter
Dec
17
2012
Tweet: Voor iedereen die komende dagen geen kaartje van o…Posted by Robert Verspuy in Tweets, tags: twitterVoor iedereen die komende dagen geen kaartje van ons ontvangt: Prettige #Kerstdagen en #Gelukkig #Nieuwjaar! http://t.co/lM6NHhAG
|







Entries (RSS)