Search This Blog

Saturday, December 1, 2012

Dynamic sidebar widget in php page in wordpress Best working Code

Get Dynamic Sidebar widget in wordpress best working code

<?php if ( !function_exists('dynamic_sidebar')
|| !dynamic_sidebar(4) ) : ?>
<?php endif; ?>

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

Saturday, November 10, 2012

Wordpress Blog Uncategorized Post Display Only

<?php if ( have_posts() ) : ?>

                <?php twentyeleven_content_nav( 'nav-above' ); ?>

                <?php /* Start the Loop */ ?>
<?php
global $post;
$args = array( 'numberposts' => 1000, 'offset'=> 0, 'category_name'=> 'Uncategorized, blog' );
$myposts = get_posts( $args );
foreach( $myposts as $post ) :    setup_postdata($post); ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php endforeach; ?>

                   

                <?php twentyeleven_content_nav( 'nav-below' ); ?>

            <?php else : ?>

Monday, November 5, 2012

Javascript for onover image and content change best working

<script type="text/javascript">
function inlarge_image(img)

{
    document.getElementById('text_1').style.display='none';
    document.getElementById('text_2').style.display='none';
    document.getElementById('text_3').style.display='none';
    document.getElementById('text_4').style.display='none';
    document.getElementById('text_5').style.display='none';
    document.getElementById('text_6').style.display='none';
    document.getElementById('large_image').src='images/big_image'+img+'.png';
    document.getElementById('text_'+img).style.display='block';
   

}
</script>

</head>

<body>

<div align="center"><img src="images/big_image1.png" id="large_image" alt="image" border="0" /></div>
<div id="text_1">
    Der Superwächter
</div>
    <a href="#"><img src="images/image.png" onmouseover="inlarge_image(1);" alt="image" border="0" /></a>
</body>
</html>

Google Language Translator best working

change your website in any language without any promotion like goole or any tab above your website. This is just an example you need to convert your website code from your own google account and use only css of my code.


<div style="position: fixed; right: 10px; top: 50px;">

<style>
body    { top:0px !important;}
.goog-te-banner    { display: none !important;}
.goog-te-combo, .goog-te-banner *, .goog-te-ftab *, .goog-te-menu *, .goog-te-menu2 *, .goog-te-balloon * { display: none !important;}
.goog-te-banner-frame    {display: none !important;}
.goog-te-gadget img    { display: none;}
.goog-te-gadget-simple a.goog-te-menu-value span:nth-child(1) { padding: 0 10px 0 0px;}
</style>
<div id="google_translate_element"></div><script type="text/javascript">
function googleTranslateElementInit() {
  new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE, multilanguagePage: true}, 'google_translate_element');
}
</script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
       
</div> 


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

Friday, October 12, 2012

Best Working You tube Video

 You can remove all the play and pause buttons as well as hide the you tube links on video... best working...

<iframe width="430" height="322" src="http://www.youtube.com/embed/wP_CDWFi4pg?modestbranding=1&rel=0&autoplay=1&controls=0" frameborder="0" allowfullscreen></iframe>

For more information checkout our official website.

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.

Display CMs Block in CMS Pages in Magento

 Copy and paste below code to your cms page where you want to show the code. and change the block id of this code.

{{block type="cms/block" block_id="just-sleep-image"}}

For more information checkout our official website.

Display CMS Block on Phtml file in Magento

Paste your html code in cms block and copy below code and paste at the place where you want to display cms block....

<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('detail-right-side')->toHtml(); ?>

For more information checkout our official website.



Tuesday, May 15, 2012

Magento Homesellers 5in1 - FREE

http://www.magentocommerce.com/magento-connect/homesellers-5in1-free.html

http://connect20.magentocommerce.com/community/Magazento_Homesellers

Organize home page in few clicks. Show best sellers,popular,new,most rated products and product reviews.

For more information checkout our official website.


Monday, May 14, 2012

Redirect Product direct to checkout in magento

 Redirect your product direct to the checkout page with one add to cart product.. good working code.....

