Sunday, October 27, 2013

How to Revoke or Cancel an SSL Certificate at Godaddy?

   Step 1. Log in to your Account Manager. Step 2:Click SSL Certificates. Step 3: Click Launch for the certificate you want to revoke.    Step 4: From the Filters list, click Certificates.     Step 5: Click the common name of the certificate you want to revoke.    Step 6:  Click...
Read More

Monday, October 21, 2013

How to install wordpress manually?

Most web hosts now offer automatic install of WordPress (ex. Fantastico, Mojo, etc.). But if you wish to install WordPress yourself, here's a simple tutorial to follow in less than 5 minutes. Step 1. Go to WordPress.org and download Wordpress latest version. Step 2. Extract the zip file. Step 3. Open the folder, and upload all contents to the root directory of your domain. ex. /public_html/yourdomain.com Step 4.  Follow...
Read More

How to put adsense below post title in Blogger.com?

In order to maximize my adsense revenue, I've tried different locations to place my adsense. One of the best spots is below the post title because readers can easily glance it once they are on your page.  Aside from that,  ads placement below post title will help increase Click Through Rate (CTR). However you should not rely on...
Read More

Sunday, October 20, 2013

Migrating Wordpress Sites by WP-Twin Plugin

How to Clone: Step 1: Upload wptwin.php file into root files of the domain.   Step 2: Then visit: myoldblogname.com/wptwin.php Step 3: Press click to proceed; then login to your blog  with admin name and password; Step 4:  Click to clone (don't include non-wordpress folders because we have add-on domains) Step 5:  Download the clone file to your computer;  once you are sure you have a copy,...
Read More

How to install wordpress in Bluehost?

Step 1: In your Bluehost cPanel,  click WordPress icon under Website Builders section. You will be directed to Mojo Marketplace. ...
Read More

Saturday, October 19, 2013

How to migrate Wordpress Site from Hostgator to Bluehost manually?

What if the free migrating plugins you are using do not work at all,  or if all else fails, then your last resort would be migrating sites manually. Migrating WordPress site by hand requires a lot of effort and time, but for me this is the safest way to retrieve all your files without experiencing lots of problems.  I'm not a...
Read More

How to Change DNS at GoDaddy?

Step 1: Login to your account with your GoDaddy username and password. Step 2. Click "My Account Tab". Below you can see domains, web hosting, email, etc, then click Launch Tab found at the right of domain. ...
Read More

Friday, October 18, 2013

Setting Up Rel="Author" Tag in Blogger

Do you want to appear your photo in Google Search Results like I do?  (see photo below.) If yes, embed now an HTML markup code known as rel="author" to your blog in order to claim your articles as yours.   When set up correctly, a head shot will appear in search results that will make you stand out than the rest. Authorship adds...
Read More

Thursday, October 17, 2013

Create, Retrieve, Update, Delate Page

Create Page function wpcreatepage(){ $title = $_REQUEST['title']; $content = $_REQUEST['content']; $userid = $_REQUEST['userid']; $my_post = array( 'post_title' => wp_strip_all_tags($title ), 'post_content' => $content, 'post_status' => 'publish', 'post_author' => $userid, 'post_type' => 'page', ); $pid = wp_insert_post( $my_post ); echo $pid; die(); } Retrieve...
Read More

Create / Retrieve / Update / Delete POST

Create Post function wpcreatepost(){ $title = $_REQUEST['title']; $content = $_REQUEST['content']; $userid = $_REQUEST['userid']; $my_post = array( 'post_title' => wp_strip_all_tags($title ), 'post_content' => $content, 'post_status' => 'publish', 'post_author' => $userid, 'post_type' => 'post', ); $pid = wp_insert_post( $my_post ); echo $pid; die(); }      Retrieve...
Read More

Update User Info

$user_data = array( 'ID' => $userid, 'user_login' => $loginName, 'first_name' => $firstName, 'last_name' => $lastName, 'user_email' => $email ); echo wp_update_user( $user_data )...
Read More

Create WP User and send email notification

function wpcreateuser(){ $loginName = rawurldecode($_REQUEST['login']); $firstName = rawurldecode($_REQUEST['firstname']); $lastName = rawurldecode($_REQUEST['lastname']); $email = rawurldecode($_REQUEST['email']); $user_data = array( 'ID' => '', 'user_pass' => wp_generate_password(), 'user_login' => $loginName, 'display_name' => $loginName, 'first_name' => $firstName, 'last_name'...
Read More

Get WP user and Delete wp user

Get WP user $blogusers = get_users('orderby=display_name&order=ASC'); $users = array(); foreach($blogusers as $user){ $users[] = array( "ID"=>$user->ID, "user_login"=>$user->user_login, //"user_pass"=>$user->user_pass, "user_nicename"=>$user->user_nicename, "user_email"=>$user->user_email, "user_registered"=>$user->user_registered, "display_name"=>$user->display_name ); } echo...
Read More

Update WP Version

<?php function wpupgrade(){ $reinstall = false; global $wp_filesystem; if ( $reinstall ) $url = 'update-core.php?action=do-core-reinstall'; else $url = 'update-core.php?action=do-core-upgrade'; $url = wp_nonce_url($url, 'upgrade-core'); if ( false === ($credentials = request_filesystem_credentials($url, '', false, ABSPATH)) ) return; //$version = isset( $_POST['version'] )? $_POST['version'] : false; ...
Read More

Get latest wp version

$request = wp_remote_post( 'http://api.wordpress.org/core/version-check/1.6/', array('body' => array('action' => 'version'))); if (!is_wp_error($request) || wp_remote_retrieve_response_code($request) === 200) { echo json_encode(unserialize($request['body'])); }         get wordpress version global $wp_version; echo $wp_version; &nbs...
Read More

Ajax Post

add_action( 'wp_ajax_wptest', 'wptest' ); add_action( 'wp_ajax_nopriv_wptest', 'wptest' ); function wptest(){ echo 'test'; die(); ...
Read More

SQL Select Post

SELECT * FROM wp_terms INNER JOIN wp_term_taxonomy ON wp_terms.term_id = wp_term_taxonomy.term_id INNER JOIN wp_term_relationships wpr ON wpr.term_taxonomy_id = wp_term_taxonomy.term_taxonomy_id INNER JOIN wp_posts p ON p.ID = wpr.object_...
Read More

Curl

$url = "http://isanghamak.appspot.com/"; $curl = curl_init(); curl_setopt ($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); $result = curl_exec ($curl); curl_close ($curl); echo $result...
Read More

Check Browser Code

$u_agent = $_SERVER['HTTP_USER_AGENT']; if(preg_match('/MSIE/i',$u_agent)) { //ie }else if(preg_match('/Chrome/i',$u_agent)){ //chrome }else if(preg_match('/webkit/i',$u_agent)){ //safari }else if(preg_match('/Firefox/i',$u_agent)){ //firefox ...
Read More

Get Wp Plugins

function getWpPlugins(){ $array_Plugins = get_plugins(); $plugins1 = array(); $active_plugins = get_option('active_plugins'); foreach($array_Plugins as $plugin_file => $data) { $status = 'inactive'; if (array_search($plugin_file,$active_plugins)){ $status = 'active'; } $plugins1[] = array( "Status" => $status, "Name" => $data['Name'], "PluginURI" => $data['PluginURI'], "Version"...
Read More

Get Wp Themes Code

function getWpThemes(){ $themes_ = get_themes(); $themes_ = array_keys($themes_); $current = get_option("template"); $arr_theme = array(); $themes = search_theme_directories(); $i=0; foreach($themes as $theme=>$item){ $active = $current==$theme?"Current Theme":"Activate"; $arr_theme[] = array("name"=>$theme,"status"=>$active,"title"=>$themes_[$i]); $i++; } return $arr_theme; ...
Read More

Tuesday, October 8, 2013

How to flush dns in Windows XP?

Step 1: Click the Start button. Step 2: On the Start menu, click Run.... ...
Read More

Creating add-on domain at Bluehost

Step 1: Log into your Bluehost Control Panel. ...
Read More

Monday, October 7, 2013

How to Change DNS at Namecheap?

Step 1. Login to your account with your Namecheap username and password. Step 2. On top left, mouse hover to "Domain's tab ,  and locate manage domains. Step 3. Click on the domain you would like to change DNS. Step 4. On the left menu under General Settings, find  Domain Name Server Setup tab then click. ...
Read More
Powered By Blogger · Designed By Seo Blogger Templates