Google AdSense Extension for PhpBB 3.1.x

Ostatní
User avatar
Ashus
Administrátor
Posts: 417
Joined: 07. 07. 2007 10:51
Location: Ostrava - Polanka nad Odrou
Contact:

Google AdSense Extension for PhpBB 3.1.x

Postby Ashus » 27. 04. 2015 00:11

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
Attachments
ashus-adsense.zip
1.0.0
(15.44 KiB) Downloaded 213 times
Image
Coffee phreak!
lws96

Re: Google AdSense Extension for PhpBB 3.1.x

Postby lws96 » 13. 06. 2015 21:14

Can this be put on the index page, or can I limit it to not be viewable by users who donate to the forums?
User avatar
Ashus
Administrátor
Posts: 417
Joined: 07. 07. 2007 10:51
Location: Ostrava - Polanka nad Odrou
Contact:

Re: Google AdSense Extension for PhpBB 3.1.x

Postby Ashus » 13. 06. 2015 21:43

lws96: No, the extension can't do that.
Image
Coffee phreak!
Doc Color

Re: Google AdSense Extension for PhpBB 3.1.x

Postby Doc Color » 16. 06. 2015 11:50

Is there a way to choose the audience ? Can adsense be disabled for registered users ?
User avatar
Ashus
Administrátor
Posts: 417
Joined: 07. 07. 2007 10:51
Location: Ostrava - Polanka nad Odrou
Contact:

Re: Google AdSense Extension for PhpBB 3.1.x

Postby Ashus » 16. 06. 2015 19:23

Doc Color: No, but thanks for the interesting idea.
Image
Coffee phreak!
zoser

Re: Google AdSense Extension for PhpBB 3.1.x

Postby zoser » 18. 06. 2015 11:33

Hi.

How i can center the banner. I tried with

Code: Select all

<center></center>
but is not possible.

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

thanks.
User avatar
Ashus
Administrátor
Posts: 417
Joined: 07. 07. 2007 10:51
Location: Ostrava - Polanka nad Odrou
Contact:

Re: Google AdSense Extension for PhpBB 3.1.x

Postby Ashus » 18. 06. 2015 11:36

zoser: Try this CSS:

Code: Select all

.adsense .postbody .content {
    text-align: center;
}
Image
Coffee phreak!
Guest

Re: Google AdSense Extension for PhpBB 3.1.x

Postby Guest » 18. 06. 2015 11:37

zoser wrote:Hi.

How i can center the banner. I tried with

Code: Select all

<center></center>
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: Select all

<!-- IF not S_USER_LOGGED_IN -->
....adsense code...
<!-- ENDIF -->
zoser

Re: Google AdSense Extension for PhpBB 3.1.x

Postby zoser » 18. 06. 2015 11:44

Ashus wrote:zoser: Try this CSS:

Code: Select all

.adsense .postbody .content {
    text-align: center;
}
Directly on the textbox of the extension?
User avatar
Ashus
Administrátor
Posts: 417
Joined: 07. 07. 2007 10:51
Location: Ostrava - Polanka nad Odrou
Contact:

Re: Google AdSense Extension for PhpBB 3.1.x

Postby Ashus » 18. 06. 2015 12:10

No, inside your template's CSS styles files.
Image
Coffee phreak!

Who is online

Users browsing this forum: No registered users and 1 guest

cron