Ashus.ashus.net

Full Version: Google AdSense Extension for PhpBB 3.1.x
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6
An extension for phpBB 3.1 that allows administrators to easily add their Google AdSense ads after first post in topic display details.

Modified from this extension: Google Analytics from phpBB team
Thanks guys.


Quick Install


You can install this on the latest release of phpBB 3.1 by following the steps below:

  1. Download the latest release
  2. Unzip the downloaded release.
  3. Copy the `ashus` directory to `phpBB/ext/ashus/` (if done correctly, you'll have the main composer JSON file at (your forum root)/ext/ashus/adsense/composer.json).
  4. Navigate in the ACP to `Customise -> Manage extensions`.
  5. Look for `Google AdSense` under the Disabled Extensions list, and click its `Enable` link.
  6. Set up and configure Google AdSense by navigating in the ACP to `General` -> `Board Configuration` -> `Board Settings`.

Uninstall


  1. Navigate in the ACP to `Customise -> Extension Management -> Extensions`.
  2. Look for `Google AdSense` under the Enabled Extensions list, and click its `Disable` link.
  3. To permanently uninstall, click `Delete Data` and then delete the `/ext/ashus/adsense` directory.

Support


License


GNU General Public License v2

lws96

Can this be put on the index page, or can I limit it to not be viewable by users who donate to the forums?
lws96: No, the extension can't do that.

Doc Color

Is there a way to choose the audience ? Can adsense be disabled for registered users ?
Doc Color: No, but thanks for the interesting idea.

zoser

Hi.

How i can center the banner. I tried with but is not possible.

Is very interesting the option to show banners guests or members.

thanks.
zoser: Try this CSS:
Code:
.adsense .postbody .content {
    text-align: center;
}

Guest

zoser Wrote:Hi.

How i can center the banner. I tried with but is not possible.

Is very interesting the option to show banners guests or members.

thanks.

I tried too with this code, but not working :-(

Code:
....adsense code...

zoser

Ashus Wrote:zoser: Try this CSS:
Code:
.adsense .postbody .content {
    text-align: center;
}
Directly on the textbox of the extension?
No, inside your template's CSS styles files.
Pages: 1 2 3 4 5 6