Fork me on GitHub




« 1 ... 8 9 10 (11) 12 13 14 ... 34 »


Re: module DiffuAds
Semi pro
Inscrit: 06/09/2005 01:34
De Royan
Messages: 609
salut franck

merci je l'avais lu j'ai effectué les modifs mais pas eu le temps de tester

Posté le : 25/10/2011 19:01
Partager Twitter Partagez cette article sur GG+
Re: module DiffuAds
Régulier
Inscrit: 15/02/2011 22:12
Messages: 288
salut

Sauf erreur, un problème dans le template diffuads_item.html, les conditions <{if}> se croisent.

ERREUR TEMPLATE 01

Code original
<!-- prix et conditions -->
<
table width="100%" id="ads" border="0" cellspacing="1" cellpadding="0">
<
tr>
<
td>
<{if 
$annonce.price '0'}> 
<
h1 id="ads" align="left" style="padding:0;"  alt="<{$smarty.const._MD_DIFFUADS_DESCANNONCE}> <{$annonce.type}> <{$annonce.title}> <{$annonce.price}> <{$annonce.monnaie}>" title="<{$smarty.const._MD_DIFFUADS_DESCANNONCE}> <{$annonce.type}>: <{$annonce.title}> <{$annonce.price}> <{$annonce.monnaie}>"><{$smarty.const._MD_DIFFUADS_PRICE2}>&nbsp;<{$annonce.price}>&nbsp;<{$annonce.monnaie}><{if $annonce.price_option}>&nbsp;-&nbsp;<{$smarty.const._MD_DIFFUADS_BLOC_COND}>&nbsp;<{$annonce.price_option}></h1>

<{/if}>
<{else}>
&
nbsp;
<{/if}>

</
td>
</
tr>
</
table>


Correction
<!-- prix et conditions -->
    <
table width="100%" id="ads" border="0" cellspacing="1" cellpadding="0">
        <
tr>
            <
td>
                <{if 
$annonce.price '0'}> 
                    <
h1 id="ads" align="left" style="padding:0;" alt="<{$smarty.const._MD_DIFFUADS_DESCANNONCE}> <{$annonce.type}> <{$annonce.title}> <{$annonce.price}> <{$annonce.monnaie}>" title="<{$smarty.const._MD_DIFFUADS_DESCANNONCE}> <{$annonce.type}>: <{$annonce.title}> <{$annonce.price}> <{$annonce.monnaie}>">
                        <{
$smarty.const._MD_DIFFUADS_PRICE2}>&nbsp;<{$annonce.price}>&nbsp;<{$annonce.monnaie}>
                        <{if 
$annonce.price_option}>&nbsp;-&nbsp;<{$smarty.const._MD_DIFFUADS_BLOC_COND}>&nbsp;<{$annonce.price_option}><{/if}>
                    </
h1>
                <{else}>
                    &
nbsp;
                <{/if}>
            </
td>
        </
tr>
    </
table>

Posté le : 25/10/2011 22:27
Partager Twitter Partagez cette article sur GG+
Re: module DiffuAds
Régulier
Inscrit: 15/02/2011 22:12
Messages: 288
Dans le même template, à la suite : un tableau semble mal fermé (</tr></table>)

ERREUR TEMPLATE 02

Code original
<!-- tags/mots cles ajout rapide CPascal type (rappelajouter region ville code postal departement dans tags) -->
<
td width="25%" align="left">
<
div id="centerCcolumn" class="blockTitle" align="center" alt="<{$smarty.const._MD_DIFFUADS_DESCANNONCE}> <{$annonce.type}>: <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_BLOC_TAGS}> <{$smarty.const._MD_DIFFUADS_DESCANNONCE}> <{$annonce.type}>: <{$annonce.title}>"><{$smarty.const._MD_DIFFUADS_BLOC_TAGS}></div>
<{
$link_tags}> - <a href="<{$xoops_url}>/modules/DiffuAds/adslist.php?search=1&words=<{$annonce.type}>" alt="<{$smarty.const._MD_DIFFUADS_TAGS_REFERENCE}> <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_TAGS_REFERENCE}> <{$annonce.type}> <{$annonce.title}>"><{$annonce.type}></a>
</
td>
</
td>
</
tr>
</
table>


Correction
<!-- tags/mots cles ajout rapide CPascal type (rappelajouter region ville code postal departement dans tags) -->
                        <
