Hiện Like và Reply cho khách, click vào ra phần đăng nhập/đăng ký

Thảo luận trong 'General Discussions' bắt đầu bởi Lê Tí, 20/4/13.

1votes
5/5, 1 vote

  1. Lê Tí

    Lê Tí Well-Known Member

    Bài viết:
    1,450
    Likes :
    620
    Admin CP -> Appearance -> Templates -> post

    Add the red code:

    Mã:
    <div class="publicControls">
    <a href="{xen:link threads/post-permalink, $thread, 'post={$post}'}" title="{xen:phrase permalink}" class="item muted postNumber hashPermalink OverlayTrigger" data-href="{xen:link posts/permalink, $post}">#{xen:calc '{$post.position} + 1'}</a>
    <xen:hook name="post_public_controls" params="{xen:array 'post={$post}'}">
    <xen:if is="{$post.canLike}">
    <a href="{xen:link posts/like, $post}" class="LikeLink item control {xen:if $post.like_date, unlike, like}" data-container="#likes-post-{$post.post_id}"><span></span><span class="LikeLabel">{xen:if $post.like_date, {xen:phrase unlike}, {xen:phrase like}}</span></a>
    </xen:if>
    <xen:if is="!{$post.canLike}">
    <a href="{xen:link login}" class="item control OverlayTrigger"><span></span>{xen:phrase like}</a>
    </xen:if>
    <xen:if is="{$canReply}">
    <a href="{xen:link threads/reply, $thread, 'quote={$post.post_id}'}" data-postUrl="{xen:link posts/quote, $post}" class="ReplyQuote item control reply" title="{xen:phrase reply_quoting_this_message}"><span></span>{xen:phrase reply}</a>
    </xen:if>
    <xen:if is="!{$canReply}">
    <a href="{xen:link login}" class="item control OverlayTrigger"><span></span>{xen:phrase reply}</a>
    </xen:if>
    </xen:hook>
    </div>
    
    demo:

    [​IMG]
    [​IMG]
     
    Đang tải...
comments powered by Disqus

Chia sẻ trang này

Đang tải...