PHPBB3 RC2 et Adsense sous les topics

Discussion sur le système AdSense Google, fonctionnement, intégration, experiences ...

Modérateur: Modérateurs

PHPBB3 RC2 et Adsense sous les topics

Messagede ceds » Mer Juil 04, 2007 12:52 pm

Bonjour, je viens d'installer un nouveau site avec un forum sous PHPBB3. J'ai installé adsense sur le forum, ca tourne sans problème mais je souhaiterai poser les pubs Adsense en dessous de chaque premier topic de la rubrique.

Y a t'il un tuto pour ajout Adsense sour PHPBB3 afin que les pubs se voient sur toutes les pages, un peu à la façon de CE TOPIC

Merci
ceds
 
Messages: 26
Inscription: Mer Juil 04, 2007 12:46 pm

Publicité

Messagede dcz » Dim Juil 08, 2007 1:01 pm

Oui, nous sortirons un mod pour cela, dans le même esprit.

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Messages: 21291
Inscription: Ven Avr 28, 2006 9:03 pm

Messagede ceds » Dim Juil 08, 2007 6:15 pm

Mais comment avez vous fait ici ?
ceds
 
Messages: 26
Inscription: Mer Juil 04, 2007 12:46 pm

Messagede dcz » Dim Juil 08, 2007 7:09 pm

Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Messages: 21291
Inscription: Ven Avr 28, 2006 9:03 pm

Messagede ceds » Lun Juil 09, 2007 10:41 am

OK mais pour la version PHPBB3 le viewtopic.php n'est pas écrit de la meme facon et les lignes à modifiée ne sont pas identiques que la PHPBB2
ceds
 
Messages: 26
Inscription: Mer Juil 04, 2007 12:46 pm

Messagede dcz » Lun Juil 09, 2007 5:22 pm

dcz a écrit:Oui, nous sortirons un mod pour cela, dans le même esprit.

++


On tourne en rond ;)
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Messages: 21291
Inscription: Ven Avr 28, 2006 9:03 pm

Messagede Bruno36 » Ven Nov 09, 2007 11:15 am

Bonjour!

Le mod est t'il sortie pour phpbb3 ???
Merci de votre aide
Bruno36
Bruno36
PR1
PR1
 
Messages: 171
Inscription: Mer Déc 27, 2006 11:20 am
Localisation: thizay (indre)

Messagede dcz » Sam Nov 10, 2007 11:53 am

Non pas encore.

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Messages: 21291
Inscription: Ven Avr 28, 2006 9:03 pm

Messagede Bruno36 » Sam Nov 10, 2007 12:07 pm

J'en est pourtant trouver 1 :wink:
http://www.scooter-chinois-4t.com/vracs/advertisement_mod.zip

Code: Tout sélectionner
Installation Instructions for 'Advertisement MOD' Version 1.0.B1
Select Language:  English 
About this MOD
Title:
Advertisement MOD

Description:
Advertisement templates to match prosilver and subSilver2 themes.
Google Adsense ready, but will support any banner advertisement setup.

Version:
1.0.B1

Installation Level:
Easy

Installation Time:
~3minutes

MOD Support

StarTrekGuide.com
Support Topic


phpBB.com
Support Topic


phpBBModders.net
Support Topic

Author
Username:
Highway of Life
Email:
highwayoflife@gmail.com
Name:
David Lewis
WWW:
http://startrekguide.com

Files to Edit
styles/prosilver/template/viewtopic_body.html,
styles/prosilver/template/overall_footer.html,
styles/subSilver2/template/viewtopic_body.html,
styles/subSilver2/template/overall_footer.html
Included Files
advertisement_mod/styles/prosilver/template/ad_banner.html,
advertisement_mod/styles/prosilver/template/ad_banner_footer.html,
advertisement_mod/styles/prosilver/theme/images/google.jpg,
advertisement_mod/styles/subSilver2/template/ad_banner.html,
advertisement_mod/styles/subSilver2/template/ad_banner_footer.html,
advertisement_mod/styles/subSilver2/theme/images/google.jpg