td width="25%" align="left">
                            <
div id="centerCcolumn" class="blockTitle" align="center" alt="<{$smarty.const._MD_DIFFUADS_DESCANNONCE}> <{$annonce.type}>: <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_BLOC_TAGS}> <{$smarty.const._MD_DIFFUADS_DESCANNONCE}> <{$annonce.type}>: <{$annonce.title}>">
                                <{
$smarty.const._MD_DIFFUADS_BLOC_TAGS}>
                            </
div>
                            <{
$link_tags}> - <a href="<{$xoops_url}>/modules/DiffuAds/adslist.php?search=1&words=<{$annonce.type}>" alt="<{$smarty.const._MD_DIFFUADS_TAGS_REFERENCE}> <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_TAGS_REFERENCE}> <{$annonce.type}> <{$annonce.title}>"><{$annonce.type}></a>
                        </
td>
                    </
tr>
                </
table>
            </
td>
        </
tr>
    </
table>

Posté le : 25/10/2011 22:35
Partager Twitter Partagez cette article sur GG+
Re: module DiffuAds
Régulier
Inscrit: 15/02/2011 22:12
Messages: 288
ERREUR TEMPLATE 03

Pas trouvé la cause mais ce code fait planter la page : duplication du texte de l'annonce, sous forme de lien hypertexte à côté de l'icône d'envoi à un ami. Je crois que c'est lié également à l'emploi d'un RichTextEditor pour rédiger ses annonces

<td align="left">
                            
envoyer a un ami    
                            
<!-- <img src="<{$xoops_url}>/modules/DiffuAds/images/icon/envoi_ami.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_ENVOIAMIE}> <{$annonce.type}>: <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_ENVOIAMIE}> <{$annonce.type}>: <{$annonce.title}>" style="vertical-align: middle; padding-top: .2em;" />&nbsp;<a href='<{$email_ami}>' rel="nofollow" rel="external" alt="<{$smarty.const._MD_DIFFUADS_ENVOIAMIE}> <{$annonce.type}>: <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_ENVOIAMIE}> <{$annonce.type}>: <{$annonce.title}>"><{$smarty.const._MD_DIFFUADS_ENVOIAMIE}></a> -->
                            

                        </
td>

Posté le : 25/10/2011 23:13
Partager Twitter Partagez cette article sur GG+
Re: module DiffuAds
Régulier
Inscrit: 15/02/2011 22:12
Messages: 288
ERREUR TEMPLATE 04

Il manque une ouverture de tableau au niveau de <!--//bloc contact et infos -->

Code original
</table>
<!--
//bloc contact et infos -->
<td width="40%" align="center">


Correction
</table>
<!--
//bloc contact et infos -->

    
<table>
        <
tr>
        
            <
td align="center">

(note width="40%" ne se justifie pas, si toutefois la correction est juste)

Posté le : 25/10/2011 23:19
Partager Twitter Partagez cette article sur GG+
Re: module DiffuAds
Régulier
Inscrit: 15/02/2011 22:12
Messages: 288
ERREUR TEMPLATE 05

Une condition <{if}> semble mal placée par rapport aux cellules de tableau <td>

Code original
<!--- partie gestion par annonceur et admin --->
<
table width="100%" border="0" cellspacing="1" cellpadding="0">
<
tr>
<
td>


<{if 
$xoops_isadmin}>



<!-- 
gestion ADMIN -->
    <
div id="centerCcolumn" class="blockTitle" alt="<{$smarty.const._MD_DIFFUADS_GESTIONADM}>" title="<{$smarty.const._MD_DIFFUADS_GESTIONADM}>"><{$smarty.const._MD_DIFFUADS_GESTIONADM}></div>
    <
div style="clear: both;"></div>
    <!-- 
gestion ADMINtoutes les annonces de annonceur modif CPascal ajout "annonce.submitter_name" -->
    <
img src="<{$xoops_url}>/modules/DiffuAds/images/icon/annonceur.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_ALLADS}>&nbsp;<{$annonce.submitter_name}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_ALLADS}>&nbsp;<{$annonce.submitter_name}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/adsuserlist.php?uid=<{$annonce.uid}>" alt="<{$smarty.const._MD_DIFFUADS_ALLADS}>&nbsp;<{$annonce.submitter_name}>" title="<{$smarty.const._MD_DIFFUADS_ALLADS}>&nbsp;<{$annonce.submitter_name}>"><{$smarty.const._MD_DIFFUADS_ALLADS}>&nbsp;<{$annonce.submitter_name}></a
    <
