Thursday, November 28, 2013

Magento blacklist email address extension

Sorry, no attachments exist.

Magento blacklist email address extension



Magento blacklist email address extension

Magento extension for one page easy checkout

Sorry, no attachments exist.

Magento extension for one page easy checkout



Magento extension for one page easy checkout

Magento improve one page checkout with designing (css only)

Sorry, no attachments exist.

Magento improve one page checkout with designing (css only)



Magento improve one page checkout with designing (css only)

Magento Google analytics extension

Sorry, no attachments exist.

Magento Google analytics extension



Magento Google analytics extension

Magento comments on checkout extension

Sorry, no attachments exist.

Magento comments on checkout extension



Magento comments on checkout extension

Magento developer toolbar extension

Sorry, no attachments exist.

Magento developer toolbar extension



Magento developer toolbar extension

Magento facebook likebox and connect extension.

Sorry, no attachments exist.

Magento facebook likebox and connect extension.



Magento facebook likebox and connect extension.

Wordpress Extension for Album and image gallery

Sorry, no attachments exist.

Wordpress Extension for Album and image gallery


Wordpress Extension for Album and image gallery

Wordpress Extension BackUpWordPress files and databases

Sorry, no attachments exist.

Simple automated back ups of your WordPress powered website.

Wordpress Extension BackUpWordPress files and databases



Wordpress Extension BackUpWordPress files and databases

Wordpress Extension for page navigation (pageination display format)

Sorry, no attachments exist.

Wordpress Extension for page navigation (pageination display format)



Wordpress Extension for page navigation (pageination display format)

Wordpress Extension for maintanance mode

Sorry, no attachments exist.

Wordpress Extension for maintanance mode



Wordpress Extension for maintanance mode

Magento Video Gallery Extensions

Sorry, no attachments exist.

Magento Video Gallery Extensions)



Magento Video Gallery Extensions

Steps to Move WordPress From Local Server to Live Site

Step 1: Export Local WordPress Database

Step 2: Uploading WordPress Files to Live Site

Step 3: Creating MySQL Database on Live Site

Step 4: Importing WordPress Database on Live Site

Step 5: Changing the Site URL (on wp_options table see siteurl option , update it),(on wp_options table see home option , update it)

Step 6: Setting Up your Live Site

Step 7: Fixing Images and Broken Links by updating Paths

UPDATE wp_posts SET post_content = REPLACE(post_content, ‘localhost/test/’, ‘www.yourlivesite.com’);



Steps to Move WordPress From Local Server to Live Site

How to Enable and Disable Automatic Updates in WordPress for Major Releases

define( ‘WP_AUTO_UPDATE_CORE’, true );


There is one little problem with this code. It also enables development or nightly updates. To disable nightly builds and development updates you need to add this code in a site-specific plugin or in your theme’s functions.php file.


add_filter( ‘allow_dev_auto_core_updates’, ‘__return_false’ );


This filter will disable automatic updates for nightly builds or development updates.



How to Enable and Disable Automatic Updates in WordPress for Major Releases

WordPress blank page issue

Solution 1 – Check your plugin settings


SELECT option_value FROM wp_options WHERE option_name = ‘active_plugins’

UPDATE wp_options SET option_value = ” WHERE option_name = ‘active_plugins’


Solution 2 – Check your template settings


SELECT option_name, option_value FROM wp_options WHERE option_name IN (‘template’, ‘stylesheet’)

UPDATE wp_options SET option_value = ‘default’ WHERE option_name IN (‘stylesheet’, ‘template’)


Solution 3 – Check the “key” files


There are two “key” files, wp-config.php and .htaccess, that you need to check.


If you can’t access either the WordPress homepage or the admin page, check the wp-config.php file and make sure that there is no empty lines or other characters after “?>”.


If you have a .htaccess file in your WordPress folder, rename the .htaccess file to see if it rectifies the blank page issue. If so, you’ll need to review the settings in the .htaccess file.


 


