Oh no ! Another question about AdSense !

Use this forum to ask questions about how to do things with my MediaWiki Extensions.

Oh no ! Another question about AdSense !

Postby Pandalex » November 24th, 2011, 5:54 am

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 !

Postby Pandalex » November 26th, 2011, 10:48 am

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 !

Postby Pandalex » November 29th, 2011, 3:26 pm

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

Re: Oh no ! Another question about AdSense !

Postby Paul » November 29th, 2011, 6:30 pm

Don't understand what you are trying to do......
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 !

Postby Pandalex » December 1st, 2011, 3:46 am

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
Pandalex
Rank 1
Rank 1
 
Posts: 5
Joined: November 24th, 2011, 5:47 am

Re: Oh no ! Another question about AdSense !

Postby Paul » December 1st, 2011, 10:59 pm

You can only put ads in content.
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 !

Postby Pandalex » December 2nd, 2011, 4:10 am

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
Pandalex
Rank 1
Rank 1
 
Posts: 5
Joined: November 24th, 2011, 5:47 am

Re: Oh no ! Another question about AdSense !

Postby raypinmau » December 12th, 2011, 12:46 pm

Paul wrote:You can only put ads in content.

In what content? You mean it should be inside the code?
User avatar
raypinmau
Rank 0
Rank 0
 
Posts: 2
Joined: December 12th, 2011, 12:35 pm

Re: Oh no ! Another question about AdSense !

Postby Paul » December 12th, 2011, 8:25 pm

wiki article, not 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 !

Postby sujith34 » December 23rd, 2011, 3:21 am

i cant understand
User avatar
sujith34
Rank 0
Rank 0
 
Posts: 3
Joined: December 23rd, 2011, 3:20 am

Next

Return to MediaWiki Extensions 'How Do I' Questions

Who is online

Users browsing this forum: No registered users and 1 guest

cron