My Blog

PHP: Function to calculate if a day is festive

on Mar 06 in PHP posted by admin

MyFesta is a function in PHP to calculate whether a day is festive; this function uses another function myPasqua to check if the day is Easter and Easter Monday. There are preset festive classic in Italy, but you can change these in the vector $feste multiplying the month chosen for the 100 plus the festive day: for example Christmas is 1225.

Read More

VirtueMart: use dropdown to update products in cart list

on Feb 18 in CMS posted , , by admin

With this code I have written you can have in cart list a dropdown box for products  which was chosen in the settings “Use Dropdown Box”; however, remains unchanged for products for which you have chosen a different type of display.

Electronic clothes

on Feb 17 in Varie posted by admin

Use body movement to produce energy is a very interesting concept …   but how can a dress generate electricity?

The secret is to use materials with piezoelectric properties that simply by being bent or deformed generate an electrical charge.

These materials are composed of organic fibers small, flexible and highly resistant (even after intense cycles of stress and torque of 100 minutes, was not found any kind of degradation) and can produce an electricity directly proportional to the intensity of mechanical stress to which they are subjected.

We just have to wait some years to get this technology into our favorite clothes!

Wordpress: excluding pages from the menu under the current language of qTranslate

on Feb 16 in CMS posted , by admin

With this code you can exclude pages of WordPress based on the ID page and the current language.

Requires the installation of wordpress plugin qTranslate.

In the example below it exclude pages with id 2,3,4 for the English language, while excluding only pages 2 and 3 for other languages.

<ul>

<?php if ( qtrans_getLanguage()==”en” )

wp_list_pages(‘exclude=2,3,4&title_li=’);

else

wp_list_pages(‘exclude=2,3&title_li=’);

?>

</ul>

VirtueMart and Joomla

on Feb 06 in CMS posted , by admin

VirtueMart is an open source solution for creating e-commerce sites, it is quite stable and proven and is integrates with the CMS Joomla.

VirtueMart is a highly professional, as has characteristic of a CMS (for eg. Simplified management of content management utilities) with the peculiar characteristics of software for e-commerce (eg shopping cart management, categories, types of Shipping and payments), with ample opportunity for customization and graphics with the addition of multiple components.

Also managed more important features for e-commerce:

VAT on
shipping prices
shipping carriers
attributes and types of products
product categories
opportunity to make purchases in multiple currencies
management fee (in synergy with a payment processor or other computerized method)
multiple payment methods (eg, PayPal or bank transfer)
management of credit cards accepted
customer management
Order Management
product discounts and coupons

Link

Ipad: finally arrived!!

on Jan 27 in Iphone/Ipad posted , by admin

After years of anticipation and rumors has finally come the long-awaited Apple tablet, the Ipad.

The words of Steve Jobs:

“A revolutionary and magical product”.

“This device is much better than a laptop, much better than a phone. You can spin this any way you want to see the entire page is phenomenal. Sottile, you can change the homescreen to whatever you want. What makes this machine is amazing. You can surf the web and is the best web experience that i have ever had. ”

Read More