There is no doubt that if you run a wordpress blog, you have your favourite plugins, everyone does. I have picked my top 5 wordpress plugins, that I believe no blog should be without.
There is no doubt that if you run a wordpress blog, you have your favourite plugins, everyone does. I have picked my top 5 wordpress plugins, that I believe no blog should be without.
I have been told about a small tip that has improved the CTR on many publishers AdSense units, and I would like to share it with you, this may be old news to many Adsense publishers but there may be those of you out there that do not know this.
Many website owners are paying SEO Companies thousands to optimize their websites for search engines. Many dont know what SEO is and others dont know where to start. That is why we have created 10 Basic SEO tips to get you started, so keep your money in your pocket and keep reading if you want to improve search engine traffic toyour site.
If you are reading this and cant help thinking “What the hell is SEO?”, then you need to see my previous post – What Is SEO?.
There are many search engines on the internet now so it can be difficult to optimize your website for all of them, as they have slightly different ranking systems. By following these 10 basic SEO tips you will be well on your way to improving your search engine traffic.
1. Use Keywords in URL
You should try to use the keywords you wish to recieve traffic from in your URL. You should try and keep the URL as short as possible but at the same time, have your keywords in it. You have to make sure that the keywords you mentioned in the URL are mentioned on the webpage as well, otherwise this tactic will not be successful.
2. Use Keywords in <title> tag
The <title> tag is one of the most important factors in on-site SEO, not only is it the title of your page in the browser, it is also the title of the page on the Search Engine Results Pages (SERPs). With this in mind you dont want to spam it with keywords, but use a short description of about 8 words to describe your page, that includes the pages keywords.
3. Keywords In content
As mentioned in number 1, the keywords that you use in your URL and <title> tag should also be included in the content of the webpage. Try to use your keywords in <h1> and <h2> tags. Once again dont spam the page with <h1> tags, just include the keywords naturally into your content.
4. Use Keywords in Anchor Text of Inbound Links
When you get links to your website from external websites, try to vary the anchor text used. Also dont always link straight to your index page, instead get links to deeper pages.
5. Use keywords in images <alt> tag
Search engines use the <alt> tag instead of the image description, so by having your keywords in your <alt> tag you can improve your pages SEO.
6. Outbound Links
Try not to link to lots of external sites from one page, as the search engine could see this as spam. Instead link to a few high quality relevant sites.
7. Inbound Links
Only get links from quality relevant sites. Links from poor or unrelevant sites are pointless and could count against you.
8. Meta Tags
Use <Description> and <kewords> Metatags. Metatags generally do not have that much importance now-days but Yahoo and MSN still consider Meta tags. Include post description in <description> meta tag. Some times this description will come as search result description on search result pages. Use <keywords> meta tag to include keywords, around 15-20 keywords will be sufficient. Do not use keywords that are not in your post content.
9. Dont Duplicate Content
Wordpress blogs have the drawback of duplicate content. Content is said to be duplicated when the same content is accessible from two different urls. Fresh content is also important for fast ranking as crawlers love fresh content.
10. Easy Site Navigation
Navigation should be kept simple. Avoid using javascripts menus on the home page. Use the related post plugin if you have a wordpress blog. Keep most of the pages accessible from home page. Avoid the use of frames in your site design as it will be difficult for crawlers to crawl your site. Also try not to use images as links.
If you use these 10 basic SEO tips when creating a page or website, you can increase your search engine traffic.
Do you run a website and often hear other website owners talking about their SEO tactics and realise that you have no idea what SEO is, or how you go about it? Well you have come to the right place, we will give you all the information you need to understand what other website owners are talking about and help you to get a good understanding of Search Engine Optimization (SEO).
Are you at the stage where your website needs to pass information from one page to another? If so then you might want to learn about PHP Sessions.
I have been asked to create a short tutorial to demonstrate how to make a simple PHP Login Script. I have put together 5 simple steps to help you get your PHP login script up and running in minutes.
Step 1: Create Members Table In Database
Before you can set up the Login Script you need to have the members table set up in your MySql database. Below is the code to create your members table:
[sourcecode language='php']
CREATE TABLE `members` (
`id` int(4) NOT NULL auto_increment,
`username` varchar(65) NOT NULL default ”,
`password` varchar(65) NOT NULL default ”,
PRIMARY KEY (`id`) ) TYPE=MyISAM AUTO_INCREMENT=2 ;
[/sourcecode]
You then need to create a user that can be used to test the login script. This can be done using the code below:
[sourcecode language='php']
INSERT INTO `members` VALUES (1, ‘david’, ‘password’);
[/sourcecode]
Step 2: Create a Login Form
You now need to create a login form, where users can enter their username and password. Below is the code for a login form and submit button:
[sourcecode language='php']
[/sourcecode]
When the submit button is pressed it sends the information and the user to the ‘login.php’ page.
Step 3: Create the ‘login.php’ file
Below is the code for your ‘login.php’ file. You will need to enter your database information into the top part. It will then connect to your database, search for a match on the username and password entered in the form, if it finds a record the user is sent to the ‘login_success.php’ file, if not then an error message is displayed.
[sourcecode language='php']
$dbusername=""; // Mysql username
$dbpassword=""; // Mysql password
$db_name=""; // Database name
$tbl="members"; // Table name
// This connects to server and then selects the members databse.
mysql_connect("$host", "$dbusername", "$dbpassword")or die("cannot connect");
mysql_select_db("$db_name")or die("cannot select DB");
// Assign the username and password from the form to variables.
$username=$_POST['username'];
$password=$_POST['password'];
$sql="SELECT * FROM $tbl WHERE username='$username' and password='$password'";
$result=mysql_query($sql);
// This counts to see how many rows were found, there should be no more than 1
$count=mysql_num_rows($result);
// If result matched $username and $password, table row must be 1
if($count==1){
// Register $myusername, and redirect to file "login_success.php"
session_start();
$_SESSION["logged"] = 1;
header("location:index.php");
}
else {
$_SESSION["logged"] = 0;
header("location:login.php");
}
?>
[/sourcecode]
If the username and password is matched a ‘Session’ is started, for more information about ‘Sessions’, see our guide to sessions. You can send the user to any web page after then have logged in, you simply edit the location to the file you wish to send the user to. You will need to use the code from the top of the ‘login_success.php’ file to ensure that the user is logged in. If you are sending the user to the ‘login_success.php file you will need to create it now.
Step 4: Create the login_success.php file
If the username and password is matched in the ‘Login.php’ file then the user is sent to the ‘login_success.php’ file. This file needs to check that the user is logged in. If the user is logged in then they can see the page, if they are not logged in they are sent to the ‘notloggedin.php’ file. Below is the code that needs to be entered at the very top of the page.
[sourcecode language='php']
// Check to see if session is not registered, if it is not redirect the user back to the notloggedin.php file.
// Put this code in first line of every web page that you only want logged-in users to see.
if($_SESSION['logged'] != 1){ header("location:login.php"); }
?>
[/sourcecode]
You then continue with the rest of the web page as you normally would, for example:
[sourcecode language='php']
Login Successful
[/sourcecode]
Once your users are logged in you will need to give them the option to log-out.
Step 5: Create the logout.php file
When the user logged in you created a session, so to log the user out you need to remove the session. To do this you need to put the following code in the top line of your ‘logout.php file’:
[sourcecode language='php']
session_start();
session_destroy(); ?>
[/sourcecode]
This destroys the session. You can then continue with the webpage, and you could simply display a message to tell the user they have been logged out. You now have a working PHP login script, feel free to use it on your web site. Why not learn how to encrypt your PHP Login Script? If you have any problems please feel free to comment on this post and I will try to answer them as quickly as possible.
There are alot of HTML tags available to a web developer and it can be hard to remember them all. That is why I have knocked together a HTML Cheat Sheet that you can print out or bookmark, to help you remember HTML tags.
Many web-users will be familier with the acronym HTML, but few fully understand what it means at what it does. We have put together a short beginners guide to HTML, that we hope will help you make your first ever HTML web page.