WordPress login and logout for custom template

Login and logout link (way – 1):

[code]

<code><?php wp_loginout();?></code>

[/code]

Login and logout page with custom links (way – 2):

[code]
<?php
if ( is_user_logged_in() ) {
echo ‘<a href="’.wp_logout_url().’" title="Logout">Log out of my site</a>’;
} else {
echo ‘<a href="’.wp_login_url().’" title="Login">Log in to my site</a>’;
}
?>
[/code]

Login and logout page with custom links and redirect to previous page (way – 3):

[code]
<?php
if ( is_user_logged_in() ) {
echo ‘<a href="’.wp_logout_url( get_permalink() ).’" title="Logout">Log out of my site</a>’;
} else {
echo ‘<a href="’.wp_login_url( get_permalink() ).’" title="Login">Log in to my site</a>’;
}
?>
[/code]

Custom login and logout pages with custom links (way – 4):

[code]
<?php
if ( is_user_logged_in() ) {
echo ‘<a href="’.wp_logout_url( home_url() ).’" title="Logout">Logout</a>’;
} else {
echo ‘<a href="’.get_permalink( 22 ).’" title="Login">Login</a>’;
}
?>
[/code]

How can we use Google web master tools with sitemap and verify?

Step# 1: Need to sign in Google web master tools then you will be the add option on the top of right sidebar.

Step#2: When add the site you need to verify it. Please follow the step under the screenshot. At first you need to download it instruction (1) and upload it on your site document root tree. When upload is finish you need to check it for successfully visiting link see the instruction (3). If it’s okay then click to  VERIFY  button.

Step#3: Now go to install wordpress plugin http://wordpress.org/extend/plugins/google-sitemap-generator/

When you click the link your sitemap.xml will be automatically generate on your site. Now you need to back your google web master tools for add the name.

N.B. – You can check it on your site for working purpose.  www.yoursitename.com/sitemap.xml

Step#4: Now we need to add the name of sitemap.xml in our google web master tools.

Where we’ll write the sitemap.xml file name on your google web master tools?

Click your google web master tools Dashbord then you’ll see the sitemap option on the right sidebar. Just click on it for upload your sitemap.xml file.

 

Download: How can we use Google web master tools with site

How to use Twitter Widgets

Twitter has super-sweet widgets to display your Tweets anywhere on the web. You can also create a custom widget with Tweets from the sources of your choosing!

How To Add a Twitter Widget To Your Website

Access widgets from the Resources link in the footer of all Twitter web pages. To add a Twitter widget to your social network, website, or blog:

  1. Log into Twitter
  2. Click Resources at the bottom of the details pane on the right hand side of your screen.
  3. Select See all Widgets
  4. Select My Website
  5. Select the widget that shows the Tweets you’d most like to display on your website:

  • Profile Widgets display recent Tweets from a specific user.
  • Search Widgets display highly customizable search results in real time (perfect for live events, conferences, brands etc.)
  • Faves Widgets will show all the Tweets you have marked as Favorite
  • List Widgets show off a list of users you’ve curated. Great for showing off a subset of interesting folks’ Tweets.

Adding Profile Widgets

Profile widgets display the public Tweets of anyone on Twitter. Try entering a few user names to test it out!

  1. Enter the name of the user whose tweets should display in the widget.
  2. Click Appearance to change the colors of your widget (You can enter the numeric color codes to perfectly match your website or blog!)
  3. Click Dimensions to change the size of your widget (You wont be able to preview the size in the widgets page.)
  4. Click Test settings to make sure everything looks right
  5. Click Finish & Grab Code at the bottom of the page, and add the code to your website.

Once you’ve added the widget code to your site, voila! You’ve got Tweets!

Adding Search Widgets

Customize your Twitter Search Widget using the three left hand tabs on the widget screen: Settings, Appearance and Dimensions. Note: search widgets will not work on Facebook.

  1. Fill out the settings for your widget: the Search Query field determines the display of the real-time search results. This can be something as simple as San Francisco, or you can experiment with advanced search queries.
  2. Decide whether or not to loop old results (Recommended only for low volume (very specific) queries!)
  3. Click Appearance to change the colors of your widget (You can enter the numeric color codes to perfectly match your website or blog!)
  4. Click Dimensions to change the size of your widget (Customize the Width (px) and Height (px) of your widget to fit the area of the page where you want it (minimum size is 150px wide and 100px high). You wont be able to preview the size.)
  5. Click Test settings to make sure everything looks right
  6. Click Finish & Grab Code at the bottom of the page, and add the code to your website.
  7. Add the code to your website and display real time Tweets!

