Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng

Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng (http://quantrinet.com/forum/index.php)
-   Hack Mods (http://quantrinet.com/forum/forumdisplay.php?f=237)
-   -   Cài đặt mod Mark Threads As 'Solved" for VBB 3.8 (http://quantrinet.com/forum/showthread.php?t=7967)

hoctinhoc 08-06-2011 04:06 PM

Cài đặt mod Mark Threads As 'Solved" for VBB 3.8
 
1 tập tin đính kèm
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:



http://i1095.photobucket.com/albums/...fix_forums.jpg
http://i1095.photobucket.com/albums/...cp_options.jpg
http://i1095.photobucket.com/albums/...d_prefixes.jpg
http://i1095.photobucket.com/albums/...p_ug_perms.jpg
http://i1095.photobucket.com/albums/...lvedthread.jpg
http://i1095.photobucket.com/albums/...marksolved.jpg
http://i1095.photobucket.com/albums/...rkunsolved.jpg
http://i1095.photobucket.com/albums/...p_ug_perms.jpg


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


:battay:


Bây giờ là 12:55 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.