Dotclear

Vous n'êtes pas identifié(e).

Annonce

13 février 2024 Sortie de Dotclear 2.29

#1 2013-02-02 09:08:56

cheztine
Membre
Inscription : 2007-08-28
Site Web

addthis apparait en bas de la page commentaire

bonjour

quand j'ouvre un commentaire au hasard:

http://latelier-de-tine.fr/index.php?po … e-sky#c161

addthis apparait en bas à gauche, en dessous de la ligne du footer ;  je ne l'ai installé que dans home / category / post et je ne vois pas où est l'erreur ... merci pour votre aide.

bon weekend, Tine.

Hors ligne

#2 2013-02-02 11:26:01

pressecologie
Membre
Lieu : île de la Réunion
Inscription : 2011-02-21
Site Web

Re : addthis apparait en bas de la page commentaire

Bonjour,

Le commentaire c'est dans le templete "post.html"

Tu as inséré addthis après le <div id="page"> de post.html
Du coup il s'affiche après tout le contenu de ta page.

Il faut pouvoir placer le addthis au bon endroit ...

as tu le code de post.html ?

Hors ligne

#3 2013-02-02 11:43:47

cheztine
Membre
Inscription : 2007-08-28
Site Web

Re : addthis apparait en bas de la page commentaire

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{{tpl:EntryLang}}" lang="{{tpl:EntryLang}}">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <meta name="MSSmartTagsPreventParsing" content="TRUE" />
  <meta name="ROBOTS" content="{{tpl:BlogMetaRobots}}" />

  <title>{{tpl:EntryTitle encode_html="1"}} - {{tpl:BlogName encode_html="1"}}</title>
  <meta name="description" lang="{{tpl:EntryLang}}" content="{{tpl:EntryContent full="1" encode_html="1" remove_html="1" cut_string="180"}}" />
  <meta name="copyright" content="{{tpl:BlogCopyrightNotice encode_html="1"}}" />
  <meta name="author" content="{{tpl:EntryAuthorCommonName encode_html="1"}}" />
  <meta name="date" scheme="ISO8601" content="{{tpl:EntryDate iso8601="1"}}" />

  <link rel="schema.dc" href="http://purl.org/dc/elements/1.1/" />
  <meta name="dc.title" content="{{tpl:EntryTitle encode_html="1"}}" />
  <meta name="dc.description" lang="{{tpl:EntryLang}}" content="{{tpl:EntryContent full="1" encode_html="1" remove_html="1" cut_string="180"}}" />
  <meta name="dc.creator" content="{{tpl:EntryAuthorCommonName encode_html="1"}}" />
  <meta name="dc.language" content="{{tpl:EntryLang}}" />
  <meta name="dc.publisher" content="{{tpl:BlogEditor encode_html="1"}}" />
  <meta name="dc.rights" content="{{tpl:BlogCopyrightNotice encode_html="1"}}" />
  <meta name="dc.date" scheme="ISO8601" content="{{tpl:EntryDate iso8601="1"}}" />
  <meta name="dc.type" content="text" />
  <meta name="dc.format" content="text/html" />

  <link rel="top" href="{{tpl:BlogURL}}" title="{{tpl:lang Home}}" />
  <link rel="contents" href="{{tpl:BlogArchiveURL}}" title="{{tpl:lang Archives}}" />

  <tpl:EntryNext><link rel="next" href="{{tpl:EntryURL}}"
  title="{{tpl:EntryTitle encode_html="1"}}" /></tpl:EntryNext>

  <tpl:EntryPrevious><link rel="previous" href="{{tpl:EntryURL}}"
  title="{{tpl:EntryTitle encode_html="1"}}" /></tpl:EntryPrevious>

  <link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="{{tpl:BlogFeedURL type="atom"}}" />

  {{tpl:include src="_head.html"}}

  <script type="text/javascript" src="{{tpl:BlogThemeURL}}/../default/js/post.js"></script>
  <script type="text/javascript">
  //<![CDATA[
  var post_remember_str = '{{tpl:lang Remember me on this blog}}';
  //]]>
  </script>
</head>