<form action="<?php echo $this->getUrl('checkout/cart/add')?>" method="post">
<input type="hidden" name="product" value="1" />
<div class="buy-now-btn">

    <input name="qty" type="hidden" class="input-text qty" id="qty" maxlength="12" value="1"</span>
     <a href=""><button class="form-button" onclick="productAddToCartForm.submit()"><img src="<?php echo $this->getSkinUrl('images/buy-now.jpg');?>" alt="Buy now" /></button></a>
    
      <button class="form-button" onclick="productAddToCartForm.submit()"><a href=""><img src="<?php echo $this->getSkinUrl('images/add-to-cart.jpg');?>" alt="Buy now" /></a></button>
      
</div>
</form>

<script type="text/javascript">
    var productAddToCartForm = new VarienForm('product_addtocart_form');
    productAddToCartForm.submit = function() {
        if(this.validator.validate()) {
            this.form.submit();
        }
    }.bind(productAddToCartForm);
</script>

For more information checkout our official website.

Change image on mouse over....

 Change image on mouse over very nice script.. and very easy.....

<img src="images/calendars.jpg" width="115" height="57" name="calendars" alt="Calendars And Tent Calendars"
                onmouseover="document.calendars.src = 'images/calendars-h.jpg';"
                onmouseout="document.calendars.src = 'images/calendars.jpg';"/>

For more information checkout our official website.

Monday, May 7, 2012

Display image in magento



<?php echo $this->getSkinUrl('images/imagename.png')?>
For more information checkout our official website.

Display the attribute any wher in magento…



<?php echo $_product->getAttributename() ?>
Just take care that the attribute name first letter is capital…
For more information checkout our official website.

Code for Magento Category display at any other place in the site..


<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>
Just copy and paste and get the category listed….
For more information checkout our official website.

Tuesday, February 21, 2012

Wordpress Contact Form Redirection Link code

Your Mail Sent Successfully....<script type="text/javascript">jQuery(function($){ window.location.href="http://www.wirelesssolutionsny.com/thankyou.php"; });</script>

For more information checkout our official website.

Friday, January 6, 2012

HTML 5 Design Page

<!DOCTYPE html>
<head>
<meta charset="utf-8">
<html lang="en">
<title>HTML 5 - Tutorial</title>
<style>
body  { margin: 0px auto; padding: 0px; background:#666; font-family: Verdana, Geneva, sans-serif; font-size: 14px; color: #666666;}
.main  { margin: 0px auto; padding: 0px; width: 950px; background:#ffffff; font-family: Verdana, Geneva, sans-serif; font-size: 14px; color: #666666;}
header  { margin: 0px; padding: 0px; background:#ececec; height: 50px;}
footer  { margin: 20px 0 0 0; padding: 0px; background:#9c9c9c; color:#ffffff; height: 50px;}
</style>
</head>

<body>
<div class="main">
<header>
<nav>
<ul>
<li><a href="index.htm">home</a></li>
</ul>
</nav>
</header>

<article>
<h1>
The article title</h1>
<p>
This is the contents of the article element.</p>
</article>

<aside>
<h2>
The article title</h2>
<p>
This is the contents of the article element.</p>
</aside>

<p>
My first webpage</p>
<ul>
<li>List item 1</li>
<li>List item 2</li>
</ul>

<ol>
<li>List item 1</li>
<li>List item 2</li>
</ol>

<dl>
<dt>Term 1</dt>
<dd>Definition of term 1</dd>
<dt>Term 2</dt>
<dd>Definition of term 2</dd>     </dl>

<p>
<a href="http://www.html-5-tutorial.com/">XYZ</a></p>

<table>
<tr>             <td>Row 1 - Col 1</td>             <td>Row 1 - Col 2</td>         </tr>
<tr>             <td>Row 2 - Col 1</td>             <td>Row 2 - Col 2</td>         </tr>
</table>


<footer>This is my footer.</footer>
</div>
</body>
</html>

For more information checkout our official website.