Image dans le titre _ET_ captcha rebelle
Bonjour,
je viens d'installer un pluxml, tout fonctionne à merveille à l'exception de deux choses :
- Je n'arrive pas à insérer une image dans le titre du site (pas le titre d'un article), si vous avez une astuce je suis preneur.
- J'ai installé le plugin MyCpatchaImage (http://pluxopolis.net/myplugins) mais vu que le site est protégé par un .htaccess je n'en ai pas besoin. Je l'ai donc désinstallé. Mais dès que je tente un commentaire j'ai droit à un "La vérification anti-spam a échoué". J'ai bien fait le tour de toutes les options, les commentaires sont activés, et la protection anti-spam est elle bien désactivée. Le plugin aurait il un peu chamboulé le code ?
Merci d'avance.
je viens d'installer un pluxml, tout fonctionne à merveille à l'exception de deux choses :
- Je n'arrive pas à insérer une image dans le titre du site (pas le titre d'un article), si vous avez une astuce je suis preneur.
- J'ai installé le plugin MyCpatchaImage (http://pluxopolis.net/myplugins) mais vu que le site est protégé par un .htaccess je n'en ai pas besoin. Je l'ai donc désinstallé. Mais dès que je tente un commentaire j'ai droit à un "La vérification anti-spam a échoué". J'ai bien fait le tour de toutes les options, les commentaires sont activés, et la protection anti-spam est elle bien désactivée. Le plugin aurait il un peu chamboulé le code ?
Merci d'avance.
0
Connectez-vous ou Inscrivez-vous pour répondre.
Réponses
Je sais que je dois modifier le header.php, mais j'ai beau suivre 3-4 tutos différents (trouvés principalement ici) il ne se passe rien quand j'insère ces lignes.
Une version simpliste d'une insertion d'image ressemblerait à <img src="chemin/fichierDimage.jpg"> quelque part près du titre dans header.php. On verra à fignoler quand l'image arrivera au moins à l'écran.
La source de l'image doit ressembler à :
En admettant que ton image se trouve dans le dossier img de ton thème.
à plus,
Gzyg
Merci,
c'est exactement ce que je cherchais. Je ne m'en sors pas en php.
Il me faut encore régler cette histoire de captcha/commentaires et mon site est fin prêt.
EDIT :
je mets mon commentaires.php, vu que c'est le seul fichier qui parle de captcha.
[== PHP ==] <?php if(!defined('PLX_ROOT')) exit; ?> <?php if($plxShow->plxMotor->plxRecord_coms): ?> <h2 id="comments"> <?php echo $plxShow->artNbCom(); ?> </h2> <?php while($plxShow->plxMotor->plxRecord_coms->loop()): # On boucle sur les commentaires ?> <div id="<?php $plxShow->comId(); ?>" class="comment <?php $plxShow->comLevel(); ?>"> <div id="com-<?php $plxShow->comIndex(); ?>"> <small> <a class="nbcom" href="<?php $plxShow->ComUrl(); ?>" title="#<?php echo $plxShow->plxMotor->plxRecord_coms->i+1 ?>">#<?php echo $plxShow->plxMotor->plxRecord_coms->i+1 ?></a> <time datetime="<?php $plxShow->comDate('#num_year(4)-#num_month-#num_day #hour:#minute'); ?>"><?php $plxShow->comDate('#day #num_day #month #num_year(4) - #hour:#minute'); ?></time> - <?php $plxShow->comAuthor('link'); ?> <?php $plxShow->lang('SAID'); ?> : </small> <blockquote> <p class="content_com type-<?php $plxShow->comType(); ?>"><?php $plxShow->comContent(); ?></p> </blockquote> </div> <a rel="nofollow" href="<?php $plxShow->artUrl(); ?>#form" onclick="replyCom('<?php $plxShow->comIndex() ?>')"><?php $plxShow->lang('REPLY'); ?></a> </div> <?php endwhile; # Fin de la boucle sur les commentaires ?> <p><?php $plxShow->comFeed('rss',$plxShow->artId()); ?></p> <?php endif; ?> <?php if($plxShow->plxMotor->plxRecord_arts->f('allow_com') AND $plxShow->plxMotor->aConf['allow_com']): ?> <h2> <?php $plxShow->lang('WRITE_A_COMMENT') ?> </h2> <form id="form" action="<?php $plxShow->artUrl(); ?>#form" method="post"> <fieldset> <div class="grid"> <div class="col sml-12"> <label for="id_name"><?php $plxShow->lang('NAME') ?> :</label> <input id="id_name" name="name" type="text" size="20" value="<?php $plxShow->comGet('name',''); ?>" maxlength="30" /> </div> </div> <div class="grid"> <div class="col sml-12 lrg-6"> <label for="id_mail"><?php $plxShow->lang('EMAIL') ?> :</label> <input id="id_mail" name="mail" type="text" size="20" value="<?php $plxShow->comGet('mail',''); ?>" /> </div> <div class="col sml-12 lrg-6"> <label for="id_site"><?php $plxShow->lang('WEBSITE') ?> :</label> <input id="id_site" name="site" type="text" size="20" value="<?php $plxShow->comGet('site',''); ?>" /> </div> </div> <div class="grid"> <div class="col sml-12"> <div id="id_answer"></div> <label for="id_content" class="lab_com"><?php $plxShow->lang('COMMENT') ?> :</label> <textarea id="id_content" name="content" cols="35" rows="6"><?php $plxShow->comGet('content',''); ?></textarea> </div> </div> <?php $plxShow->comMessage('<p id="com_message" class="text-red"><strong>#com_message</strong></p>'); ?> <?php if($plxShow->plxMotor->aConf['capcha']): ?> <div class="grid"> <div class="col sml-12"> <label for="id_rep"><strong><?php echo $plxShow->lang('ANTISPAM_WARNING') ?></strong></label> <?php $plxShow->capchaQ(); ?> <input id="id_rep" name="rep" type="text" size="2" maxlength="1" style="width: auto; display: inline;" /> </div> </div> <?php endif; ?> <div class="grid"> <div class="col sml-12"> <input type="hidden" id="id_parent" name="parent" value="<?php $plxShow->comGet('parent',''); ?>" /> <input class="blue" type="submit" value="<?php $plxShow->lang('SEND') ?>" /> </div> </div> </fieldset> </form> <script> function replyCom(idCom) { document.getElementById('id_answer').innerHTML='<?php $plxShow->lang('REPLY_TO'); ?> :'; document.getElementById('id_answer').innerHTML+=document.getElementById('com-'+idCom).innerHTML; document.getElementById('id_answer').innerHTML+='<a rel="nofollow" href="<?php $plxShow->artUrl(); ?>#form" onclick="cancelCom()"><?php $plxShow->lang('CANCEL'); ?></a>'; document.getElementById('id_answer').style.display='inline-block'; document.getElementById('id_parent').value=idCom; document.getElementById('id_content').focus(); } function cancelCom() { document.getElementById('id_answer').style.display='none'; document.getElementById('id_parent').value=''; document.getElementById('com_message').innerHTML=''; } var parent = document.getElementById('id_parent').value; if(parent!='') { replyCom(parent) } </script> <?php else: ?> <p> <?php $plxShow->lang('COMMENTS_CLOSED') ?>. </p> <?php endif; # Fin du if sur l'autorisation des commentaires ?>C'est mieux pour la lisibilité future de garder les sujets séparés.
à plus,
Gzyg