Page 1 of 2
Oh no ! Another question about AdSense !
Posted: November 24th, 2011, 5:54 am
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
Re: Oh no ! Another question about AdSense !
Posted: November 26th, 2011, 10:48 am
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 ...)
Re: Oh no ! Another question about AdSense !
Posted: November 29th, 2011, 3:26 pm
by Pandalex
Re: Oh no ! Another question about AdSense !
Posted: November 29th, 2011, 6:30 pm
by Paul
Don't understand what you are trying to do......
Re: Oh no ! Another question about AdSense !
Posted: December 1st, 2011, 3:46 am
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
.
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
Re: Oh no ! Another question about AdSense !
Posted: December 1st, 2011, 10:59 pm
by Paul
You can only put ads in content.
Re: Oh no ! Another question about AdSense !
Posted: December 2nd, 2011, 4:10 am
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
Re: Oh no ! Another question about AdSense !
Posted: December 12th, 2011, 12:46 pm
by raypinmau
Paul wrote:You can only put ads in content.
In what content? You mean it should be inside the code?
Re: Oh no ! Another question about AdSense !
Posted: December 12th, 2011, 8:25 pm
by Paul
wiki article, not code.
Re: Oh no ! Another question about AdSense !
Posted: December 23rd, 2011, 3:21 am
by sujith34
i cant understand