<body class="dc-post">
<div id="page">
{{tpl:EntryPingData}}

{{tpl:include src="_top.html"}}

<div id="wrapper">

<div id="main">
  <div id="content">

  <p id="navlinks">
  <tpl:EntryPrevious><a href="{{tpl:EntryURL}}"
  title="{{tpl:EntryTitle encode_html="1"}}" class="prev">&#171; {{tpl:EntryTitle encode_html="1"
  cut_string="50"}}</a></tpl:EntryPrevious>
  <tpl:EntryNext> <span>-</span> <a href="{{tpl:EntryURL}}"
  title="{{tpl:EntryTitle encode_html="1"}}" class="next">{{tpl:EntryTitle encode_html="1"
  cut_string="50"}} &#187;</a></tpl:EntryNext>
  </p>

  <div class="post">
    <h2 id="p{{tpl:EntryID}}" class="post-title">{{tpl:EntryTitle encode_html="1"}}</h2>

    <p class="post-info">{{tpl:lang By}} {{tpl:EntryAuthorLink}}
    {{tpl:lang on}} {{tpl:EntryDate}}, {{tpl:EntryTime}}
    <tpl:EntryIf has_category="1">
    - <a href="{{tpl:EntryCategoryURL}}">{{tpl:EntryCategory encode_html="1"}}</a>
    </tpl:EntryIf>
    <br />

    <tpl:EntryMetaData>
    <tpl:MetaDataHeader>Filed under: </tpl:MetaDataHeader>
    <a href="{{tpl:MetaURL}}">{{tpl:MetaID}}</a>
    <tpl:MetaDataFooter></tpl:MetaDataFooter>
    </tpl:EntryMetaData>
    </p>

    <!-- # --BEHAVIOR-- publicEntryBeforeContent -->
    {{tpl:SysBehavior behavior="publicEntryBeforeContent"}}

    <!-- # Entry with an excerpt -->
    <tpl:EntryIf extended="1">
      <div class="post-excerpt">{{tpl:EntryExcerpt}}</div>
    </tpl:EntryIf>

    <div class="post-content">{{tpl:EntryContent}}</div>


    
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style ">
<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
<a class="addthis_button_pinterest_pinit"></a>
<a class="addthis_counter addthis_pill_style"></a>
</div>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=xa-51010aae5ca79c16"></script>
<!-- AddThis Button END -->



    <!-- # --BEHAVIOR-- publicEntryAfterContent -->


  </div>


  <!-- # Attachments -->
  <tpl:Attachments>
    <tpl:AttachmentsHeader>
      <div id="attachments">
      <h3>{{tpl:lang Attachments}}</h3>
      <ul>
    </tpl:AttachmentsHeader>
      <li class="{{tpl:AttachmentType}}">
        <tpl:AttachmentIf is_mp3="1">
          {{tpl:include src="_mp3_player.html"/}} -
        </tpl:AttachmentIf>
        <tpl:AttachmentIf is_flv="1">
	     {{tpl:include src="_flv_player.html"/}}
	   </tpl:AttachmentIf>
	   <tpl:AttachmentIf is_flv="0">
	   	<a href="{{tpl:AttachmentURL}}"
		title="{{tpl:AttachmentFileName}} ({{tpl:AttachmentSize}})">{{tpl:AttachmentTitle}}</a>
        </tpl:AttachmentIf>
      </li>
    <tpl:AttachmentsFooter>
      </ul>
      </div>
    </tpl:AttachmentsFooter>
  </tpl:Attachments>

  <!-- # Comments -->
  <tpl:EntryIf show_comments="1">
    <tpl:Comments>
    <tpl:CommentsHeader>
      <div id="comments">
        <h3>{{tpl:lang Comments}}</h3>
      <dl>
    </tpl:CommentsHeader>
      <dt id="c{{tpl:CommentID}}" class="{{tpl:CommentIfMe}} {{tpl:CommentIfOdd}} {{tpl:CommentIfFirst}}"><a
      href="#c{{tpl:CommentID}}" class="comment-number">{{tpl:CommentOrderNumber}}.</a>
      {{tpl:lang On}} {{tpl:CommentDate}}, {{tpl:CommentTime}}
      {{tpl:lang by}} {{tpl:CommentAuthorLink}}</dt>

      <dd class="{{tpl:CommentIfMe}} {{tpl:CommentIfOdd}} {{tpl:CommentIfFirst}}">
      <!-- # --BEHAVIOR-- publicCommentBeforeContent -->
      {{tpl:SysBehavior behavior="publicCommentBeforeContent"}}

      {{tpl:CommentContent}}

      <!-- # --BEHAVIOR-- publicCommentAfterContent -->
      {{tpl:SysBehavior behavior="publicCommentAfterContent"}}
      </dd>
    <tpl:CommentsFooter>
      </dl>
      </div>
    </tpl:CommentsFooter>
    </tpl:Comments>
  </tpl:EntryIf>

  <tpl:EntryIf comments_active="1">
    <tpl:SysIfFormError>
      <p class="error" id="pr">{{tpl:SysFormError}}</p>
    </tpl:SysIfFormError>

    <tpl:SysIfCommentPublished>
      <p class="message" id="pr">{{tpl:lang Your comment has been published.}}</p>
    </tpl:SysIfCommentPublished>

    <tpl:SysIfCommentPending>
      <p class="message" id="pr">{{tpl:lang Your comment has been submitted and
      will be reviewed for publication.}}</p>
    </tpl:SysIfCommentPending>

    <!-- # Comment form -->
    <form action="{{tpl:EntryURL}}#pr" method="post" id="comment-form">
      <tpl:IfCommentPreview>
        <div id="pr">
          <h3>{{tpl:lang Your comment}}</h3>
          <dl>
            <dd class="comment-preview">{{tpl:CommentPreviewContent}}</dd>
          </dl>
          <p class="buttons"><input type="submit" class="submit" value="{{tpl:lang send}}" /></p>
        </div>
      </tpl:IfCommentPreview>

      <h3>{{tpl:lang Add a comment}}</h3>
      <fieldset>
        <!-- # --BEHAVIOR-- publicCommentFormBeforeContent -->
        {{tpl:SysBehavior behavior="publicCommentFormBeforeContent"}}

        <p class="field"><label for="c_name">{{tpl:lang Name or nickname}}&nbsp;:</label>
        <input name="c_name" id="c_name" type="text" size="30" maxlength="255"
        value="{{tpl:CommentPreviewName encode_html="1"}}" />
        </p>

        <p class="field"><label for="c_mail">{{tpl:lang Email address}}&nbsp;:</label>
        <input name="c_mail" id="c_mail" type="text" size="30" maxlength="255"
        value="{{tpl:CommentPreviewEmail encode_html="1"}}" />
        </p>

        <p class="field"><label for="c_site">{{tpl:lang Website}}
        ({{tpl:lang optional}})&nbsp;:</label>
        <input name="c_site" id="c_site" type="text" size="30" maxlength="255"
        value="{{tpl:CommentPreviewSite encode_html="1"}}" />
        </p>

        <p style="display:none"><input name="f_mail" type="text" size="30"
        maxlength="255" value="" /></p>

        <p class="field"><label for="c_content">{{tpl:lang Comment}}&nbsp;:</label>
        <textarea name="c_content" id="c_content" cols="35"
        rows="7">{{tpl:CommentPreviewContent raw="1" encode_html="1"}}</textarea>
        </p>
        <p class="form-help">{{tpl:lang HTML code is displayed as text and web addresses are
        automatically converted.}}</p>

        <!-- # --BEHAVIOR-- publicCommentFormAfterContent -->
        {{tpl:SysBehavior behavior="publicCommentFormAfterContent"}}
      </fieldset>

      <fieldset>
        <p class="buttons"><input type="submit" class="preview" name="preview" value="{{tpl:lang preview}}" />
        <input type="submit" class="submit" value="{{tpl:lang send}}" /></p>
      </fieldset>
    </form>
  </tpl:EntryIf>

  <!-- # Trackbacks -->
  <tpl:EntryIf show_pings="1">
    <div id="pings">
    <h3>{{tpl:lang They posted on the same topic}}</h3>
    <tpl:Pings>
      <tpl:PingsHeader>
      <dl>
      </tpl:PingsHeader>
        <dt id="c{{tpl:PingID}}" class="{{tpl:PingIfOdd}} {{tpl:PingIfFirst}}"><a href="#c{{tpl:PingID}}"
        class="ping-number">{{tpl:PingOrderNumber}}.</a>
        {{tpl:lang On}} {{tpl:PingDate}}, {{tpl:PingTime}}
        {{tpl:lang by}} {{tpl:PingBlogName encode_html="1"}}</dt>

        <dd class="{{tpl:PingIfOdd}} {{tpl:PingIfFirst}}">
        <!-- # --BEHAVIOR-- publicPingBeforeContent -->
        {{tpl:SysBehavior behavior="publicPingBeforeContent"}}

        <p><a href="{{tpl:PingAuthorURL}}"
        {{tpl:PingNoFollow}}>{{tpl:PingTitle encode_html="1"}}</a></p>
        {{tpl:PingContent}}

        <!-- # --BEHAVIOR-- publicPingAfterContent -->
        {{tpl:SysBehavior behavior="publicPingAfterContent"}}
        </dd>
      <tpl:PingsFooter>
      </dl>
      </tpl:PingsFooter>
    </tpl:Pings>
    </div>
  </tpl:EntryIf>

  <tpl:EntryIf pings_active="1">
    <p id="ping-url">{{tpl:lang Trackback URL}}&nbsp;: {{tpl:EntryPingLink}}</p>
  </tpl:EntryIf>

  <tpl:EntryIf operator="or" comments_active="1" pings_active="1">
  <p id="comments-feed"><a class="feed" href="{{tpl:BlogFeedURL type="atom"}}/comments/{{tpl:EntryID}}"
  title="{{tpl:lang This post's comments Atom feed}}">{{tpl:lang This post's comments feed}}</a></p>
  </tpl:EntryIf>
  </div>
</div> <!-- End #main -->

<div id="sidebar">
  <div id="blognav">
    {{tpl:Widgets type="nav"}}
  </div> <!-- End #blognav -->

  <div id="blogextra">
    {{tpl:Widgets type="extra"}}
  </div> <!-- End #blogextra -->
</div>

</div> <!-- End #wrapper -->

{{tpl:include src="_footer.html"}}
</div> <!-- End #page -->

<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style ">
<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
<a class="addthis_button_pinterest_pinit"></a>
<a class="addthis_counter addthis_pill_style"></a>
</div>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=xa-51010aae5ca79c16"></script>
<!-- AddThis Button END -->

</body>
</html>

Hors ligne

#4 2013-02-02 11:59:57

pressecologie
Membre
Lieu : île de la Réunion
Inscription : 2011-02-21
Site Web

Re : addthis apparait en bas de la page commentaire

Re,

Tout en bas de ton code,
tu peux supprimer cette partie :

<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style ">
<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
<a class="addthis_button_pinterest_pinit"></a>
<a class="addthis_counter addthis_pill_style"></a>
</div>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=xa-51010aae5ca79c16"></script>
<!-- AddThis Button END -->

Pour info, il n'est pas necessaire d'avoir plusieurs fois cette ligne, une seule suffit:

<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=xa-51010aae5ca79c16"></script>

Pour info aussi, cette syntaxe correspond à des commantaires :

<!-- AddThis Button BEGIN -->

Dernière modification par pressecologie (2013-02-02 12:00:22)

Hors ligne

#5 2013-02-02 12:33:25

cheztine
Membre
Inscription : 2007-08-28
Site Web

Re : addthis apparait en bas de la page commentaire

heureusement que "vous avez l'oeil" pour corriger mes étourderies, c'est comme çà que je remplis mon carnet de notes  ;-)  merci beaucoup, Tine.

Hors ligne

#6 2013-02-02 14:54:55

pressecologie
Membre
Lieu : île de la Réunion
Inscription : 2011-02-21
Site Web

Re : addthis apparait en bas de la page commentaire

de rien

Hors ligne

Vous n'êtes pas identifié(e).

Pied de page des forums

Sites map