Chia Sẽ Kinh Nghiệm Về IT



Tìm Kiếm Với Google
-


Gởi Ðề Tài Mới  Gửi trả lời
 
Công Cụ Xếp Bài
Tuổi 08-06-2011, 05:06 PM   #1
hoctinhoc
Guest
 
Trả Lời: n/a
Cài đặt mod Mark Threads As 'Solved" for VBB 3.8
Cài đặt mod Mark Threads As 'Solved" for VBB 3.8
Solved Threads for vB 3.7.x, 3.8.x + by SecondV -


Cài đặt
  1. Extract the zip, you should have the following directories/files:
    /
    |_ solved.php

    /images/
    /buttons/
    |_ marksolved.gif

    /includes/
    /xml/
    |_ bitfield_solvedthread.xml
  2. Upload: (in the below instructions 'yourforum' would be where you have vBulletin installed)
    • /upload/solved.php to /yourforum/solved.php
    • /upload/images/buttons/marksolved.gif to /yourforum/images/buttons/marksolved.gif (upload to each style folder, if you have more than one style)
    • /upload/includes/xml/bitfield_solvedthread.xml to /yourforum/includes/xml/bitfield_solvedthread.xml
  3. Import the product, product-solvedthreads.xml by going to: AdminCP -> Plugins & Products -> Manage Products -> [Add/Import Product]
  4. Make the following template edits to all of your installed styles:

    SHOWTHREAD
Mã:
    <if condition="$show['addpoll']">
            <div><img class="inlineimg" src="$stylevar[imgdir_button]/addpoll.gif" alt="$vbphrase[add_a_poll]" vspace="1" /> <a href="poll.php?$session[sessionurl]do=newpoll&amp;t=$threadinfo[threadid]">$vbphrase[add_a_poll_to_this_thread]</a></div>
        </if>
    </div>
    <!-- / thread tools -->
Replace with:

Mã:
<if condition="$show['addpoll']">
            <div><img class="inlineimg" src="$stylevar[imgdir_button]/addpoll.gif" alt="$vbphrase[add_a_poll]" vspace="1" /> <a href="poll.php?$session[sessionurl]do=newpoll&amp;t=$threadinfo[threadid]">$vbphrase[add_a_poll_to_this_thread]</a></div>
        </if>
        <if condition="$show['solvedthread']">
            <div><img class="inlineimg" src="$stylevar[imgdir_button]/marksolved.gif" alt="$vbphrase[solvedthread_marksolved]" vspace="1" /> <a href="solved.php?$session[sessionurl]do=marksolved&amp;t=$threadinfo[threadid]">$vbphrase[solvedthread_marksolved]</a></div>
        <else />
            <if condition="$show['solvedthread_unsolve']">
            <div><img class="inlineimg" src="$stylevar[imgdir_button]/marksolved.gif" alt="$vbphrase[solvedthread_markunsolved]" vspace="1" /> <a href="solved.php?$session[sessionurl]do=markunsolved&amp;t=$threadinfo[threadid]">$vbphrase[solvedthread_markunsolved]</a></div>
        </if>
    </if>
    </div>
    <!-- / thread tools -->
Find:

Mã:
<if condition="$show['addpoll']">
    <tr>
        <td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/addpoll.gif" alt="$vbphrase[add_a_poll]" /> <a href="poll.php?$session[sessionurl]do=newpoll&amp;t=$threadinfo[threadid]">$vbphrase[add_a_poll_to_this_thread]</a></td>
    </tr>
    </if>
    <if condition="$show['adminoptions']">
Replace with:

Mã:
<if condition="$show['addpoll']">
    <tr>
        <td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/addpoll.gif" alt="$vbphrase[add_a_poll]" /> <a href="poll.php?$session[sessionurl]do=newpoll&amp;t=$threadinfo[threadid]">$vbphrase[add_a_poll_to_this_thread]</a></td>
    </tr>
    </if>
    <if condition="$show['solvedthread']">
    <tr>
        <td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/marksolved.gif" alt="$vbphrase[solvedthread_marksolved]" /> <a href="solved.php?$session[sessionurl]do=marksolved&amp;t=$threadinfo[threadid]">$vbphrase[solvedthread_marksolved]</a></td>
    </tr>
        <else />
            <if condition="$show['solvedthread_unsolve']">
    <tr>
        <td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/marksolved.gif" alt="$vbphrase[solvedthread_markunsolved]" /> <a href="solved.php?$session[sessionurl]do=markunsolved&amp;t=$threadinfo[threadid]">$vbphrase[solvedthread_markunsolved]</a></td>
    </tr>
        </if>
    </if>
    <if condition="$show['adminoptions']">
5. Set options in AdminCP > vBulletin Options > Solved Threads

6. Edit Solved Threads Permissions > Can Mark Threads as Solved for each usergroup.

7. Go the the Thread Prefix Manager and Edit the Solved Threads

Prefix Set to select the forums this can be used in. (bạn nhớ bấm phím Ctrl để chọn nhiều box mà bạn muốn sử dụng)

Upgrade (from 1.1.x)
  1. Re-upload /includes/xml/bitfield_solvedthread.xml and solved.php
  2. Re-import product-solvedthread.xml with Allow overwrite set to Yes.

Một số hình ảnh:













Chúc các bạn thành công!


Attached Files:
File Type: zip solved_threads_1.1.2.zip‎ (7,8 KB, 0 views)
  Trả lời ngay kèm theo trích dẫn này
Gửi trả lời



Quyền Hạn Của Bạn
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Mở
Hình Cảm xúc đang Mở
[IMG] đang Mở
Mã HTML đang Tắt




Bây giờ là 02:51 AM. Giờ GMT +7



Diễn đàn tin học QuantriNet
quantrinet.com | quantrimang.co.cc
Founded by Trương Văn Phương | Developed by QuantriNet's members.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.