div style="clear: both;"></div>
    <!-- 
gestion ADMINmodifier annonce -->
    <
img src="<{$xoops_url}>/modules/DiffuAds/images/icon/modifier.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_EDITADS}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_EDITADS}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/admin/adsmod.php?op=edit&amp;ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_EDITADS}>" title="<{$smarty.const._MD_DIFFUADS_EDITADS}>"><{$smarty.const._MD_DIFFUADS_EDITADS}></a>             
    <
div style="clear: both;"></div>
<!-- 
ajout option CPascal possibilite de suspendre ou de reactiver annonce -->            
    <{if 
$annonce.suspendadmin 0}>
    <
img src="<{$xoops_url}>/modules/DiffuAds/images/icon/reprendre.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_PUB_GO}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_PUB_GO}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/adsitem.php?op=suspendrereactiver&amp;ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_PUB_GO}>" title="<{$smarty.const._MD_DIFFUADS_PUB_GO}>"><{$smarty.const._MD_DIFFUADS_PUB_GO}></a>
    <{else}>
    <
img src="<{$xoops_url}>/modules/DiffuAds/images/icon/suspendre.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_PUB_STOP}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_PUB_STOP}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/adsitem.php?op=suspendrereactiver&amp;ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_PUB_STOP}>" title="<{$smarty.const._MD_DIFFUADS_PUB_STOP}>"><{$smarty.const._MD_DIFFUADS_PUB_STOP}></a
    <{/if}>    
    <
div style="clear: both;"></div>
    <!-- 
gestion ADMINvalider annonce METTRE REDIRECT PAGE DE ANNONCE-->
    <{if 
$annonce.date_pub == 0}>
    <
img src="<{$xoops_url}>/modules/DiffuAds/images/icon/publier.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_VALIDADS}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_VALIDADS}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/admin/adsmod.php?op=approve&amp;ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_VALIDADS}>" title="<{$smarty.const._MD_DIFFUADS_VALIDADS}>"><{$smarty.const._MD_DIFFUADS_VALIDADS}></a>
    <{/if}> 
    <
div style="clear: both;"></div>    
</
td>            
<
td>
<
div id="centerCcolumn" class="blockTitle">&nbsp;</div>
    <
div style="clear: both;"></div>
    <!-- 
gestion ADMINadresse ip de annonceur -->
    <
img src="<{$xoops_url}>/modules/DiffuAds/images/icon/IP.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_ADRESS_IP}>&nbsp;<{$annonce.poster_ip}>" title="<{$smarty.const._MD_DIFFUADS_ADRESS_IP}>&nbsp;<{$annonce.poster_ip}>" style="vertical-align: middle; padding: .2em;" /><{$smarty.const._MD_DIFFUADS_ADRESS_IP}>&nbsp;<{$annonce.submitter_name}>:&nbsp;<{$annonce.poster_ip}>
    <
div style="clear: both;"></div>            
    <!-- 
gestion ADMINsupprimer annonce -->
    <
img src="<{$xoops_url}>/modules/DiffuAds/images/icon/supprimer.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_DELETEADS}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_DELETEADS}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/admin/adsmod.php?op=delete&amp;ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_DELETEADS}>" title="<{$smarty.const._MD_DIFFUADS_DELETEADS}>"><{$smarty.const._MD_DIFFUADS_DELETEADS}></a>  
    <
div style="clear: both;"></div>            
<!-- 
ajout option CPascal 5 novembre 2010 signaler une annonce suspecte -->
    <{if 
$annonce.signalementannonce 0}>
    <
img src="<{$xoops_url}>/modules/DiffuAds/images/icon/alerteabus.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_SIGNALNOFRAUDE}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_SIGNALNOFRAUDE}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/adsitem.php?op=signalementannonce&amp;ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_SIGNALNOFRAUDE}>" title="<{$smarty.const._MD_DIFFUADS_SIGNALNOFRAUDE}>"><{$smarty.const._MD_DIFFUADS_SIGNALNOFRAUDE}></a>
    <{else}>
    <
