Tag Archives: php

Finally

After a long tiering weekend I finished my first wordpress plugin.

It`s yet another adsense management and sharing plugin for all the hungry bloggers out there :D

Hope you all enjoy it.

You can grab it here: AdSense Revenue Sharing 1.0

Bragging time

As you remember a few posts ago I announced the launch of my new site IntelliRank.net

Now I am going to describe what it dose so you can stop reading if you don`t care :P

There are some nice buttons for bloggers or website owners. Currently the buttons come in two sizes, small a one that only shows the Google Page Rank value of the visited page and the large one that comes in three colors and shows Google and Alexa Page Rank, the number of indexed links in Yahoo and the number of Technorati backlinks (blog reactions) of the visited page.

When you submit your URL to IntelliRank.net you get the following data:

  1. Page Ranks from Google, Alexa, Quantcast, Compte, Technorati
  2. Google Page Rank validation
  3. Google Page Rank prediction
  4. The number of backlinks in Google, Yahoo, Live Search, Altavista, Alltheweb
  5. The number of indexed pages in Google, Yahoo, Live Search, Altavista, Alltheweb
  6. The number of bookmarks in del.icio.us and technorati.com
  7. Checks Yahoo and DMOZ directories for backlinks

For those with more advanced needs the following should come in handy.

Webmaster Tools & SEO Tools

  1. Multiple data center page rank check
    Checks your page rank in multiple data centers.
  2. Keyword phrase list generator
    Works to create lists of various keyword phrase permutations based on individual keywords and phrases you input.
  3. Meta tag generator
    Generates perfect meta tags for your website.
  4. Search engine saturation tool
    Shows you how many pages you have indexed compared to competing sites. Each page has its own chance to rank. Sites with thousands of pages indexed are relevant for thousands and thousands of unique search queries because they have so many pages in the search lottery.
  5. Keyword Research Tool
    This tool allows you to do keyword research by cross referencing many SEO tools.
  6. Keyword Density Analyzer
    Using a keyword density analysis tool can make it easier to find a few good keyword phrases to use.
  7. Search Engine Spider Test
    Shows the source code of a page, all outbound links, and common words and phrases.
  8. Link suggestion
    Generates Google and Yahoo! searches for your keyword + the term from the keyword list. Keep in mind that the value of a link is typically going to be at least partly inversely proportional to how easy it is to get.
  9. Keyword List Cleaner And Number Stripper
    Cleans and strips your keyword list from unvwanted terms.
  10. Reciprocal link checking
    allows you to check your reciprocal links free to see if link partners are still linking back at your site.

Disable news in wp-admin

This is the fastest way to remove the news from the wordpress admin dashboard.

Open up your favorite ftp program and connect to your blog.

In the wp-admin folder find the file index.php, make a backup of this file just in case u mess it up and you have to restore it later.

Now open up index.php and around line 15 you should find the following:

add_action( 'admin_head', 'index_js' );

Just comment out that line with double slashes like this:

//add_action( 'admin_head', 'index_js' );

Save the file and you`re done!

I only did this to my blog because I wanted to clean it up a bit.

Keep in mind that if you disable the news you will not see the latest updates from “WordPress Development Blog”. This can be a bad thing.

However, if you want to keep the “WordPress Development Blog” news and only disable the “Other WordPress News” do the following:

In stead of commenting out the line like told above, look for this:

jQuery('#planetnews').load('index-extra.php?jax=planetnews');

It should be around line 10. Just remove it, save the file and you`re done.

I only did this on Version 2.3 so if your version is prior to this it might not work exactly like this but you got the idea. It might not be the best way to do it but it`s the simplest and fastest for me.

Enjoy!

Simple text based hit counter

First make a new file called stats.txt and one called stats.php

Give write permission on the .txt file (CHMOD 666 or 777 if you don`t see a growing count)

php code for .php file


<?php
//set data file name/path
$data='stats.txt';
//read content fom the .txt file
$show = file_get_contents($data);
//write new content to the .txt file
$new=file_put_contents($data,$show+1);
//show your hit counter
echo $show;
?>

This is faster thran fopen() and if the data file dose not exists the script creates it, if it can.

123

Today is the day I launch www.IntelliRank.net a new seo tools site. Check it out.