How to share custom data on social network site !!!

Blog Archives

How to share custom data on social network site !!!

For Facebook share <a id=”ref_fb” href=”http://www.facebook.com/sharer.php?s=100&amp;p[title]=<?php echo $ftitle;?>&amp;p[summary]=<?php echo $fdescription;?>&amp;p[url]=<?php echo urlencode($fshare_url);?>&amp; p[images][0]=<?php echo $fimage_url;?>” onclick=”javascript:window.open(this.href, ”, ‘menubar=no,toolbar=no,resizable=no,scrollbars=no,height=400,width=600’); return false;”>&nbsp;</a> For Twitter share <a id=”ref_tw” href=”http://twitter.com/home?status=<?php echo $ttitle; ?>+<?php echo urlencode($tshare_url);?>” onclick=”javascript:window.open(this.href, ”, ‘menubar=no,toolbar=no,resizable=no,scrollbars=no,height=400,width=600’);return false;”>&nbsp;</a>   For Linkedin share <a

Posted in Blog, Wordpress Tagged with: , , , , ,

How to validate email id using checkdnsrr() function in PHP

Are you tired of dummy email id’s being used on your website. Like test@test.com, abc@abc.com etc ? You can use PHP function checkdnsrr() It checks whether the dns value is valid or not. Only the email id with valid domain

Posted in Blog, PHP Tagged with: , ,

WordPress Custom Post Type Code Generator

Default Post Types There are five post types that are readily available to users or internally used by the WordPress installation by default : Post (Post Type: ‘post’) Page (Post Type: ‘page’) Attachment (Post Type: ‘attachment’) Revision (Post Type: ‘revision’)

Posted in Blog, Wordpress Tagged with: , ,

How to Create a Custom WordPress Widget

Add in function.php file in wp-content/twentytwelve Below Widget function. register_sidebar( array( ‘name’ => __( ‘widget name’, ‘twentytwelve’ ), ‘id’ => ‘widget id’, ‘description’ => __( ‘Appears on posts and pages except the optional Front Page template, which has its own widgets’,

Posted in Blog, Wordpress Tagged with: , ,

Validate Individual Form Field In Magento

Validating an individual form field in Magento is pretty easy. You can use the inbuilt Magento function named Validation.validate(). You can do this in two way 1) Call the function from the individual field 2) Call the function on some

Posted in Blog, Jquery/Ajax, Magento Tagged with: , , ,