Adding Faves Widgets

  1. Enter the name of the user whose Tweets should display in the widget.
  2. Click Appearance to change the colors of your widget (You can enter the numeric color codes to perfectly match your website or blog!)
  3. Click Dimensions to change the size of your widget (You wont be able to preview the size in the widgets page.)
  4. Click Test settings to make sure everything looks right
  5. Click Finish & Grab Code at the bottom of the page, and add the code to your website

Adding List Widgets

  1. Enter the name of the user whose tweets should display in the widget.
  2. Click Find Lists to select the list you’d like to populate your widget (the drop-down to select from appears below the username).
  3. Click Appearance to change the colors of your widget (You can enter the numeric color codes to perfectly match your website or blog!)
  4. Click Dimensions to change the size of your widget (You wont be able to preview the size in the widgets page.)
  5. Click Test settings to make sure everything looks right
  6. Click Finish & Grab Code at the bottom of the page, and add the code to your website.

Ref: https://support.twitter.com/groups/31-twitter-basics/topics/112-linking-to-your-blog-or-website/articles/15354-how-to-use-twitter-widgets#

How to Use Twitter With Facebook

This article shows you how to connect your Twitter and Facebook accounts so that your Tweets will automatically post to your Facebook wall.

To connect your Twitter account and your Facebook profile:

  1. Log in to the Twitter account you want to associate with your Facebook profile.
  2. Go to your Settings menu’s Profile tab. Scroll to the bottom and click Sign in to Facebook and connect your accounts. 
  3. When prompted, select the privacy settings for who will see your Tweets posted to your Facebook wall. It is set to public by default.
  4. Click Log in with Facebook and enter your Facebook login credentials, as shown below.
  5. Click Allow to accept permissions.
  6. Your Tweets will now post to your profile Facebook wall and your username will be displayed there as well. Retweets and @replies will not be posted.
  7. Privacy note: To control who sees your Tweets and username, go to your Facebook Application settings and click Edit for the Twitter app to restrict who can see your Tweets on your Facebook wall.

To connect your Twitter account to a Facebook Page:

If you have a Facebook Fan Page, or are the admin of one, you can post Tweets from your Twitter account to your Facebook Page.

  1. Follow the steps above to connect to your Facebook profile.
  2. In your Twitter profile settings page, Select the page you’d like to connect with (shown below).
  3. When prompted, click to allow permission to post to the selected Facebook Page:

Privacy notes:

Privacy is important to us. Unless you have explicitly chosen to authorize Twitter for Facebook to connect your Twitter account to your Facebook account, we will not cross-post to Facebook on your behalf, or display on Facebook your Twitter username, profile picture, or other profile information.

When you choose to connect your Twitter account to your Facebook account, the Facebook authentication dialog screen specifies the Facebook account information that you authorize sharing with Twitter.  This information allows us to cross-post between Twitter and Facebook and may help us improve your Twitter experience, for example, with better suggestions and content on Twitter.  If you disconnect your Facebook account from Twitter, we will delete the Facebook account information that you previously authorized.  Please note that it may take up to a few weeks for this information to be fully removed from our systems.

If your Tweets do not post:

Make sure the box to Post your Tweets to Facebook is checked in your Twitter Profile settings. Try disconnecting and reconnecting again.

Ref: https://support.twitter.com/articles/31113

Ref: https://support.twitter.com/groups/31-twitter-basics#topic_107

SmaterMail

SmaterMail Server Configuration

http://smartertools.com

How can i make own layout ?

For Local host link: http://localhost:9998/

Creating a New Skin Folder

The first step in making a new skin is to create a new skin folder. This is a simple procedure that is done in two different directories. From your local drive go into ―Program Files > SmarterTools > SmarterMail > MRS > App_Themes‖ directory and copy the folder named ―Horizon.‖ Paste this folder in the same place and give it the name of your new skin. Repeat this process in the ―MasterPages‖ directory located at the same level as ―App_Themes‖. Make sure to ONLY edit the files within your new skin folder.

Understanding the Directory Structure

The directory structure is broken down into two main sections, the ―App_Themes‖ directory and the ―MasterPages‖ directory. In both of these directories, there will be a subfolder for your new skin. In Figure 1 this subfolder is called ―Viridian.‖ This folder contains all the files you need to customize the Web interface.
Most of your simple changes—adjusting CSS styles and changing images—will focus on the files within [YourNewSkinName] subfolder in the ―App_Themes‖ directory. Main structural changes are done through the master pages in [YourNewSkinName] subfolder in the ―MasterPages‖ directory.

Tutorial for customization theme: smartertools_skinningguide