img src="<{$xoops_url}>/modules/DiffuAds/images/icon/alerteabus.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_SIGNALFRAUDEADM}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_SIGNALFRAUDEADM}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/adsitem.php?op=signalementannonce&amp;ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_SIGNALFRAUDEADM}>" title="<{$smarty.const._MD_DIFFUADS_SIGNALFRAUDEADM}>"><{$smarty.const._MD_DIFFUADS_SIGNALFRAUDEADM}></a
    <{/if}>
    <
div style="clear: both;"></div>

    
<{/if}>



</
td>
<!-- 
gestion ANNONCEUR -->


Correction
<!--- partie gestion par annonceur et admin --->
    <
table width="100%" border="0" cellspacing="1" cellpadding="0">
        <
tr>

        <!-- ***** 
DEPLACEMENT SMARTY ***** -->
        <{if 
$xoops_isadmin}>
            
            <
td>

                <!-- 
gestion ADMIN -->
                <
div id="centerCcolumn" class="blockTitle" alt="<{$smarty.const._MD_DIFFUADS_GESTIONADM}>" title="<{$smarty.const._MD_DIFFUADS_GESTIONADM}>"><{$smarty.const._MD_DIFFUADS_GESTIONADM}></div>
                
                <
div style="clear: both;"></div>
                
                <!-- 
gestion ADMINtoutes les annonces de annonceur modif CPascal ajout "annonce.submitter_name" -->
                <
img src="<{$xoops_url}>/modules/DiffuAds/images/icon/annonceur.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_ALLADS}>&nbsp;<{$annonce.submitter_name}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_ALLADS}>&nbsp;<{$annonce.submitter_name}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/adsuserlist.php?uid=<{$annonce.uid}>" alt="<{$smarty.const._MD_DIFFUADS_ALLADS}>&nbsp;<{$annonce.submitter_name}>" title="<{$smarty.const._MD_DIFFUADS_ALLADS}>&nbsp;<{$annonce.submitter_name}>"><{$smarty.const._MD_DIFFUADS_ALLADS}>&nbsp;<{$annonce.submitter_name}></a
                
                <
div style="clear: both;"></div>
                
                <!-- 
gestion ADMINmodifier annonce -->
                <
img src="<{$xoops_url}>/modules/DiffuAds/images/icon/modifier.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_EDITADS}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_EDITADS}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/admin/adsmod.php?op=edit&amp;ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_EDITADS}>" title="<{$smarty.const._MD_DIFFUADS_EDITADS}>"><{$smarty.const._MD_DIFFUADS_EDITADS}></a>             
                
                <
div style="clear: both;"></div>
                
                <!-- 
ajout option CPascal possibilite de suspendre ou de reactiver annonce -->            
                <{if 
$annonce.suspendadmin 0}>
                    <
img src="<{$xoops_url}>/modules/DiffuAds/images/icon/reprendre.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_PUB_GO}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_PUB_GO}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/adsitem.php?op=suspendrereactiver&amp;ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_PUB_GO}>" title="<{$smarty.const._MD_DIFFUADS_PUB_GO}>"><{$smarty.const._MD_DIFFUADS_PUB_GO}></a>
                <{else}>
                    <
img src="<{$xoops_url}>/modules/DiffuAds/images/icon/suspendre.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_PUB_STOP}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_PUB_STOP}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/adsitem.php?op=suspendrereactiver&amp;ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_PUB_STOP}>" title="<{$smarty.const._MD_DIFFUADS_PUB_STOP}>"><{$smarty.const._MD_DIFFUADS_PUB_STOP}></a
                <{/if}>    
                
                <
div style="clear: both;"></div>
                
                <!-- 
gestion ADMINvalider annonce METTRE REDIRECT PAGE DE ANNONCE-->
                <{if 
$annonce.date_pub == 0}>
                    <
img src="<{$xoops_url}>/modules/DiffuAds/images/icon/publier.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_VALIDADS}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_VALIDADS}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/admin/adsmod.php?op=approve&amp;ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_VALIDADS}>" title="<{$smarty.const._MD_DIFFUADS_VALIDADS}>"><{$smarty.const._MD_DIFFUADS_VALIDADS}></a>
                <{/if}>
                
                <
div style="clear: both;"></div>
                
            </
td>            
            
            <
td>
            <
div id="centerCcolumn" class="blockTitle">&nbsp;</div>
                
                <
