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 4 trên 4

Ðề tài: Thread Thumbnails

Tăng kích thước phông chữ Giảm kích thước phông chữ
  1. #1
    admin's Avatar

    Trạng thái
    Offline
    Họ tên
    Mai Thanh Trung
    Tham gia ngày
    Aug 2006
    Thành viên thứ
    1
    Đến từ
    Pleiku, Gia Lai
    Tuổi
    39
    Giới tính
    Bài gởi
    4,984
    Level: 57 [?]
    Experience: 32,211,939
    Next Level: 35,467,816
    Cảm ơn 53
    Cảm ơn 2,450 lần / 1,409 Bài viết

    Default Thread Thumbnails  

    Thread Thumbnails
    --------------------------------------
    Created By: Null Parameter

    This mod is tested with 3.8.1, but may work with other versions.

    Please leave any comments, suggestions or bugs.

    Description

    This mod allows a user, when creating or editing a thread, to specify a Thumbnail image to be used for display next to the thread in the Thread Listing. There are other mods that do this with Attachments, but I wanted to be able to do it with any image.

    With this mod you can define a set of forums that have thumbnails enabled, then in those forums whenever a user creates or edits their thread (they must edit the first post in the thread), they can define the thumbnail image.

    This image is then shown in the Forum Display, in place of the Thread Icon.
    The image also appears in Tag Search, and I can add it to the regular Search if somebody requests it. And possibly have options for displaying in each area.

    Forum Display:


    Other options include:
    • Showing Thumbnails for sticky threads
    • Width to use for thumbnails
    • URL of an image to use if no thumbnail is defined
      Here is an example image:

    • Width to use for No Thumbnail Image

    ACP Options:


    Installation

    Install the Product XML File.

    Do the following template edits: editpost
    • Find "<!-- / subject field -->"
    • Place this underneath it:

    PHP Code: 
    <if condition="$isfirstpost AND $showthumbnailedit">
                    <if 
    condition="$vbulletin->GPC[advanced]">
                    <
    input type="hidden" name="desc_adv_thumb" value="1" />
                    </if>
            <
    table cellpadding="0" cellspacing="0" border="0" style="margin-bottom:$stylevar[formspacer]px">
            <
    tr>
                <
    td class="smallfont" colspan="3">Thumbnail URL:</td>
            </
    tr>
            <
    tr>
                <
    td><input type="text" class="bginput" name="thumbnailurl" value="$threadinfo[thumbnailurl]size="50" maxlength="250" tabindex="1.5" title="" /></td>
            </
    tr>
    </
    table>
    </if> 
    • newthread
      • Find "<!-- / subject field -->"
      • Place this underneath

    PHP Code: 
    <if condition="$showthumbnailedit"><table cellpadding="0" cellspacing="0" border="0" style="margin-bottom:$stylevar[formspacer]px"><tr><td class="smallfont" colspan="3">Thumbnail URL:</td></tr><tr><td><input type="text" class="bginput" name="thumbnailurl" value="$threadinfo[thumbnailurl]size="50" maxlength="250" tabindex="1.5" title="" /></td></tr></table></if> 
    • threadbit
      • Find

    PHP Code: 
    <if condition="$show['threadicons']">
            <
    td class="alt2"><if condition="$show['threadicon']"><img src="$thread[threadiconpath]alt="$thread[threadicontitle]border="0" /><else />&nbsp;</if></td>
        </if> 
    Replace with
    PHP Code: 
    <if condition="$show[threadicons]">
        <
    td class="alt2" align="center" valign="middle">
                <if 
    condition="$thread[thumbnaildisplay] AND !$thread[sticky]">
                         <
    a href="showthread.php?$session[sessionurl]t=$thread[threadid]">
                          <
    img src="$thread[thumbnailurl]alt="" border="0" width="$thread[thumbnailwidth]"/>
                        </
    a>
                <else />
                    <if 
    condition="$show[threadicon]">
                     <
    img src="$thread[threadiconpath]alt="$thread[threadicontitle]border="0" />
                    </if>
                </if>
        </
    td>
    </if> 
    Demo

    Possible Future Features (With Request)
    • Display Thumbnail in Search
    • Options for Display Locations
    • Additional column instead of replacing Thread Icon
    • Displaying Thumbnail within thread
    • Edit thumbnail through Thread Edit
    • Thumbnail Preview in Edit Window
    • Automatic Template Edits

    Fixes
    None.
    File Kèm Theo File Kèm Theo
    .♥.Thà không yêu cho cuộc đời trong trắng.♥.
    .♥.Lỡ yêu rồi phải cố gắng thành công.♥.


    Thiết kế website, Cung cấp Domain, Hosting, VPS

  2. #2
    c0n.g4.2009's Avatar

    Trạng thái
    Offline
    Tham gia ngày
    Sep 2009
    Thành viên thứ
    370
    Giới tính
    Bài gởi
    3
    Level: 18 [?]
    Experience: 16,044
    Next Level: 17,484
    Cảm ơn 0
    Cảm ơn 0 lần / 0 Bài viết

    Default

    Bác ơi mod xong hết rồi mà sao nó ko hiển thị vậy.
    Kiểm tra giúp em cái lỗi này cái
    http://14vn.net/diendan/forumdisplay.php?f=4

  3. #3
    hau_ooo's Avatar

    Trạng thái
    Offline
    Họ tên
    Đoàn Hậu
    Tham gia ngày
    Sep 2009
    Thành viên thứ
    198
    Đến từ
    Hải Phòng
    Giới tính
    Bài gởi
    858
    Level: 45 [?]
    Experience: 4,592,944
    Next Level: 5,107,448
    Cảm ơn 84
    Cảm ơn 237 lần / 166 Bài viết

    Default

    Trích Nguyên văn bởi c0n.g4.2009 View Post
    Bác ơi mod xong hết rồi mà sao nó ko hiển thị vậy.
    Kiểm tra giúp em cái lỗi này cái
    http://14vn.net/diendan/forumdisplay.php?f=4

    Bạn vào Admin CP --> Vb Options tìm đến cái product đó xem đã enable chưa

  4. #4
    khuongvn's Avatar

    Trạng thái
    Offline
    Tham gia ngày
    Sep 2009
    Thành viên thứ
    293
    Tuổi
    32
    Giới tính
    Bài gởi
    76
    Level: 32 [?]
    Experience: 406,652
    Next Level: 453,790
    Cảm ơn 0
    Cảm ơn 21 lần / 8 Bài viết

    Default

    ai có thê chỉ dậy rõ ko a em impot mod song sao ko hiện


 

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Chiplove.9xpro - Thread Thumbnails 2.2.9
    By admin in forum v4.x Modifications
    Trả lời: 0
    Bài mới gởi: 30-10-2011, 09:28 PM
  2. Thread Thumbnails V4
    By PhucSD in forum v4.x Modifications
    Trả lời: 0
    Bài mới gởi: 18-06-2011, 08:51 PM
  3. Không hiện Thumbnails của Albums vbb 3.8
    By kahara in forum Hỏi đáp & Thảo luận
    Trả lời: 0
    Bài mới gởi: 10-03-2011, 10:28 AM
  4. Thread Thumbnails
    By admin in forum v4.0.x Modifications
    Trả lời: 0
    Bài mới gởi: 06-03-2010, 03:59 PM
  5. Thumbnails của chủ đề ???
    By 3dviet in forum Hỏi đáp & Thảo luận
    Trả lời: 7
    Bài mới gởi: 19-10-2009, 08:55 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
  •