Showing posts with label wordpress. Show all posts
Showing posts with label wordpress. Show all posts

Sunday, September 18, 2011

How to put Google Adsense inside a WordPress Blog Entry or a Page

1. Download Adsense Deluxe from this page: http://www.acmetech.com/blog/adsense-deluxe/

2. Install the plugin by uploading it to your WordPress installation.

3. Follow these instructions on my previous post: http://www.markstechstuff.com/2011/09/adsense-deluxe-plugin-for-wordpress-you.html

AdSense-Deluxe Plugin for WordPress: You do not have sufficient permissions to access this page.

I tried installing the AdSense-Deluxe Plugin for Wordpress and I was getting the error:

"You do not have sufficient permissions to access this page."

What I did to solve this was:

1. Open the file "adsense-deluxe.php"

2. Search for the line: "add_action('admin_head', 'add_adsense_deluxe_menu');"

3. Place the following line before it:

add_action('admin_menu', 'add_adsense_deluxe_menu');

4. Find any place where the variable $action_url is used. Replace it with:

adsense-deluxe_wp_plugin_v0.8/adsense-deluxe.php


Then it should work properly. Woo...

Thursday, January 27, 2011

Wordpress "The requested document was not found on this server"

The error message "The requested document was not found on this server" was happening after I moved a Wordpress blog to another directory. I followed all the correct steps here but the error was still coming.

So it turns out, my .htaccess file was missing all along. To fix this:

You need to create a file called ".htaccess" (yes including the . at the start) and copy it, via ftp or whatever you use, it in the root folder of your Wordpress blog on your server.

Inside that file, enter the following and upload it. That should do the trick:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>