Oh no ! Another question about AdSense !

Use this forum to ask questions about how to do things with my MediaWiki Extensions.
User avatar
Pandalex
Rank 1
Rank 1
Posts: 5
Joined: November 24th, 2011, 5:47 am

Oh no ! Another question about AdSense !

Post by Pandalex »

Hello and sorry to bother you.

I have a question about AdSense but I think it's an easy one.
I downloaded it, modified the ad codes, modified localsettings.php.

So i'm almost there.
But i'm new to wikimedia and I don't know which file to modify and where it is located.

For exemple i want to add something in the footer.
I saw that the file skin.php and skintemplate.php uses this :

Code: Select all

$printfooter = "<div class=\"printfooter\">\n" . $this->printSource() . "</div>\n";
But if it try to add something here, nothing happens (even a simple text).

Same if i want to add one in the middle of a page, can i just add the <google uid="C01"></google> when editing ?

Thanks
User avatar
Pandalex
Rank 1
Rank 1
Posts: 5
Joined: November 24th, 2011, 5:47 am

Re: Oh no ! Another question about AdSense !

Post by Pandalex »

I know that my question seems ... , well I don't know which english word to use here but I think that I'm not the only to have this issue.

It's more about mediawiki's structure than your extension but anyway if you can give me a hint I would be very glad.

I may even send you flowers ! (but probably not ...)
User avatar
Pandalex
Rank 1
Rank 1
Posts: 5
Joined: November 24th, 2011, 5:47 am

Re: Oh no ! Another question about AdSense !

Post by Pandalex »

:(
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: Oh no ! Another question about AdSense !

Post by Paul »

Don't understand what you are trying to do......
User avatar
Pandalex
Rank 1
Rank 1
Posts: 5
Joined: November 24th, 2011, 5:47 am

Re: Oh no ! Another question about AdSense !

Post by Pandalex »

Hi, thx for your reply.

My issue is simple. (I think)
I added your extension adsense. Modified the PHP files to uses my ads settings.

I know that to use them I need to paste

Code: Select all

<google uid="C01"></google>
.

But I don"t know where to past it.
For exemple if I want it just below the header picture which file should I modify ?
Same if I want to add an ad below the footer.

Thanks,

Alex
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: Oh no ! Another question about AdSense !

Post by Paul »

You can only put ads in content.
User avatar
Pandalex
Rank 1
Rank 1
Posts: 5
Joined: November 24th, 2011, 5:47 am

Re: Oh no ! Another question about AdSense !

Post by Pandalex »

This is it !

I tried to change the code inside the html files instead of just adding the code in the middle of the content I was writing after using the editing button.

I know it may have sound obvious to you so thanks for taking the time to reply.

Pandalex
User avatar
raypinmau
Rank 0
Rank 0
Posts: 2
Joined: December 12th, 2011, 12:35 pm

Re: Oh no ! Another question about AdSense !

Post by raypinmau »

Paul wrote:You can only put ads in content.
In what content? You mean it should be inside the code?
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: Oh no ! Another question about AdSense !

Post by Paul »

wiki article, not code.
User avatar
sujith34
Rank 0
Rank 0
Posts: 3
Joined: December 23rd, 2011, 3:20 am

Re: Oh no ! Another question about AdSense !

Post by sujith34 »

i cant understand
Post Reply