Fork me on GitHub




« 1 (2)


Re: Newbb et adsense.
Régulier
Inscrit: 11/10/2010 10:47
Messages: 204
Bonsoir je ressors ce sujet.

Sous xoops 2.5 et avec Cbb et non plus Newbb

j'ai donc placé le code plus haut dans sa version 1 message sur 2 (meme fichier que pour newbb et meme endroit)

Le bandeau google s'affiche bien sur le 2e message mais pas sur le 4e le 6e etc ...

Extrait de mon fichier
newbb_thread.html
(autour de la ligne 89, a partir ligne 77)

<tr>
    <
td width="20%" class="foot">
    <
a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/action.transfer.php?post_id=<{$topic_post.post_id}>" target="_blank" title="<{$smarty.const._MD_TRANSFER_DESC}>"><img src="<{$xoops_url}>/modules/<{$xoops_dirname}>/images/external.png" alt="<{$smarty.const._MD_TRANSFER_DESC}>" /> <{$smarty.const._MD_TRANSFER}></a>
    </
td>
    <
td colspan="2" class="foot"><div align="right">
    <{if 
$mode gt 1}>
        <
a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/action.post.php?post_id=<{$topic_post.post_id}>&amp;op=split&amp;mode=1" target="_self" title="<{$smarty.const._MD_SPLIT_ONE}>"><{$smarty.const._MD_SPLIT_ONE}></a> | 
        <
a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/action.post.php?post_id=<{$topic_post.post_id}>&amp;op=split&amp;mode=2" target="_self" title="<{$smarty.const._MD_SPLIT_TREE}>"><{$smarty.const._MD_SPLIT_TREE}></a> | 
        <
a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/action.post.php?post_id=<{$topic_post.post_id}>&amp;op=split&amp;mode=3" target="_self" title="<{$smarty.const._MD_SPLIT_ALL}>"><{$smarty.const._MD_SPLIT_ALL}></a> | 
        <
input type="checkbox" name="post_id[]" id="post_id[<{$topic_post.post_id}>]" value="<{$topic_post.post_id}>" />
    <{else}>
        <{foreach 
item=btn from=$topic_post.thread_buttons}> <a href="<{$btn.link}>&amp;post_id=<{$topic_post.post_id}>" title="<{$btn.name}>"> <{$btn.image}></a> <{/foreach}>

    
  <{if 
$topic_post.post_no == 2}> <center>
MON SCRIPT ADSENSE<center>
<{/if}>   
    
    
     <{/if}>



Bien sur j'ai vidé tous mes caches,

Si vous pouviez m'aider,

Merci

Posté le : 05/12/2010 19:34
Partager Twitter Partagez cette article sur GG+
Re: Newbb et adsense.
Semi pro
Inscrit: 10/11/2004 13:40
Messages: 1659
Bonsoir

C'est ce code là qu'il faut mettre pour afficher tous les deux posts

<{if $topic_post.post_no == 0}>
Code.......
<{/if}>

Posté le : 05/12/2010 20:38

PS : Toujours faire une sauvegarde des fichiers avant de les modifier !
-------------------------------------------
http://www.aideordi.com
Partager Twitter Partagez cette article sur GG+
Re: Newbb et adsense.
Régulier
Inscrit: 11/10/2010 10:47
Messages: 204
I M P E C !!!
Merci !

Posté le : 05/12/2010 20:50

Retrouvez moi sur http://www.hkrag.fr
Autre : http://www.cdf-groupe.org
Solutions Hebergement Xoops: http://www.cdfi-hebergement.com
Partager Twitter Partagez cette article sur GG+

 Haut   Précédent   Suivant
« 1 (2)



Vous pouvez voir les sujets.
Vous ne pouvez pas débuter de nouveaux sujets.
Vous ne pouvez pas répondre aux contributions.
Vous ne pouvez pas éditer vos contributions.
Vous ne pouvez pas effacez vos contributions.
Vous ne pouvez pas ajouter de nouveaux sondages.
Vous ne pouvez pas voter en sondage.
Vous ne pouvez pas attacher des fichiers à vos contributions.
Vous ne pouvez pas poster sans approbation.

Propulsé avec XOOPS | Graphisme adapté par Tatane, Grosdunord, Montuy337513

43 Personne(s) en ligne (36 Personne(s) connectée(s) sur Forum) | Utilisateur(s): 0 | Invité(s): 43 | Plus ...