Search This Blog

Monday, October 1, 2012

Chrome Browser Hack Working best

Just ad your class inside the edia screen code.

@media screen and (-webkit-min-device-pixel-ratio:0)
{
.myClass
{
margin: 10px;
}
}


For more information checkout our official website.

Monday, August 20, 2012

Display Post by its category in wordpress

<ul>
<?php
global $post;
$args = array( 'numberposts' => 1000, 'offset'=> 0, 'category_name'=> 'Blog Posts' );
$myposts = get_posts( $args );
foreach( $myposts as $post ) :    setup_postdata($post); ?>
    <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endforeach; ?>
</ul>

For more information checkout our official website.

Friday, August 17, 2012

Session Start & Close in PHP

Put this code on all the pages in admin for start a session....

<?php

session_start();
if(!isset($_SESSION['login_user'])){
    header("Location:../admin/index.php");
}

?>

use this code to unset or destroy the session..

unset($_SESSION['login_user']);

For more information checkout our official website.



Friday, July 13, 2012

Flying Twitter Bird on Your Website Best Working



<script
src="http://bloggerblogwidgets.googlecode.com/files/way2blogging.org-tripleflap.js"
 type="text/javascript"></script>
<script type="text/javascript">
 var twitterAccount = "niravpanchal29";
tripleflapInit(); </script>

For more information checkout our official website. http://www.shreejiinfotek.com/

Friday, June 15, 2012

Footer Code for sitemap in magento

<div style="float: left; width: 87%;"><ul>
<?php
 $h3h3=Mage::getModel('catalog/category')->getCollection();
foreach($h3h3 as $cat){
   
$cata=Mage::getModel('catalog/category')->load($cat->getEntityId());
if($cat->getEntityId() != 1 && $cat->getEntityId() != 2){
        echo "<li><a href='".$cata->getUrl()."'>".$cata->getName()."</a></li>";
}
}
?>
 </ul>

For more information checkout our official website.

Thursday, May 31, 2012

Validation for Phone number

<script language="javascript">
    <!--
        function initValidation()
        {
            var objForm = document.forms["contactus"];
            objForm.fname.required = 1;
            objForm.fname.regexp =/\w*$/;

            objForm.phone.required = 1;
            objForm.phone.regexp = /^\d+([\.]\d\d)?$/;

            objForm.email.required = 1;
            objForm.email.regexp = "JSVAL_RX_EMAIL";
        }
    //-->
    </script>

For more information checkout our official website.

Wednesday, May 23, 2012

Display Products on Home page with add to cart button in Magento

Display Products category and products on Home page..

{{block type="catalog/product_list" category_id="3" name="home.catalog.product.list" alias="product_homepage" template="catalog/product/mylist.phtml"}}

For more information checkout our official website.