The MU forums have moved to WordPress.org

Google adsense in wmpu (19 posts)

  1. hobsdv
    Member
    Posted 17 years ago #

    is it possible to have my google adsense displayed in all user blogs and if so how would i do it

  2. gwagenknecht
    Member
    Posted 17 years ago #

    Yes it's possible. You'll have to modify in your WPMU installation to include the Google Ads.

  3. drmike
    Member
    Posted 17 years ago #

    Copy and paste it into each theme? (ie sidebar)

    I would suggest copying and pasting it like I have it on my main blog but to do that it took six edits. Do it in the sidebar, it's only one.

  4. hobsdv
    Member
    Posted 17 years ago #

    is there any code i need to put before the google ads as when i pasted the code in they did not show

  5. drmike
    Member
    Posted 17 years ago #

    Could you stick up your code somewhere where we can see what you've done? That's the best way to tell you what's off.

    I wouldn't paste it here as bbpress has a habit of stripping stuff out even when you use the backticks and you're file will probably be huge.

    Throw up a google.txt file in your root and paste it to that and I'll or someone else will take a look.

  6. hobsdv
    Member
    Posted 17 years ago #

  7. drmike
    Member
    Posted 17 years ago #

    Hmm, I'm still learning on WPMU's setup here and it's 404ing for me. Probably in the htaccess file which looks like a mess to me although for good reason.

    I hate to ask but could you email it to me and I'll look at it that way please?

    theapparatus ( at ) gmail ( dot ) com

    I'm changing computer labs here shortly so it may be a few minutes before I get back to you.

    -drmike

  8. hobsdv
    Member
    Posted 17 years ago #

    link works now

  9. drmike
    Member
    Posted 17 years ago #

    And I got your email and sent you back the reply.

    I'm thinking that because the code is placed outside of the sidebar div tags, the browser doesn't know where to put it. With CSS you can pretty much place stuff on the browser screen but since it was outside of the div marks, it wouldn't show up where the poster wanted it to be.

    Still kind of strange for it to not show up at all though.

    I suggested that he or she place the script within the sidebar div tags. Hope this will help.

    -drmike

  10. RaceDay
    Member
    Posted 17 years ago #

    I just pasted the code right into the sidebar--thats all the work it took for me.

  11. gwagenknecht
    Member
    Posted 17 years ago #

    AFAIK you have to edit the sidebar (or the header, footer or whatever) of every theme if you want it to appear on every blog.

    I'm not sure if there is also a way using filters/actions and writing a plug-in that does add it to all pages.

  12. hobsdv
    Member
    Posted 17 years ago #

    managed it thanks

  13. cfrazier
    Member
    Posted 17 years ago #

    I've always thought that themes should just design AdSense into the functions.php file so that when a person installs the theme, they can specify the account they're using and layout (including color coordination) just happens. Of course, if the user doesn't have an account, the design displays without the ads.

  14. septemberq
    Member
    Posted 16 years ago #

    Hi Guys
    I'm NEW Mu and PHP.
    When i attempted to paste in the default sidebar I got an error message "unable to display page" or something like that.

    any ideas?
    Many thanks

  15. mikeboy3
    Member
    Posted 16 years ago #

    You should make a small php file with only your adsense code, and call it in your themes, that way, if you need to make an edit, you just edit one file instead of every single theme.

  16. Bloggproffs
    Member
    Posted 16 years ago #

    Thats just stupid who the heck wants the exact same look on all ads? that will only look stupid and obvious MFA, you should integrated the ads and give them theme like colors and form

  17. septemberq
    Member
    Posted 16 years ago #

    Thank you all.
    I appreciate everyone's help.
    I know my next question is very routine, but I just want to hear some confirmation as my first try failed.
    How can I put an ad at the Top of every default page?
    Once again thank you all.

  18. mikeboy3
    Member
    Posted 16 years ago #

    Bloggproffs, dude, its not stupid, it depends on the way you want to implement it, if you create a new top bar, that has a couple of useful links and an ad, then it should be the same color for all themes, it is just relative to the use you want to give it.

  19. Bloggproffs
    Member
    Posted 16 years ago #

    uhm, if u create a topbar the bar would be site-wide? atleast for the ones that has choosen to install the plugin, ergo you only need to put the ad in one file no need for include.

About this Topic

  • Started 17 years ago by hobsdv
  • Latest reply from Bloggproffs