div style="clear: both;"></div>
                
                <!-- 
gestion ADMINadresse ip de annonceur -->
                <
img src="<{$xoops_url}>/modules/DiffuAds/images/icon/IP.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_ADRESS_IP}>&nbsp;<{$annonce.poster_ip}>" title="<{$smarty.const._MD_DIFFUADS_ADRESS_IP}>&nbsp;<{$annonce.poster_ip}>" style="vertical-align: middle; padding: .2em;" /><{$smarty.const._MD_DIFFUADS_ADRESS_IP}>&nbsp;<{$annonce.submitter_name}>:&nbsp;<{$annonce.poster_ip}>
                
                <
div style="clear: both;"></div>
                
                <!-- 
gestion ADMINsupprimer annonce -->
                <
img src="<{$xoops_url}>/modules/DiffuAds/images/icon/supprimer.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_DELETEADS}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_DELETEADS}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/admin/adsmod.php?op=delete&amp;ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_DELETEADS}>" title="<{$smarty.const._MD_DIFFUADS_DELETEADS}>"><{$smarty.const._MD_DIFFUADS_DELETEADS}></a>  
                
                <
div style="clear: both;"></div>
                
                <!-- 
ajout option CPascal 5 novembre 2010 signaler une annonce suspecte -->
                
                <{if 
$annonce.signalementannonce 0}>
                    <
img src="<{$xoops_url}>/modules/DiffuAds/images/icon/alerteabus.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_SIGNALNOFRAUDE}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_SIGNALNOFRAUDE}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/adsitem.php?op=signalementannonce&amp;ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_SIGNALNOFRAUDE}>" title="<{$smarty.const._MD_DIFFUADS_SIGNALNOFRAUDE}>"><{$smarty.const._MD_DIFFUADS_SIGNALNOFRAUDE}></a>
                <{else}>
                    <
img src="<{$xoops_url}>/modules/DiffuAds/images/icon/alerteabus.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_SIGNALFRAUDEADM}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_SIGNALFRAUDEADM}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/adsitem.php?op=signalementannonce&amp;ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_SIGNALFRAUDEADM}>" title="<{$smarty.const._MD_DIFFUADS_SIGNALFRAUDEADM}>"><{$smarty.const._MD_DIFFUADS_SIGNALFRAUDEADM}></a
                <{/if}>
                
                <
div style="clear: both;"></div>            
            
            </
td>
            
        <!-- ***** 
DEPLACEMENT SMARTY ***** -->
        <{/if}>
            
            
        <!-- 
gestion ANNONCEUR -->

Posté le : 25/10/2011 23:24
Partager Twitter Partagez cette article sur GG+
Re: module DiffuAds
Régulier
Inscrit: 15/02/2011 22:12
Messages: 288
ERREUR TEMPLATE 06

Juste après, même souci de calage condition if et cellule de tableau. En outre, il y a une condition cumulative avec <{if not $preview}> et <{if $annonce.isauthor}>, la syntaxe est peut être perfectible ?

Code original
<!-- gestion ANNONCEUR -->
<{if 
not $preview}>
<{if 
$annonce.isauthor}>
<
td>
    <
div id="centerCcolumn" class="blockTitle" alt="<{$smarty.const._MD_DIFFUADS_GESTIONAUTEUR}>" title="<{$smarty.const._MD_DIFFUADS_GESTIONAUTEUR}>"><{$smarty.const._MD_DIFFUADS_GESTIONAUTEUR}></div>
    <
div style="clear: both;"></div>
    <!-- 
gestion ANNONCEURmodifier votre annonce -->    
    <{if 
$annonce.canedit}>
    <
img src="<{$xoops_url}>/modules/DiffuAds/images/icon/modifier.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_MODIFIER_ANNCEUR}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_MODIFIER_ANNCEUR}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/adsedit.php?op=edit&amp;ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_MODIFIER_ANNCEUR}>" title="<{$smarty.const._MD_DIFFUADS_MODIFIER_ANNCEUR}>"><{$smarty.const._MD_DIFFUADS_MODIFIER_ANNCEUR}></a>
    <{/if}>
    <
div style="clear: both;"></div>
    <!-- 
gestion ANNONCEURsuspendre et reactiver -->
    <{if 
$annonce.suspend 0}>
    <