Solution 4 – Enable error display

php_flag display_errors on


 



WordPress blank page issue

Add Google Analytics

Simply paste the code below and insert your Google Analytics where it says paste your Google Analytics. You can paste the code once in your functions.php file and never have to worry about it again. We are adding an action to the wp_footer, so it will automatically insert adsense codes wherever on all pages you have the wp_footer string.


<?php

add_action(‘wp_footer’, ‘add_googleanalytics’);

function add_googleanalytics() ?>

// Paste your Google Analytics code here

<?php ?>



Add Google Analytics

Add a Favicon to your Blog

Every blog deserves to have its own identity. You can add this identity by adding the favicon code in your header.php file, or you can make it easier for yourself by simply adding the following code in your functions.php file.


// add a favicon to your

function blog_favicon()

echo ‘<link rel=”Shortcut Icon” type=”image/x-icon” href=”‘.get_bloginfo(‘wpurl’).’http://cdn3.wpbeginner.com/favicon.ico” />’;


add_action(‘wp_head’, ‘blog_favicon’);



Add a Favicon to your Blog

Add a Favicon to your Blog

Every blog deserves to have its own identity. You can add this identity by adding the favicon code in your header.php file, or you can make it easier for yourself by simply adding the following code in your functions.php file.


// add a favicon to your

function blog_favicon()

echo ‘<link rel=”Shortcut Icon” type=”image/x-icon” href=”‘.get_bloginfo(‘wpurl’).’http://cdn3.wpbeginner.com/favicon.ico” />’;


add_action(‘wp_head’, ‘blog_favicon’);



Add a Favicon to your Blog

Remove WordPress Version Number

You should always encourage your clients to upgrade to the latest version, so you don’t have this problem. But if you are working with a client that does not want to upgrade, then it is essential that you remove your WordPress version number from your WordPress header, RSS feeds, and all other locations. To do this, add the following code:


function wpbeginner_remove_version()

return ”;


add_filter(‘the_generator’, ‘wpbeginner_remove_version’);



Remove WordPress Version Number

Add a Custom Dashboard Logo

When creating themes for a client, you can use this as one of the perks to the theme. All you have to do is paste the following code below:


//hook the administrative header output

add_action(‘admin_head’, ‘my_custom_logo’);


function my_custom_logo()

echo ‘

<style type=”text/css”>

#header-logo background-image: url(‘.get_bloginfo(‘template_directory’).’/images/custom-logo.gif) !important;

</style>

‘;



Add a Custom Dashboard Logo

Change the Footer in WordPress Admin Panel

You can change the footer of your Free or Custom WordPress themes by adding the necessary links. Simply paste the following code:


function remove_footer_admin () WordPress Tutorials: <a href=”http://www.wpbeginner.com” target=”_blank”>WPBeginner</a></p>’;


add_filter(‘admin_footer_text’, ‘remove_footer_admin’);



Change the Footer in WordPress Admin Panel

Dynamic Copyright Date in WordPress Footer

Often you will come across sites with outdated copyright dates. Some sites show the current year as their copyright date. Both of these are annoying, and it shows that the site designer was lazy. In order to give your users a little background info about your site, you should display the copyright date as such: © 2006 – 2010. We can do this by simply pasting the following code:


function comicpress_copyright()

global $wpdb;

$copyright_dates = $wpdb->get_results(”

SELECT

YEAR(min(post_date_gmt)) AS firstdate,

YEAR(max(post_date_gmt)) AS lastdate

FROM

$wpdb->posts

WHERE

post_status = ‘publish’

“);

$output = ”;

if($copyright_dates)

$copyright = “&copy; ” . $copyright_dates[0]->firstdate;

if($copyright_dates[0]->firstdate != $copyright_dates[0]->lastdate)

$copyright .= ‘-’ . $copyright_dates[0]->lastdate;


$output = $copyright;


return $output;


Once you add this function, then open your footer.php file and add the following code wherever you like to display the dynamic copyright date:


