Archive for the ‘Link Building Tips’ Category

Link Building Tips for your effective link building. | underground …

Focusing on link building is the only way to accomplish this. If you can create high quality links to your site it will be easier to rank higher. The following information will look into three tips for link building that you can implement
link building tips – Google Blog Search

Simple WordPress Contact Form 7 Phone Validation

I looked around for a simple Contact Form 7 phone validation however all the solutions I found relied on hacking the Contact Form 7 code. By looking through the CF7 code I found a way to attach a simple function to the validation to allow custom validation of any input type you like

To plug into the COontact Form 7 validation there are some filters you can attach to. The built in validation functions do this so we’re copying the standard CF7 way of validation.

All of the code given here can be put into the functions.php file in your wordpress theme.


add_filter( 'wpcf7_validate_text', 'drc_wpcf7_validate_text' , 10, 2 );
add_filter( 'wpcf7_validate_text*', 'drc_wpcf7_validate_text' , 10, 2 );

This code attaches to two filter calls – one for a text field (wpcf7_validate_text) and one for a required text field (wpcf7_validate_text* – note the asterisk at the end).


function drc_wpcf7_validate_text( $result, $tag ) {
$type = $tag['type'];
$name = $tag['name'];
$value = $_POST[$name] ;

if ( strpos( $name , 'phone' ) !== false ){
$regex = '/^(?:1(?:[. -])?)?(?:\((?=\d{3}\)))?([2-9]\d{2})(?:(?<=\(\d{3})\))? ?(?:(?<=\d{3})[.-])?([2-9]\d{2})[. -]?(\d{4})(?: (?i:ext)\.? ?(\d{1,5}))?$/';
$Valid = preg_match($regex,  $value, $matches );
if ( $Valid > 0 ) {
$formatted = "($matches[1]) $matches[2]-$matches[3]";
if ($matches[4]) $formatted .= " x$matches[4]";
// Replace the value passed in with the cleaned up version.
$_POST[$name] = $formatted ;
}
else {
$result['valid'] = false;
$result['reason'][$name] = 'Phone field invalid';
}
}

return $result;
}

This simple routine gets called to validate all text fields in your form. The strpos looks for a field name containing ‘phone’ i.e. ‘your-phonenumber’ and will validate that. This is very simple to extend to Zip codes or any other text field you would like validated. By setting $result['valid'] to false we tell Contact Form 7 that the validation failed, the value you set for $result['reason'][$name] is the message that is displayed to the user of the site.

Post from: Top SEO Tips

Simple WordPress Contact Form 7 Phone Validation

No related posts.

Top SEM Tips

Essential Link Building Tips Every Professional Needs To Keep In …

Link Building Build IT Track being built for creative commons world… Essential Link Building Tips Every Professional Needs To Keep In Mind…
link building tips – Google Blog Search

What to do if WordPress site just shows a blank page

Sometimes a poor setup for wordpress can cause the site to return a blank screen. If you try accessing through /wp-admin/ and it still returns a blank screen then there are generally three causes:

  1. A broken .htaccess file
  2. A broken theme
  3. A plugin causing issues

Go through the following steps to fix this issue:

  1. Try removing the .htaccess in the root directory and see if the site works
  2. Remove the main theme directory (using FTP access) and see if the site works.
  3. If this fails turn off your plugins (by deleting them using FTP if you can’t get in through wp-admin) and again see if the site works.
  4. If these steps fail you will need to look at your site’s error log and see if anything is output there.Other causes I’ve seen are bad installations with missing files, unsupported versions of PHP/MySQL – your error log should tell you what is going wrong.

Once you have your site working you will need to take the following steps to put things back to normal:

  1. Through the wp-admin system save the Permalinks setup again (will recreate the .htaccess file)
  2. Look through the themes and ensure only those themes you are using exist on the site. I always leave the twenty-ten or twenty-eleven theme there too in case something happens to the main theme. If the theme caused the problem you will need to debug what went wrong – use your web server’s error log to look for php errors. If you can not debug yourself then switch to another theme.
  3. Look through the plugins and ensure only those plugins you are using exist on the site.