img src="<{$xoops_url}>/modules/DiffuAds/images/icon/reprendre.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_NOSUSP_ANNCEUR}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_NOSUSP_ANNCEUR}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/adsitem.php?op=stopandgo&amp;ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_NOSUSP_ANNCEUR}>" title="<{$smarty.const._MD_DIFFUADS_NOSUSP_ANNCEUR}>"><{$smarty.const._MD_DIFFUADS_NOSUSP_ANNCEUR}></a>
    <{else}>
    <
img src="<{$xoops_url}>/modules/DiffuAds/images/icon/suspendreproprio.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_SUSP_ANNCEUR}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_SUSP_ANNCEUR}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/adsitem.php?op=stopandgo&amp;ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_SUSP_ANNCEUR}>" title="<{$smarty.const._MD_DIFFUADS_SUSP_ANNCEUR}>"><{$smarty.const._MD_DIFFUADS_SUSP_ANNCEUR}></a
    <{/if}>        
</
td>
<
td>
    <!-- 
mise en forme -->    
    <
div id="centerCcolumn" class="blockTitle">&nbsp;</div>
    <
div style="clear: both;"></div>
    <!-- 
gestion ANNONCEURsupprimer votre annonce -->
    <{if 
$annonce.candelete}>
    <
img src="<{$xoops_url}>/modules/DiffuAds/images/icon/supprimer.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_SUPPRIMER_ANNCEUR}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_SUPPRIMER_ANNCEUR}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/adsedit.php?op=delete&ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_SUPPRIMER_ANNCEUR}>"  title="<{$smarty.const._MD_DIFFUADS_SUPPRIMER_ANNCEUR}>"><{$smarty.const._MD_DIFFUADS_SUPPRIMER_ANNCEUR}></a
    <{/if}>
    <
div style="clear: both;"></div>
    <!-- 
gestion ANNONCEURvoir toutes vos annonces -->
    <{if 
$annonce.uid 0}>
    <
img src="<{$xoops_url}>/modules/DiffuAds/images/icon/annonceur.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_VOIRTOUT_ANNCEUR}>" title="<{$smarty.const._MD_DIFFUADS_VOIRTOUT_ANNCEUR}>" style="vertical-align: middle; padding: .2em;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/adsuserlist.php?uid=<{$annonce.uid}>" alt="<{$smarty.const._MD_DIFFUADS_VOIRTOUT_ANNCEUR}>" title="<{$smarty.const._MD_DIFFUADS_VOIRTOUT_ANNCEUR}>"><{$smarty.const._MD_DIFFUADS_VOIRTOUT_ANNCEUR}></a
    <{/if}> 
<{/if}>
<{/if}>
</
td>
</
tr>
</
table>
<!--- 
fin gestion par annonceur et admin --->


Correction
<!-- gestion ANNONCEUR ***** A REVOIR ADDITION CONDITIONS -->
        <{if 
not $preview}>
            
            <{if 
$annonce.isauthor}>
                <
td>
                    <
div id="centerCcolumn" class="blockTitle" alt="<{$smarty.const._MD_DIFFUADS_GESTIONAUTEUR}>" title="<{$smarty.const._MD_DIFFUADS_GESTIONAUTEUR}>"><{$smarty.const._MD_DIFFUADS_GESTIONAUTEUR}></div>
                    
                    <
div style="clear: both;"></div>
                    
                    <!-- 
gestion ANNONCEURmodifier votre annonce -->    
                    <{if 
$annonce.canedit}>
                        <
img src="<{$xoops_url}>/modules/DiffuAds/images/icon/modifier.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_MODIFIER_ANNCEUR}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_MODIFIER_ANNCEUR}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/adsedit.php?op=edit&amp;ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_MODIFIER_ANNCEUR}>" title="<{$smarty.const._MD_DIFFUADS_MODIFIER_ANNCEUR}>"><{$smarty.const._MD_DIFFUADS_MODIFIER_ANNCEUR}></a>
                    <{/if}>
                        
                    <
div style="clear: both;"></div>
                        
                    <!-- 
gestion ANNONCEURsuspendre et reactiver -->
                    <{if 
$annonce.suspend 0}>
                        <