<?php echo comicpress_copyright(); ?>



Dynamic Copyright Date in WordPress Footer

Enable Post Thumbnails in WordPress

To do this, you must enable the post thumbnails inside your functions.php file. Paste the code below:


add_theme_support( ‘post-thumbnails’ );


Then simply place the following code inside your loop where you want to display the thumbnail:


<?php the_post_thumbnail(); ?>


For More Details : http://www.youtube.com/watch?v=fUfgmRCPI0E#t=147



Enable Post Thumbnails in WordPress

Add Author Profile Fields

If you want to create a more versatile author page, then you would need to add additional fields to the author profile. The code below will show you how to add additional twitter and facebook fields, but you can use it to add any other field that you like.


function my_new_contactmethods( $contactmethods )

// Add Twitter

$contactmethods['twitter'] = ‘Twitter’;

//add Facebook

$contactmethods['facebook'] = ‘Facebook’;


return $contactmethods;


add_filter(‘user_contactmethods’,'my_new_contactmethods’,10,1);


You can then call the fields in your author.php template by adding the following code:


<?php echo $curauth->twitter; ?>



Add Author Profile Fields

Disable Search in WordPress

When using WordPress as a CMS, sometimes the search feature becomes unnecessary. You can remove the search bar from the design, but the functionality still remains. You can add the following function and disable the search function:


function fb_filter_query( $query, $error = true )


if ( is_search() )

$query->is_search = false;

$query->query_vars[s] = false;

$query->query[s] = false;


// to error

if ( $error == true )

$query->is_404 = true;


add_action( ‘parse_query’, ‘fb_filter_query’ );

add_filter( ‘get_search_form’, create_function( ‘$a’, “return null;” ) );



Disable Search in WordPress

Enable Adsense Shortcode

Adsense is one of the most popular ad elements used by bloggers. Theme designers can place the adsense box in one spot which limits the users. If you want to give your client the ability to add the adsense anywhere, then you can create a shortcode for the adsense using this function:


function showads()

return ‘<div id=”adsense”><script type=”text/javascript”><!–

google_ad_client = “pub-XXXXXXXXXXXXXX”;

google_ad_slot = “4668915978″;

google_ad_width = 468;

google_ad_height = 60;

//–>

</script>


<script type=”text/javascript”

src=”http://pagead2.googlesyndication.com/pagead/show_ads.js”>

</script></div>’;


add_shortcode(‘adsense’, ‘showads’);



Enable Adsense Shortcode

Custom Excerpt Length

By default the excerpt length is capped at 55 words. Many theme designers like to have the flexibility that is why WordPress lets you customize the excerpt length with this function:


function new_excerpt_length($length)

return 100;


add_filter(‘excerpt_length’, ‘new_excerpt_length’);



Custom Excerpt Length

Customize Excerpt More [...]

// custom excerpt ellipses for 2.9

function custom_excerpt_more($more)

return ‘…’;


add_filter(‘excerpt_more’, ‘custom_excerpt_more’);


/* custom excerpt ellipses for 2.8-

function custom_excerpt_more($excerpt)

return str_replace(‘[...]‘, ‘…’, $excerpt);


add_filter(‘wp_trim_excerpt’, ‘custom_excerpt_more’);

*/



Customize Excerpt More [...]

Display Twitter Followers Count and More

There are widgets that display Twitter followers count, but those are limited and ugly. You can use this function to customize the way your twitter followers count look on your blog. Simply paste the code below:


function rarst_twitter_user( $username, $field, $display = false )

$interval = 3600;

$cache = get_option(‘rarst_twitter_user’);

$url = ‘http://api.twitter.com/1/users/show.json?screen_name=’.urlencode($username);


if ( false == $cache )

$cache = array();


// if first time request add placeholder and force update

if ( !isset( $cache[$username][$field] ) )

$cache[$username][$field] = NULL;

$cache[$username]['lastcheck'] = 0;


// if outdated

if( $cache[$username]['lastcheck'] < (time()-$interval) )


// holds decoded JSON data in memory

static $memorycache;


if ( isset($memorycache[$username]) )

$data = $memorycache[$username];


else

$result = wp_remote_retrieve_body(wp_remote_request($url));

$data = json_decode( $result );

if ( is_object($data) )

$memorycache[$username] = $data;


if ( is_object($data) )

// update all fields, known to be requested

foreach ($cache[$username] as $key => $value)

if( isset($data->$key) )

$cache[$username][$key] = $data->$key;


$cache[$username]['lastcheck'] = time();


else

$cache[$username]['lastcheck'] = time()+60;


update_option( ‘rarst_twitter_user’, $cache );


if ( false != $display )

echo $cache[$username][$field];

return $cache[$username][$field];


Then place the following code where you want to display the count in your theme file:


echo rarst_twitter_user(‘wpbeginner’, ‘name’).’ has ‘.

rarst_twitter_user(‘wpbeginner’, ‘followers_count’).’ followers after ‘.

rarst_twitter_user(‘wpbeginner’, ‘statuses_count’).’ updates.’;



Display Twitter Followers Count and More

Adding an Author Image and Bio Box in WordPress, and Linking to a Google+ Profile

Sorry, no attachments exist.

Adding an Author Image and Bio Box in WordPress, and Linking to a Google+ Profile



Adding an Author Image and Bio Box in WordPress, and Linking to a Google+ Profile

All In One WP Security & Firewall

Sorry, no attachments exist.


A comprehensive, user-friendly, all in one WordPress security and firewall plugin for your site.


A COMPREHENSIVE, EASY TO USE AND WELL SUPPORTED WORDPRESS SECURITY PLUGIN


WordPress itself is a very secure platform. However, it helps to add some extra security and firewall to your site by using a security plugin that enforces a lot of good security practices.



All In One WP Security & Firewall

Sunday, November 24, 2013

PHP Time ago like facebook function

<?php

function ago($timestamp)

$difference = time() – strtotime($timestamp);

$periods = array(‘second’, ‘minute’, ‘hour’, ‘day’, ‘week’, ‘month’, ‘years’, ‘decade’);

$lengths = array(’60′, ’60′, ’24′, ’7′, ’4.35′, ’12′, ’10′);

for($j = 0; $difference >= $lengths[$j]; $j++) $difference /= $lengths[$j];

$difference = round($difference);

if($difference != 1) $periods[$j] .= “s”;

return “$difference $periods[$j] ago”;

echo ago(’2013-11-28 09:50:28′);

?>


PHP Time ago like facebook function

NextScripts: Social Networks Auto-Poster

Sorry, no attachments exist.
This plugin automatically publishes posts from your blog to your Social Network accounts such as Facebook, Twitter, Google+(Google Plus), Blogger, Tumblr, …

Automatically re-publishes blogposts to Facebook, Twitter, Google+, Pinterest, LinkedIn, Blogger, Tumblr, Delicious, Plurk, etc profiles and/or pages


NextScripts: Social Networks Auto-Poster

Magento product review on sidebar extension

Sorry, no attachments exist.

Magento product review on sidebar extension


Magento product review on sidebar extension

Wordpress Extension Add Link to Facebook

Sorry, no attachments exist.

Wordpress Extension Add Link to Facebook


Wordpress Extension Add Link to Facebook

Thursday, November 21, 2013

Saturday, November 16, 2013

Wordpress Extension Admin Drop Down Menu

Sorry, no attachments exist.

All admin links available in a neat horizontal drop down menu. Saves lots of screen real estate!

Wordpress Extension Admin Drop Down Menu


Wordpress Extension Admin Drop Down Menu

Wednesday, November 6, 2013

Custom Social networking sharing link

https://www.linkedin.com/cws/share?url=SITE_URL
http://twitter.com/home?status=SITE_URL
https://plus.google.com/share?url=SITE_URL
http://www.facebook.com/share.php?u=SITE_URL