December 12th, 2011
I have dates in the following format (yyyymmdd, 18751104, 19140722) and i need normal date (yyyy mm dd, 1875 11 04, 1914 07 22). 1. first you can use strtotime and date functions (this will fail with dates before the Unix epoch at the start of 1970. ) <?php // prints 1995 Oct 12 echo [...]
Posted in programming | No Comments »
November 18th, 2011
I hate this task: “Delete default value of an input text on click“. Many times i use code like this <input type=”text” value=”email@email.com” name=”email” onblur=”if (this.value == ”) {this.value = ‘email@email.com’;}” onfocus=”if (this.value == ‘email@email.com’) {this.value = ”;}” /> Forget about this! I would recommend you try HTML5 solution below which uses the placeholder attribut. [...]
Posted in programming | 1 Comment »
November 16th, 2011
How do you heat your home? If that is wood pellets – you are about to visit the right place www.greenpellets.nl. The goal of the project is to provide Dutch people with environmentally friendly and high quality fuel for pocket friendly prices. More to come.
Posted in mediaart, programming, projects, Shop | 1 Comment »
September 6th, 2011
Information database editing. Get a randomly generated 32 character string such as: (“138gbd53j984jne63v573jn9dk47sm29″) Add that random string to the new password. (“password138gbd53j984jne63v573jn9dk47sm29″) Perform an MD5 hash of the combined string. (“2be69387c187cf45059a83f577c7eb06″) Add this string into the _users table in the joomla db followed by a : and the 32 character string. (“2be69387c187cf45059a83f577c7eb06:138gbd53j984jne63v573jn9dk47sm29″) This sets the [...]
Posted in joomla, programming | No Comments »
June 29th, 2011
If your a WordPress user which runs WordPress on a server then you’ll know that each time you install or remove a plugin you need to provide FTP information in order for WordPress to get authorization to add or remove a plugin. But did you know you can get WordPress to remember the FTP information? [...]
Posted in programming, WordPress | 5 Comments »
April 21st, 2011
How to add custom field into subpanel? Belo is example of Contracts subpanel that is showing in Accounts module/detailview. irst thing that needs to be done is define a new field in subpanel definition and make that field point to a class. We are edititing the following file custom/modules/Contracts/metadata/subpanels/ForAccounts.php and adding additional field fot showing [...]
Posted in programming, SugarCRM | 4 Comments »
March 4th, 2011
What is Lorem Ipsum? Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but [...]
Posted in design, programming | 1 Comment »
March 2nd, 2011
Today i get new problem, how to add simple image properties by CSS. On CSS, you don’t simply put HTML attributes into a stylesheet. CSS has its own properties that only occasionally overlap with obsolete HTML attributes. There is no such property as ‘align’ or hspace/vspace in CSS. You are looking for the ‘float’ and [...]
Posted in design, programming | No Comments »
March 1st, 2011
I need capture info from web to my custom SugarCRM module. After some modification i use “Web to lead” script: require_once(‘modules/MyModule/MyModule.php’); if (… we are saving custom Module …) { $myinfo = new MyModule(); $myinfo->phone = $_REQUEST['phone']; $myinfo->fax = $_REQUEST['fax']; $myinfo->email = $_REQUEST['email']; // etc… $myinfo->save(); } // done! i f somebody have better soltion [...]
Posted in programming, SugarCRM | 1 Comment »
January 20th, 2010
Your favourite team is playing today? You want to bet but you are not sure who the winner will really be and what are your chances of winning a bet? Get your answer right now: http://www.freewinnersnow.com. This web site is one of our latest completed tasks. It is a nice and simple web page devoted [...]
Posted in design, programming, projects | No Comments »