--------------------------------------------------------------------------------

Disclaimer
For security purposes, please check: http://www.phpbb.com/mods/ for the latest version of this MOD. Downloading this MOD from other sites could cause malicious code to enter into your phpBB Forum. As such, phpBB will not offer support for MODs not offered in our MODs database, located at: http://www.phpbb.com/mods/

Author Notes
Please keep tabs on the support topic(s).
This MOD will be expanded to count clicks, control shown ads, customized ads, permissions for user groups to view ads, etc.
MOD History
2007-06-10 - Version 1.0.B1

Initial public release

License
This MOD has been licensed under the following license:

http://opensource.org/licenses/gpl-license.php GNU General Public License v2

Other Notes
Before adding this MOD to your forum, you should back up all files related to this MOD

This MOD was designed for phpBB3.0 and may not function as stated on other phpBB versions. MODs for phpBB3.0 will not work on phpBB2.0 and vice versa.



--------------------------------------------------------------------------------
File Copy

Copy: advertisement_mod/styles/prosilver/template/ad_banner.html
To: styles/prosilver/template/ad_banner.html

Copy: advertisement_mod/styles/prosilver/template/ad_banner_footer.html
To: styles/prosilver/template/ad_banner_footer.html

Copy: advertisement_mod/styles/prosilver/theme/images/google.jpg
To: styles/prosilver/theme/images/google.jpg

Copy: advertisement_mod/styles/subSilver2/template/ad_banner.html
To: styles/subSilver2/template/ad_banner.html

Copy: advertisement_mod/styles/subSilver2/template/ad_banner_footer.html
To: styles/subSilver2/template/ad_banner_footer.html

Copy: advertisement_mod/styles/subSilver2/theme/images/google.jpg
To: styles/subSilver2/theme/images/google.jpg
Edits
s↑↓
Use your keyboard to navigate the code boxes. You may also hit 's' on your keyboard to go to the first code box.

Open: styles/prosilver/template/viewtopic_body.html
Comments
Add the ad banner after the first post in the topic view in prosilver.
Find
Tip: This may be a partial find and not the whole line.

Code:Select All
<!-- END postrow -->
Add before
Tip: Add these lines on a new blank line before the preceding line(s) to find.

Code:Select All
    <!-- IF postrow.S_FIRST_ROW --><!-- INCLUDE ad_banner.html --><!-- ENDIF -->

Open: styles/prosilver/template/overall_footer.html
Comments
Add the ad banner to the overall footer in prosilver.
Find
Tip: This may be a partial find and not the whole line.

Code:Select All
<!--
   We
Add before
Tip: Add these lines on a new blank line before the preceding line(s) to find.

Code:Select All
    <!-- INCLUDE ad_banner_footer.html -->

Open: styles/subSilver2/template/viewtopic_body.html
Comments
Add the ad banner after the first post in the topic view in subSilver2.
Find
Tip: This may be a partial find and not the whole line.

Code:Select All
<!-- END postrow -->
Add before
Tip: Add these lines on a new blank line before the preceding line(s) to find.

Code:Select All
    <!-- IF postrow.S_FIRST_ROW --><!-- INCLUDE ad_banner.html --><!-- ENDIF -->

Open: styles/subSilver2/template/overall_footer.html
Comments
Add the ad banner to the overall footer in subSilver2.
Find
Tip: This may be a partial find and not the whole line.

Code:Select All
<div id="wrapfooter">
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code:Select All
    <!-- INCLUDE ad_banner_footer.html -->

DIY Instructions
These are manual instructions that cannot be performed automatically. You should follow these instructions carefully.

Code:Select All
Edit the ad_banner.html and ad_banner_footer.html files to add your own Google Adsense publication ID or your own banner advertisement.

