Archive for the ‘Uncategorized’ Category

Email template optimization tools

Posted: 13th January 2017 by admin in Uncategorized
Tags: , , , ,

  Here is the list of email templates optimization tools. Remember to exclude media query if you have for responsive design. They will not work properly if inline. Some time might face a problem that your responsive design is not working on some of the email clients. The reason might be of character limit. The […]

Joomla Last Database Query     Joomla last database query.As we all know it is a bit difficult to find last executed query in CMS. because there are lots of internal trigger and threads are running. But there is a simple way to find last database query in joomla.     The Query Joomla’s database […]

Php backtrace with proper information.   Php backtrace with proper information. we can use debug_backtrace. But debug_backtrace provide a lots of data which might be not use full for one. So for fetching more accurate information we can use the below code. $e = new Exception; var_dump($e->getTraceAsString());  

select table_name,column_name from information_schema.columns where column_name like ‘%search%’

2012 in review

Posted: 4th March 2014 by urfusion in Uncategorized

The WordPress.com stats helper monkeys prepared a 2012 annual report for this blog . Here’s an excerpt: 600 people reached the top of Mt. Everest in 2012. This blog got about 2,300 views in 2012. If every person who reached the top of Mt. Everest viewed this blog, it would have taken 4 years to […]

2013 in review

Posted: 4th March 2014 by urfusion in Uncategorized

The WordPress.com stats helper monkeys prepared a 2013 annual report for this blog. Here’s an excerpt: A San Francisco cable car holds 60 people. This blog was viewed about 3,400 times in 2013. If it were a cable car, it would take about 57 trips to carry that many people. Click here to see the […]

quick seo (A SEO guide ) In this guide you can learn how increase traffic on your site… search-engine-optimization-starter-guide

mysql queries 1. Add column age and desg in emp_prof table. Mysql> use profile; Mysql>alter table emp_prof add column age int; Mysql> alter table emp_prof add column desg char(10); 2. Update all records of emp_prof.(desg= actn,officer) Mysql> use profile; Mysql>update emp_prof set age=24,desg=’officer’ where emp_id=101; Mysql>update emp_prof set age=21,desg=’actn’ where emp_id=102; (follow above queries for […]

countdown timer in php $dateFormat = “d F Y — g:i a”; $targetDate = $futureDate;//Change the 25 to however many minutes you want to countdown change date in strtotime $actualDate = $date1; $secondsDiff = $targetDate – $actualDate; $remainingDay = floor($secondsDiff/60/60/24); $remainingHour = floor(($secondsDiff-($remainingDay*60*60*24))/60/60); $remainingMinutes = floor(($secondsDiff-($remainingDay*60*60*24)-($remainingHour*60*60))/60); $remainingSeconds = floor(($secondsDiff-($remainingDay*60*60*24)-($remainingHour*60*60))-($remainingMinutes*60)); $actualDateDisplay = date($dateFormat,$actualDate); $targetDateDisplay = date($dateFormat,$targetDate); […]

get product thumb images on view.phtml <?php $_images = Mage::getModel(‘catalog/product’)->load($_product->getId())->getMediaGalleryImages(); ?> <?php if($_images){?> <?php $i=0; foreach($_images as $_image){ $i++; ?> <a href=”#” onclick=”ig_lightbox_show(-1)”> <img src=”<?php echo $this->helper(‘catalog/image’)->init($_product, ‘thumbnail’, $_image->getFile())->resize(108,90); ?>” alt=”<?php echo $this->htmlEscape($_image->getLabel());?>” title=”<?php $this->htmlEscape($_image->getLabel());?>” /> </a><?php } ?> <?php } ?>