img src="<{$xoops_url}>/modules/DiffuAds/images/icon/reprendre.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_NOSUSP_ANNCEUR}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_NOSUSP_ANNCEUR}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/adsitem.php?op=stopandgo&amp;ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_NOSUSP_ANNCEUR}>" title="<{$smarty.const._MD_DIFFUADS_NOSUSP_ANNCEUR}>"><{$smarty.const._MD_DIFFUADS_NOSUSP_ANNCEUR}></a>
                    <{else}>
                        <
img src="<{$xoops_url}>/modules/DiffuAds/images/icon/suspendreproprio.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_SUSP_ANNCEUR}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_SUSP_ANNCEUR}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/adsitem.php?op=stopandgo&amp;ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_SUSP_ANNCEUR}>" title="<{$smarty.const._MD_DIFFUADS_SUSP_ANNCEUR}>"><{$smarty.const._MD_DIFFUADS_SUSP_ANNCEUR}></a
                    <{/if}>    
                        
                </
td>
                
                <
td>
                    <!-- 
mise en forme -->    
                    <
div id="centerCcolumn" class="blockTitle">&nbsp;</div>
                    
                    <
div style="clear: both;"></div>
                    
                    <!-- 
gestion ANNONCEURsupprimer votre annonce -->
                    <{if 
$annonce.candelete}>
                        <
img src="<{$xoops_url}>/modules/DiffuAds/images/icon/supprimer.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_SUPPRIMER_ANNCEUR}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_SUPPRIMER_ANNCEUR}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/adsedit.php?op=delete&ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_SUPPRIMER_ANNCEUR}>"  title="<{$smarty.const._MD_DIFFUADS_SUPPRIMER_ANNCEUR}>"><{$smarty.const._MD_DIFFUADS_SUPPRIMER_ANNCEUR}></a
                    <{/if}>
                    
                    <
div style="clear: both;"></div>
                    
                    <!-- 
gestion ANNONCEURvoir toutes vos annonces -->
                    <{if 
$annonce.uid 0}>
                        <
img src="<{$xoops_url}>/modules/DiffuAds/images/icon/annonceur.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_VOIRTOUT_ANNCEUR}>" title="<{$smarty.const._MD_DIFFUADS_VOIRTOUT_ANNCEUR}>" style="vertical-align: middle; padding: .2em;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/adsuserlist.php?uid=<{$annonce.uid}>" alt="<{$smarty.const._MD_DIFFUADS_VOIRTOUT_ANNCEUR}>" title="<{$smarty.const._MD_DIFFUADS_VOIRTOUT_ANNCEUR}>"><{$smarty.const._MD_DIFFUADS_VOIRTOUT_ANNCEUR}></a
                    <{/if}> 
                </
td>
            
            <!-- ***** 
DEPLACEMENT CONDITION ***** -->
            <{/if}>
        
        <{/if}>

Posté le : 25/10/2011 23:29
Partager Twitter Partagez cette article sur GG+
Re: module DiffuAds
Régulier
Inscrit: 15/02/2011 22:12
Messages: 288
Bon je crois que c'est tout

La correction complète est dispo pour kikenveux par email (cela ne passe pas sur le forum, trop long je crois)

Posté le : 25/10/2011 23:31
Partager Twitter Partagez cette article sur GG+
Re: module DiffuAds
Régulier
Inscrit: 15/02/2011 22:12
Messages: 288
Question bébête (toujours le même template) :
<div align="left" style="vertical-align: middle; padding: .2em;" alt="<{$smarty.const._MD_DIFFUADS_BLOC_VILLE}> <{$annonce.town}> <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_BLOC_VILLE}> <{$annonce.town}> <{$annonce.type}> <{$annonce.title}>"> ...

Je n'avais jamais vu des title et des alt appliqués à une div. C'est w3c ? A quoi cela sert ?

Posté le : 26/10/2011 02:18
Partager Twitter Partagez cette article sur GG+
Re: module DiffuAds
Semi pro
Inscrit: 16/12/2008 16:38
Messages: 1644
salut béru
si tu veut bien m envoyer la correction
mon émail et visible dans mon compte

bravo pour ton travail

et comment peut marcher le module avec des erreur , car il ny a plus de bug maintenant ??

merci

Posté le : 26/10/2011 07:51

http://www.troc-lorraine.com
vendre en lorraine

Partager Twitter Partagez cette article sur GG+

 Haut   Précédent   Suivant
« 1 ... 8 9 10 (11) 12 13 14 ... 34 »



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

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