--------------------------------------------------------------------------------

Save all files. End of MOD.
You have finished the installation for this MOD. Upload all changed files to your website. If the installation went bad, simply restore your backed up files.

MOD UA XSLT File Copyright © 2007 The phpBB Group, this MOD is copyright to the authors listed above.
Merci de votre aide
Bruno36
Bruno36
PR1
PR1
 
Messages: 171
Inscription: Mer Déc 27, 2006 11:20 am
Localisation: thizay (indre)

Messagede dcz » Sam Nov 10, 2007 2:38 pm

Bruno36 a écrit:J'en est pourtant trouver 1


Je parlais du mod que nous sortirons.

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Messages: 21291
Inscription: Ven Avr 28, 2006 9:03 pm

Messagede Bruno36 » Sam Nov 10, 2007 3:15 pm

Oui je donne celui la juste pour patienté :wink:
Merci de votre aide
Bruno36
Bruno36
PR1
PR1
 
Messages: 171
Inscription: Mer Déc 27, 2006 11:20 am
Localisation: thizay (indre)

Messagede El-Cherubin » Dim Déc 30, 2007 6:25 pm

Alors la team seo va nous en sortir un... good ca :)

Intégré de base dans la premod je suppose?!
El-Cherubin
PR2
PR2
 
Messages: 227
Inscription: Mer Aoû 08, 2007 11:08 am
Localisation: France, Paris, Marseille, ou l'Oise.

Messagede netsba » Lun Jan 14, 2008 9:56 pm

il y a une solution qui marche plutot bien ici

tester et approuvé sur mon forum. :wink:
netsba
 
Messages: 5
Inscription: Ven Nov 16, 2007 7:16 pm

Messagede Oouzbek » Mer Aoû 13, 2008 5:40 pm

Bonjour,

alors à pour qd le MOD d'intégration des AdSens pour phpBB3 ?

Tu veux dire les autorisations ?

Voici le code que j'utilise pour l'instant, il permet de conditionner l'affichage des pubs aux autorisation du forum dans lequel se trouve un sujet.

Ce code affichera un pub, au même endroit que ce site, uniquement dans les forums publics.

Je ferais un mod complet un peut plus tard :


Ouvrir :

Code:
viewtopic.php


Trouver :

Code:
$template->pparse('body');


Ajouter avant :

Code:
// Google adSence mod
$adsence_code = 'un code alternatif ou rien';
if ( $forum_topic_data['auth_view'] == 0 ) {
$adsence_code = 'le code complet pour afficher une pub';

}
$template->assign_vars(array(
'ADSENCE_CODE' => $adsence_code)
);


Il faut bien entendu mettre son code adsense et éventuellement un code alternatif, ou rien.

Et on peut ajouter plus de critères, ip user etc, là on teste juste que le forum est public avec :
Code:
if ( $forum_topic_data['auth_view'] == 0 ) {


enfin pour le template, c'est viewtopic_body.tpl dans ce cas.

J'ai trouvé :

Code:
<!-- END postrow -->


Et j'ai ajouté après :

Code:
<tr>
<td width="100%" align="center" valign="top" class="row2" colspan="2">{ADSENCE_CODE}</td>
</tr>


De cette façon, on est bien dans la charte, et on évite de s'embêter avec des affichages inutiles, pollueur de stats.

++


Avec impatience,

Oouz.
Avatar de l’utilisateur
Oouzbek
 
Messages: 18
Inscription: Lun Juil 28, 2008 12:37 pm
Localisation: Belgique, Bruxelles

Messagede SeO » Jeu Aoû 14, 2008 1:02 pm

SeO
Admin
Admin
 
Messages: 6334
Inscription: Mer Mar 15, 2006 9:41 pm

Suivante

Retourner vers Google AdSense

 


  • Articles en relation
    Réponses
    Vus
    Dernier message

Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 1 invité