1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. This forum is for release discussion only. Discussions that do not relate specifically to the resource release should be discussed in another, more appropriate forum.
    Dismiss Notice
  3. This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Quick editing post by double-clicks

Discussion in 'Template Modifications [Archive]' started by TheLord, Nov 23, 2010.

  1. TheLord

    TheLord Member

    template: message

    find:
    Code:
    <div class="messageContent">
    
    
    <article><blockquote class="messageText ugc baseHtml">{xen:raw $message.messageHtml}</blockquote></article>
    
    
                {xen:raw $messageContentAfterTemplate}
    
            </div>

    replace for:
    Code:
    <xen:if is="{$post.canEdit}"><span onDblClick="javascipt:window.location.href='{xen:link posts/edit, $post}'"></xen:if>
            <div class="messageContent">
    
    <article><blockquote class="messageText ugc baseHtml">{xen:raw $message.messageHtml}</blockquote></article>
    
                {xen:raw $messageContentAfterTemplate}
    
            </div>
            <xen:if is="{$post.canEdit}"></span></xen:if>
     
    Pinn, A.E., cobra1162 and 6 others like this.
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Moved to Template Modifications.
     
  3. arabic

    arabic Member

  4. lms

    lms Well-Known Member

    Thnaks for the mod

    Salud2
     
  5. iTuN3r

    iTuN3r Well-Known Member

    Nice work :)
     
  6. kkm323

    kkm323 Well-Known Member

    is not working for me ...!
     
  7. cobra1162

    cobra1162 Active Member

    yes good job ;)
     
  8. PoLiZe

    PoLiZe Well-Known Member

    Nice!, I have a question, i can make it but with Overlay?
     

Share This Page