I would also harden your site – look for rouge directories in the root and in /wp-content – I once found one directory labeled backup that wasn’t a backup directory and that was obvious when the directory was opened. Remove unnecessary theme directories, remove unnecessary plugins. Ensure the WordPress software and plugins are up to date. Install ‘Bad Behavior’ which will block people trying to hack your forms.

Post from: Top SEO Tips

What to do if WordPress site just shows a blank page

No related posts.

Top SEM Tips

DropBox High I/O Issue

DropBox is a miracle, allowing you to share files and keeping all your files up to date without the need to install a file server. This problem happened when I tried to install DropBox on a Windows Vista laptop – an old Dell Inspiration 620. The symptoms reported by the user were slow application response times since DropBox was installed.

I had a look and the machine had a few gigs of disk space but DropBox was stuck reporting ‘Downloading 10 files….’ though it never seemed to do anything.

I had a look at the Resource Monitor application and sure enough DropBox had really high read/writes and the hard disk was running at 100%.

We decided to clean up some disk space and managed to free 9GB by deleting an old installation of Google Desktop. Within minutes the 9GB had disappeared.

It seemed that DropBox was downloading files and trying to write them to the disk but was failing due to a low disk space threshold within the application (there was at least some disk space left on the device so it wasn’t a physical limit). Given the laptop only had 110GB disk I turned on FileCompression which freed up another 10GB before I left for the day. When I came in DropBox had gone to its usual low disk I/O state, hard drive had 3GB free and the system was responsive again.

Post from: Top SEO Tips

DropBox High I/O Issue

No related posts.

Top SEM Tips

WordPress How To Convert Tables to Innodb

Innodb tables are tables within MySQL that should be used instead of MyISAM for numerous reasons, the very least is that their transactional nature means they will not corrupt if you system has to reboot or lose power.

One of the problems is to change your tables from MyISAM to Innodb you need to run the following command:
ALTER TABLE YourDB.wp_posts ENGINE=InnoDB;
Once per table and that means lots of manual typing

I found a script that will create the list of tables for you:
SELECT CONCAT( 'ALTER TABLE `', table_schema, '`.`', table_name, '` ENGINE=InnoDB;' )
FROM information_schema.tables
WHERE ENGINE = 'MyISAM'
AND table_schema NOT
IN (
'information_schema', 'mysql'
)

Which outputs something like:
ALTER TABLE YourDB.wp_bad_behavior ENGINE=InnoDB;
ALTER TABLE YourDB.wp_commentmeta ENGINE=InnoDB;
ALTER TABLE YourDB.wp_comments ENGINE=InnoDB;
ALTER TABLE YourDB.wp_links ENGINE=InnoDB;
ALTER TABLE YourDB.wp_options ENGINE=InnoDB;

Which you can then cut and paste into any MySQL SQL window and run and all your tables are converted. The nice thing is if the script stops for some reason you can rerun the first script again without breaking anything.

Note – if you see ‘….’ at the end of the ‘ALTER TABLE’ lines this is phpMyAdmin truncating the output – turn on full text output and you’ll see the correct commans.

Post from: Top SEO Tips

WordPress How To Convert Tables to Innodb

No related posts.

Top SEM Tips

Unable to post message to http://googleads.g.doubleclick.net. Recipient has origin xxxx

Had this issue on one site when running Chrome and after much hunting did not find a documented solution. However I did manage to find and correct the issue after a little playing with my code.

The issue ended up being a totally unrelated

tag with a float left (it was a div around the breadcrumbs). This tag was used on other pages with ads with no issues, just one page had this problem. Unfortunately it was the template for the main part of the site so the ‘unable to post message’ issue had to be fixed.

To track down if a ‘float left’ is the cause of your problem try removing all CSS style sheets and see if the ads now start working. If the Google ads do start working then you just need to add in parts of the CSS and retest until you narrow down the code that’s causing the issue.

