• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

[nodebb-plugin-adsense] Google Adsense

Scheduled Pinned Locked Moved NodeBB Plugins
82 Posts 24 Posters 53.3k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dove
    wrote on last edited by baris
    #1

    This plugin moved to https://github.com/NodeBB-Community/nodebb-plugin-adsense


    #Install#
    npm install nodebb-plugin-adsense

    More info on GitHub

    ACP Page

    90bb2d52-0242-48c0-97d2-e88cb2281c2f-image.png

    Ad Widget

    a3f2542e-fef1-4f80-81db-06cf2c593d5b-image.png

    F 1 Reply Last reply
    6
  • F Offline
    F Offline
    finid
    replied to dove on last edited by
    #2

    @dove

    If the plugin weekend competition was still going on, you'd have won. Thank you

    D 1 Reply Last reply
    0
  • F Offline
    F Offline
    finid
    wrote on last edited by finid
    #3

    Within a post, can it show more than 1 ad? For example, if I have a very long post, can it place an ad at the top-left or top-right, and another one at the bottom of the post?

    Is this for Google AdSense code only, or will it accept any ad code?

    1 Reply Last reply
    0
  • D Offline
    D Offline
    dove
    replied to finid on last edited by
    #4

    @planner said:

    @dove

    If the plugin weekend competition was still going on, you'd have won. Thank you

    No problems, had a couple of free hours today, so decided to make something 😉

    @planner said:

    Within a post, can it show more than 1 ad? For example, if I have a very long post, can it place an ad at the top-left or top-right, and another won at the bottom of the post?

    Is this for Google AdSense code only, or will it accept any ad code?

    So far no, it can only show 1 ad inside post, but of course it can be improved and I will remember your suggestion when I update this plugin.
    And it is for Adsense only

    F 1 Reply Last reply
    0
  • F Offline
    F Offline
    finid
    wrote on last edited by
    #5

    Ok, so it's just for AdSense.

    Are you able to modify it so that any ad code can be copied and into a box in the ACP.

    1 Reply Last reply
    0
  • F Offline
    F Offline
    finid
    replied to dove on last edited by finid
    #6

    @dove
    If you have the time to make it a comprehensive ad plugin, here are a few suggestions:

    • In the ACP, provide Location boxes for ads such that ad codes can be copied there.

    • Locations could be for header, footer, left of post, right of post, middle of post, bottom of post, etc.

    D 1 Reply Last reply
    0
  • D Offline
    D Offline
    dove
    replied to finid on last edited by dove
    #7

    @planner

    @planner said:

    @dove
    If you have the time to make it a comprehensive ad plugin, here are a few suggestions:

    • In the ACP, provide Location boxes for ads such that ad codes can be copies there.

    • Locations could be for header, footer, left of post, right of post, middle of post, bottom of post, etc.

    Sure I might find some free time next week and make it

    F 1 Reply Last reply
    0
  • F Offline
    F Offline
    finid
    replied to dove on last edited by
    #8

    @dove

    Great, looking forward to it.

    1 Reply Last reply
    0
  • julianJ Offline
    julianJ Offline
    julian GNU/Linux
    wrote on last edited by
    #9

    @dove Awesome work! We have our own, although it is horribly outdated -- glad you took up the effort to make your own 🙂

    1 Reply Last reply
    0
  • F Offline
    F Offline
    finid
    wrote on last edited by finid
    #10

    Wondering what the ACP page for this plugin looks like, here's a screenshot.

    NodeBBplugin.png

    1 Reply Last reply
    1
  • julianJ Offline
    julianJ Offline
    julian GNU/Linux
    wrote on last edited by
    #11

    Thanks @planner -- I think we can safely deprecate the original adsense plugin by @psychobunny 🙂

    F 1 Reply Last reply
    0
  • F Offline
    F Offline
    finid
    replied to julian on last edited by
    #12

    @julian

    Is that how much confidence you have in @psychobunny? If I were him, I'd come after you or just send the major of Toronto to pay you a visit.

    But seriously, this is a very good plugin. It just needs to be made generic, so it can handle any display ad provider.

    1 Reply Last reply
    0
  • F Offline
    F Offline
    finid
    wrote on last edited by
    #13

    @dove,

    So I installed the plugin, but have not specified my Google AdSense id or any specific ad id in the ACP. But that didn't stop Google Ads from showing at the end of every post on my site. Image below. I'm assuming the ads are running with your AdSense id. That right?

    NodeBBad.png

    1 Reply Last reply
    0
  • F Offline
    F Offline
    finid
    wrote on last edited by
    #14

    Now the ads stopped showing, only showing the default ad I mentioned in the post above. Buggy?

    1 Reply Last reply
    0
  • D Offline
    D Offline
    dove
    wrote on last edited by
    #15

    @planner I noticed it now, there was wrong letter in if case check, so it shows ad in post even if disabled. But the most strange part is that google shows ads even without publisher ID and campagn ID specified, so I wonder who gets money for click ? Probably Google 😄
    Will update it sometime today.

    F 1 Reply Last reply
    0
  • F Offline
    F Offline
    finid
    replied to dove on last edited by
    #16

    But the most strange part is that google shows ads even without publisher ID and campagn ID specified, so I wonder who gets money for click ? Probably Google

    @dove

    Yeah, I was wondering about that too. I checked the code and I did not see any publisher ID in it. The Evil Empire has to make money any way it can.

    One other thing you might want to take a look at: My ads stopped showing and now only shows the default ads from Google, even with my publisher ID specified. The most VIP thing to do, of course, would be to make it possible to use generic ad codes in there.

    1 Reply Last reply
    0
  • psychobunnyP Offline
    psychobunnyP Offline
    psychobunny
    wrote on last edited by
    #17

    Nice work @dove 😉 totally destroyed my original plugin 😛 but this is good, one less plugin for me to have to update for 0.4x 😸

    I think a lot of people would find this useful. Thanks! 🙂

    D 1 Reply Last reply
    0
  • D Offline
    D Offline
    dove
    wrote on last edited by
    #18

    Had a few free mins again, so updated plugin.

    • Fixed bug when ad in post was displayed even if disabled in admin panel;
    • Made responsive height ad in post when enabled left or right position. For a short post ad will be 250x250 size, and for large post it will auto resize vertically to max of 600px.
    F 1 Reply Last reply
    1
  • D Offline
    D Offline
    dove
    replied to psychobunny on last edited by
    #19

    @psychobunny said:

    Nice work @dove 😉 totally destroyed my original plugin 😛 but this is good, one less plugin for me to have to update for 0.4x 😸

    I think a lot of people would find this useful. Thanks! 🙂

    Haha, I saw your plugin, but I also saw this message "This plugin has been superceded by NodeBB's Widgets System, available as of v0.4.x.", so I thought that your probably won't update it any more 😄

    1 Reply Last reply
    0
  • F Offline
    F Offline
    finid
    replied to dove on last edited by
    #20

    @dove

    Awesome and thank you very much. Looking forward to the next feature upgrade - making it ad provider agnostic

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development