Add Google Adsense to Dotclear 2
A blog, it is a means to become visible on Internet Only this?
It is also possible to round off its ends of month by adding a little of advertising. The Google Adsense programme is according to me the most discreet and not destructive of the graphic coherence of your blog. Here is how include it into Dotclear 2: Voilà comment l’intégrer à Dotclear 2:
We are going to edit here only the files of the topic of your Blog Dotclear 2.
Attention!
Above all, our more security, think of making well a maintenance of your common topic, in case a modification would turn badly.
Creation of count adsense:
Go to create your count Adsense on: https://www.google.com / accounts / ManageAccount
Link him to your common count Google or create a new there.
Recovery of code to be inserted:
Return you on: https://www.google.com / adsense / code
Follow stages, in séléctionnant and configurant the type of blindfold which seems to you the most adapting in your graphic charter: For information, format and colours used on this blog are:
google_ad_width = 468; google_ad_height = 60; google_ad_format = "468×60_as "; google_ad_format = “468×60_as”;
google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = “666666 ″; google_color_text = "4C4C4C "; google_color_url = "E1771E"; google_color_link = “666666″; google_color_text = “4C4C4C”; google_color_url = “E1771E”;
Once you generated such a precious code, copy it and put it in a text file which traine here there.
Insertion of code:
Appointment in your file of topic if your topic includes files html dotclear 2 or then change files directly html dotclear of the file of topic by defaut. Add code Adsense to the following places:
In post.html
Put your complete code Adsense enter the beacon </tpl:Attachments>
and the comment <!
- # Comments->
In tag.html
Put your complete code Adsense just before the beacon <tpl:EntriesFooter>
(there will be a beacon </div> just above normally.)
In tags.html
Put your complete code Adsense just before the beacon and the comment </div> <!
- End #main-> (there will be a beacon </div> just above normally.
In archives_month.html
Put your complete code Adsense just before the beacon and the comment </div> <!
- End #main-> (there will be a beacon </div> just above normally.
In search.html
Put your complete code Adsense just before the beacon <tpl:EntriesFooter>
(there will be a beacon </div> just above normally.)
In category.html
Put your complete code Adsense enter the beacon </tpl:EntryIf>
and the beacon <p class = ”post - information-co”>
In home.html
Put your complete code Adsense enter the beacon </tpl:EntryIf>
and the beacon <p class = ”post - information-co”>
In archives.html
Put your complete code Adsense just before the beacon and the comment </div> <!
- End #main-> (there will be a beacon </div> just above normally.
And here normally everything walks !





On Tuesday, June 5th, 2007 in 22:57
Interesting
On the contrary, if no wants to add it just under the banner, in the header, history of step to repeat it ten times and to locate it well above the ticket?
I use "Giacomo" de Kozlika on DC2B6
Thank you.
On Saturday, August 11th, 2007 in 18:32
Bah, I have no again made modifications, but I find Your pubs nevertheless celà very strange are put at the end of ticket and however you make numerous insertions a bit everywhere, and I find it difficult to understand logic. Is possible you explain?
Is what you made the same thing to put your adsense at the end of ticket? Because I would like I could insert them there xhtml but encode him google adsense is not valid xhtml, furthermore I do not wish that he appears for all tickets (I am in multieditor)
On Monday, December 10th, 2007 in 20:25
without twisting in theme, you can inserer script adsence in a widget text by encircling it with a beacon DIV.
On Sunday, October 5th, 2008 in 22:43
thank you for ptit explanation but I have find a widget for any maitre in place
quoted admin (in the widget)
- Show on the homepage
- Management of code google adsense (16 figures)
- Management of general colours
- Management of format (ex: 128X90_as)
- Possibility of choosing styles of angles (3 choices possible)
- Positioning (left, centre, right)
- Display only there super - admin (big advantage on a deck if you want that they could not take your pub away)
public
Show advertising according to your parametres
source forum dotclear