In my code I was able to change the float left to a ‘text-align:left;’, the ads kept displaying and my look/feel was left intact.

Post from: Top SEO Tips

Unable to post message to http://googleads.g.doubleclick.net. Recipient has origin xxxx

No related posts.

Top SEM Tips

WordPress Theme Scanning

Noticed on one of our clients someone was trying to scan the theme directory looking for style.css files that might exist. I would imagine this is to find themes installed, and their version numbers which would then allow the person scanning to use a known exploit to break into a WordPress installation.

I caught this because I have the ‘Redirection’ plugin installed and set to log all accesses that result in a 404 error – usually I use this to put in redirects to stop the visitor getting a ‘page not found’ message. In this instance it has helped highlight someone trying to hack the site.

Sample redirection log:

Jan 7, 2012 ​/wp-content​/themes​/vibrantcms​/style.css 62.205.150.221
Jan 7, 2012 ​/wp-content​/themes​/thick​/style.css 94.244.60.171
Jan 7, 2012 ​/wp-content​/themes​/therapy​/style.css 117.203.9.147
Jan 7, 2012 ​/wp-content​/themes​/thejournal​/style.css 46.180.211.171
Jan 7, 2012 ​/wp-content​/themes​/suitandtie​/style.css 114.25.38.108
Jan 7, 2012 ​/wp-content​/themes​/sophisticatedfolio​/style.css 178.125.206.36
Jan 7, 2012 ​/wp-content​/themes​/slanted​/style.css 188.112.247.128
Jan 7, 2012 ​/wp-content​/themes​/royalle​/style.css 41.189.48.151
Jan 7, 2012 ​/wp-content​/themes​/retreat​/style.css 213.88.102.151

So to stop this I:

  • Installed ‘Bad Behavior’ plugin – this knows ways people try to hack your system and blocks them. Not sure if it would catch this scan attack but it catches other scanners so is always good to install.
  • Remove unnecessary themes. I always leave the current theme and one of the WordPress installed themes (Twenty Ten/Twenty Eleven) – this way if the main theme breaks for some reason there’s always a fallback theme and I know these two themes are supported and maintained by WordPress. All other themes including the earlier WordPress themes 1.5 and 1.6 are removed.

Post from: Top SEO Tips

WordPress Theme Scanning

No related posts.

Top SEM Tips

WordPress Returns ‘Unknown Host’

I wanted to park one of my domains on top of another and use the canonical feature of WordPress to redirect the inbound link equity from the one domain to the other domain however when setup the second domain always returned ‘Unknown host: xxxx.com’.

I know if this is default behavior however I had so many plugins on this server it is often hard to tell what comes from WordPress core and what comes from plugins. As this is a live site I didn’t want to turn off all plugins until I found the one creating the issue.

My solution was to use a .htaccess 301 redirect from one hostname to the other. This redirect happens before WordPress gets involved so all WordPress sees is the domain it thinks its running on.

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.topsemtips\.com$
RewriteRule (.*) http://www.topsemtips.com/ [R=301,L]

This will redirect all requests to the domain www.topsemtips.com that do not use that as the host name (they might use topsemtips.com or xyz.com) to the same URL with the host name changed to www.topsemtips.com.

Post from: Top SEO Tips

WordPress Returns ‘Unknown Host’

No related posts.

Top SEM Tips

Google likes to push its own products

Can’t stand this personalization kick they’ve been going on – the results I got back from one recent search where totally skewed in a way I didn’t want and didn’t ask for:

They know I shared the URLs so if Google wants to implement personalization they obviously don’t need me to join Google+ – this appears to be leveraging one product to hawk another which is what Microsoft kept doing (and kept getting fined for doing) with their Internet Explorer product. Hopefully Google will get investigated and fined – as they should be for this blatantly anti-competitive behavior by a monopoly in the search market.

Post from: Top SEO Tips

Google likes to push its own products

No related posts.

Top SEM Tips

Return top