Bạn ghé thăm diễn đàn lần đầu? hãy đăng ký ngay bây giờ để tham gia.
  • Đăng nhập:

Chào mừng bạn đến với ITVNN FORUM - Diễn đàn công nghệ thông tin.

Nếu đây là lần đầu tiên bạn tham gia diễn đàn, xin mời bạn xem phần Hỏi/Ðáp để biết cách dùng diễn đàn. Để có thể tham gia thảo luận bạn phải đăng ký làm thành viên, click vào đây để đăng ký.


  • Partner Area
    • ITVNN HOSTING - Thiết kế website, Cung cấp Domain, Hosting, VPS Việt Nam Anh Hùng - Thông tin truyền thông
kết quả từ 1 tới 1 trên 1
Tăng kích thước phông chữ Giảm kích thước phông chữ
  1. #1
    s0ct0j0c's Avatar
    Banned

    Trạng thái
    Offline
    Họ tên
    Kiều Sơn Lâm
    Tham gia ngày
    Jan 2011
    Thành viên thứ
    36613
    Đến từ
    TP.HCM
    Tuổi
    31
    Giới tính
    Bài gởi
    454
    Level: 41 [?]
    Experience: 2,212,182
    Next Level: 2,530,022
    Cảm ơn 91
    Cảm ơn 89 lần / 68 Bài viết

    Default Conversation Attachments  

    This add-on enables users to attach files to personal conversations. It works exactly the same as attaching files to posts.

    To note:
    There are no quota restrictions.
    Attachments remain on the server until all members leave the conversation.
    There are 2 permissions, one to upload attachments, and another to view them.

    I coded this for my own forum a little while back, I do not plan on developing it much further, as it suits my needs. Nevertheless, feel free to post any suggestions/feedback.


    If your templates are not modified, you may simply replace them with the versions in the TemplateEdits.zip instead of performing the edits.

    Installation

    1. Upload the contents of the upload folder to the root of your forum.
    2. Go to your Admin CP > Install Add-on and upload the addon-conversationAttachments.xml file.
    3. Apply the template edits that follow.
    4. Set permissions for "View attachments" and "Add attachments" under "Personal Conversation Permissions"

    Template Edits

    In conversation_add:

    Find:
    PHP Code: 
          <input type="submit" value="{xen:phrase start_conversation}" accesskey="s" class="button primary" /> 
    Add below:

    PHP Code: 
          <xen:include template="attachment_upload_button" /> 
    Find:

    PHP Code: 
          <input type="hidden" name="_xfToken" value="{$visitor.csrf_token_page}/> 




    Add above:

    PHP Code: 
          <xen:if is="{$attachmentParams}">
    <
    dl class="ctrlUnit AttachedFilesUnit">
    <
    dt><label for="ctrl_uploader">{xen:phrase attached_files}:</label></dt>
    <
    dd><xen:include template="attachment_editor" /></dd>
    </
    dl>
    </
    xen:if> 
    In conversation_reply:

    Find:
    PHP Code: 
          <input type="submit" value="{xen:phrase reply_to_conversation}" accesskey="s" class="button primary" /> 
    Add below:

    PHP Code: 
          <xen:include template="attachment_upload_button" /> 




    Find:

    PHP Code: 
          <input type="hidden" name="_xfToken" value="{$visitor.csrf_token_page}/> 




    Add above:

    PHP Code: 
          <xen:if is="{$attachmentParams}">
    <
    dl class="ctrlUnit AttachedFilesUnit">
    <
    dt><label for="ctrl_uploader">{xen:phrase attached_files}:</label></dt>
    <
    dd><xen:include template="attachment_editor" /></dd>
    </
    dl>
    </
    xen:if> 
    In conversation_message_edit:

    Find:

    PHP Code: 
          <input type="submit" value="{xen:phrase save_changes}" accesskey="s" class="button primary" /> 




    Add below:

    PHP Code: 
          <xen:include template="attachment_upload_button" /> 
    Find:

    PHP Code: 
          <input type="hidden" name="_xfToken" value="{$visitor.csrf_token_page}/> 
    PHP Code: 
          Add above
    PHP Code: 
          <xen:if is="{$attachmentParams}">
    <
    dl class="ctrlUnit AttachedFilesUnit">
    <
    dt><label for="ctrl_uploader">{xen:phrase attached_files}:</label></dt>
    <
    dd><xen:include template="attachment_editor" /></dd>
    </
    dl>
    </
    xen:if> 
    In conversation_message:

    Add at top:
    PHP Code: 
          <xen:require css="conversationAttachments_conversation_message.css" /> 
    Find:

    PHP Code: 
          <xen:set var="$messageId">message-{$message.message_id}</xen:set
    Add below:

    PHP Code: 
          <xen:set var="$messageContentAfterTemplate"><xen:if is="{$message.attachments}"><xen:include template="attached_files"><xen:map from="$messageto="$post/></xen:include></xen:if></xen:set
    Uninstallation
    Please note all attachments will be unassociated upon uninstallation, and will subsequently be deleted.

    1. Revert all your template edits.
    2. Go to your Admin CP > Manage Add-ons > Conversation Attachments > Controls > Uninstall
    3. Remove the ConversationAttachments folder from the /library directory of your XenForo installation.
    File Kèm Theo File Kèm Theo


 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Trả lời: 0
    Bài mới gởi: 27-03-2012, 11:12 AM
  2. PHPKD - Moderated Attachments Staff Notify
    By admin in forum v4.0.x Modifications
    Trả lời: 0
    Bài mới gởi: 21-03-2010, 05:13 PM
  3. Trả lời: 0
    Bài mới gởi: 28-02-2010, 02:13 PM
  4. Anti-Leech Attachments - prevent hotlinking and bandwidth theft!
    By thanhdia in forum v3.8.x Modifications
    Trả lời: 0
    Bài mới gởi: 06-10-2009, 06:09 PM

Tags for this Thread

Bookmarks

Quuyền Hạn Của Bạn

  • Bạn không thể tạo chủ đề mới
  • Bạn không thể trả lời bài viết
  • Bạn không thể gửi file đính kèm
  • Bạn không thể chỉnh sửa bài viết
  •