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 5 trên 5
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,166,159
    Next Level: 35,467,816
    Cảm ơn 53
    Cảm ơn 2,450 lần / 1,409 Bài viết

    Default Adding RSS and other options to Forum home page  

    Dear everyone,

    This modification adds an RSS + New post + Newthread next to each forum shown in the main page "Home".


    Now lets see how we can do that ...!


    First .. the only template that we are going to edit is "forumhome_forumbit_level2_post" ..

    So we open the forumhome_forumbit_level2_post template of the style that we want to add these options to !

    We search for this line code
    PHP Code: 
    <if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if> 
    And then we add this code directly under it
    PHP Code: 
    <!--  itvnn.net Mod -->
    <
    table align="right" border="0">
        <
    tr>
            <
    td width="15">
                <
    a href="newthread.php?$session[sessionurl]f=$forum[forumid]">
                    <
    img src="$stylevar[imgdir_misc]/newthread.png" border="0" width="14" height="14" hspace="0" alt="New thread" align="left" /></a>
            </
    td>
            <
    td width="15">
                <
    a href="search.php?$session[sessionurl]do=getnew&amp;f=$forum[forumid]">
                    <
    img src="$stylevar[imgdir_misc]/newposts.png" border="0" width="14" height="14" hspace="0" alt="New posts" align="left" /></a>
            </
    td>
            <
    td width="15">
            <
    a target="_blank" href="external.php?type=RSS2&amp;forumids=$forum[forumid]">
            <
    img src="$stylevar[imgdir_misc]/rss_rss.gif" border="0" width="14" height="14" hspace="0" alt="Rss feed" align="left" /></a>
            </
    td>
        </
    tr>
    </
    table>
    <!-- / 
    itvnn.net Mod --> 
    If you want to exclude these options in some forums, you can add the code with a condition
    PHP Code: 
    <!--  itvnn.net Mod -->
    <if 
    condition="!in_array($forumid, array(x,x,x,x))">
    <
    table align="right" border="0">
        <
    tr>
            <
    td width="15">
                <
    a href="newthread.php?$session[sessionurl]f=$forum[forumid]">
                    <
    img src="$stylevar[imgdir_misc]/newthread.png" border="0" width="14" height="14" hspace="0" alt="New thread" align="left" /></a>
            </
    td>
            <
    td width="15">
                <
    a href="search.php?$session[sessionurl]do=getnew&amp;f=$forum[forumid]">
                    <
    img src="$stylevar[imgdir_misc]/newposts.png" border="0" width="14" height="14" hspace="0" alt="New posts" align="left" /></a>
            </
    td>
            <
    td width="15">
            <
    a target="_blank" href="external.php?type=RSS2&amp;forumids=$forum[forumid]">
            <
    img src="$stylevar[imgdir_misc]/rss_rss.gif" border="0" width="14" height="14" hspace="0" alt="Rss feed" align="left" /></a>
            </
    td>
        </
    tr>
    </
    table>
    </if>
    <!-- / 
    itvnn.net Mod --> 
    on the top of the code, instead of x put the number of the forum (forumid).

    At the end upload the attached icons to the misc folder which is inside images folder

    This is what its going to look like



    ** To hide the Newthread and New post icons from visitors and leave the Rss feed icon only
    check this post http://www.vbulletin.org/forum/showp...0&postcount=16

    ** To show these options on the forumdisplay also ..
    you have to edit forumhome_forumbit_level1_post tempalte

    search for
    PHP Code: 
    <if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
                </
    td>
            </
    tr>
            </
    table
    then put the code directly under it ..
    Hình Kèm Theo Hình 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. Thành viên sau đây nói lời Cảm ơn tới admin cho bài viết hữu ích này:

    gala8x (18-04-2010)

  3. #2
    gala8x's Avatar

    Trạng thái
    Offline
    Tham gia ngày
    Mar 2010
    Thành viên thứ
    13528
    Tuổi
    40
    Giới tính
    Bài gởi
    15
    Level: 24 [?]
    Experience: 77,225
    Next Level: 79,247
    Cảm ơn 9
    Cảm ơn 0 lần / 0 Bài viết

    Default

    Mình đã làm được cho vbb 4.0 nhưng mà làm cho nó nằm dọc như diễn đàn mình thì làm thế nào nhỉ?

  4. #3
    belunhugo's Avatar

    Trạng thái
    Offline
    Tham gia ngày
    Mar 2010
    Thành viên thứ
    11882
    Giới tính
    Bài gởi
    2
    Level: 17 [?]
    Experience: 10,329
    Next Level: 13,278
    Cảm ơn 2
    Cảm ơn 0 lần / 0 Bài viết

    Default

    Không biết cái này có chạy trên host win được không nhỉ ?

  5. #4
    gala8x's Avatar

    Trạng thái
    Offline
    Tham gia ngày
    Mar 2010
    Thành viên thứ
    13528
    Tuổi
    40
    Giới tính
    Bài gởi
    15
    Level: 24 [?]
    Experience: 77,225
    Next Level: 79,247
    Cảm ơn 9
    Cảm ơn 0 lần / 0 Bài viết

    Default

    Trích Nguyên văn bởi gala8x View Post
    Mình đã làm được cho vbb 4.0 nhưng mà làm cho nó nằm dọc như diễn đàn mình thì làm thế nào nhỉ?
    Tiện thể admin đang online có thể ghé qua trả lời giúp với được hok? Thank trước nha

  6. #5
    gala8x's Avatar

    Trạng thái
    Offline
    Tham gia ngày
    Mar 2010
    Thành viên thứ
    13528
    Tuổi
    40
    Giới tính
    Bài gởi
    15
    Level: 24 [?]
    Experience: 77,225
    Next Level: 79,247
    Cảm ơn 9
    Cảm ơn 0 lần / 0 Bài viết

    Default

    Không có ai giúp à? Admin ơi


 

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: 1
    Bài mới gởi: 24-07-2015, 03:44 PM
  2. Hỏi về Forum Sidebar and Block Options
    By chi pheo return in forum Hỏi đáp & Thảo luận
    Trả lời: 0
    Bài mới gởi: 27-11-2011, 10:50 AM
  3. Top Forum Display Options
    By Dunglx in forum v4.x Modifications
    Trả lời: 0
    Bài mới gởi: 31-08-2011, 07:51 PM
  4. Lỗi Forum sidebar and block options
    By shinichi7211 in forum Hỏi đáp & Thảo luận
    Trả lời: 5
    Bài mới gởi: 19-05-2011, 03:16 PM
  5. Trang home page đơn giản edit "vbhome"
    By Dunglx in forum HTML / Java / JavaScript / JSP
    Trả lời: 8
    Bài mới gởi: 18-05-2011, 05:13 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
  •