Easy Navbar Links
Hello & Welcome to our community. Is this your first visit? Đăng Ký
Follow us on
Follow us on Facebook Follow us on Twitter Linked In Flickr Watch us on YouTube My Space Blogger
 
Kết quả 1 đến 1 của 1

Chủ đề: Easy Navbar Links

  1. #1
    Thành Viên PandavB's Avatar
    Ngày tham gia
    Feb 2014
    Bài viết
    243
    Thanks
    1
    Thanked 13 Times in 11 Posts

    Icon14 Easy Navbar Links

    Description:
    This template edit displays quick and easy links to your navigation.

    Installation Time: Less than 1 minute

    I got the inspiration from "yoyoyoyo" who made a similar mod for 3.6.8. Although his might work fine for this also, I decided to alter it a bit and cleaned up some code.

    I did PM yoyoyoyo to use a variation of his hack but, since he has not been online since September 2008, I can't get a response.

    Since yoyoyoyo came up with this type of template edit, all the credit goes to him.

    Here is the mod from yoyoyoyo for version 3.6.8:

    [Only registered and activated users can see links. ]

    Template Edit:

    Styles and Templates > Style Manager > Your Style > Navigation / Breadcrumb Templates > Navbar:

    In the Navbar find:


    Code:
    PHP Code:
    <!-- breadcrumbloginpm info --> 
    Above it add:

    Code:
    PHP Code:
    <!-- Navbar Links -->
    <
    div align="center">
    <
    table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="0" border="0" width="100%" align="center" style="border-top-width:1px">
    <
    tr align="center">
    <
    td class="vbmenu_control"><a href="http://url.com">Your Title</a></td>
    <
    td class="vbmenu_control"><a href="http://url.com">Your Title</a></td>
    <
    td class="vbmenu_control"><a href="http://url.com">Your Title</a></td>
    <
    td class="vbmenu_control"><a href="http://url.com">Your Title</a></td>
    <
    td class="vbmenu_control"><a href="http://url.com">Your Title</a></td>
    <
    td class="vbmenu_control"><a href="http://url.com">Your Title</a></td>
    </
    tr>
    </
    table>
    </
    div>
    <!-- / 
    Navbar Links --> 
    Then click Save and Reload!

    Done!

    OPTIONAL:

    If you want to show a link only to members use this:

    Code:
    PHP Code:
    <if condition="$show['member']">
    <
    td class="vbmenu_control"><a href="http://url.com">Link Title Goes Here</a></td>
    </if> 
    If you want to show a link only to members, and a different link to guests use this:

    Code:
    PHP Code:
    <if condition="$show['member']">
    <
    td class="vbmenu_control"><a href="http://url.com">Member Link Title Goes Here</a></td>
    <else />
    <
    td class="vbmenu_control"><a href="http://url.com">Guest Link Title Goes Here</a></td>
    </if> 
    To make the link open in a new window use this URL instead:

    Code:
    PHP Code:
    <td class="vbmenu_control"><a href="http://url.com" target="_blank">Link Title Goes Here</a></td
    To make the link(s) only visible to certain usergroups use this:

    Code:
    PHP Code:
    <if condition="is_member_of($bbuserinfo, X, Y, Z)">
    <
    td class="vbmenu_control"><a href="http://url.com">Link Title Goes Here</a></td>
    </if> 
    Substitute X, Y, Z with the ID numbers of the groups that you want to allow to see the link. If you only want one usergroup to be able to see the link then use: $bbuserinfo, X and substitute X with the ID number of the group that you want to allow to see the link.

    Of Course you want to change the URL's to your site URL and direct the link to any site or feature you want for your site.

    Any problems, let me know.

    Make sure if you use this template edit to CLICK INSTALL.
    Hình Kèm Theo Hình Kèm Theo
    File Kèm Theo File Kèm Theo
    Khách viếng thăm hãy cùng PandavB xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

 

 

Các Chủ đề tương tự

  1. Word Links FREE (Turn words into links) by BOP5
    Bởi PandavB trong diễn đàn vBulletin 4.x Add-ons
    Trả lời: 0
    Bài viết cuối: 10-02-14, 10:23 AM
  2. Easy Main Tools
    Bởi odimon trong diễn đàn Releases
    Trả lời: 15
    Bài viết cuối: 02-06-10, 09:38 AM
  3. Hướng dẫn cài Audition với Easy PHP
    Bởi heroes1412 trong diễn đàn Releases
    Trả lời: 24
    Bài viết cuối: 24-11-08, 12:34 PM

Quyền viết bài

  • Bạn Không thể gửi Chủ đề mới
  • Bạn Không thể Gửi trả lời
  • Bạn Không thể Gửi file đính kèm
  • Bạn Không thể Sửa bài viết của mình
  •  
Múi giờ GMT +7. Bây giờ là 06:07 AM.
vBulletin®, Copyright ©2000-2011, Jelsoft Enterprises Ltd.
CLBGamesVN không chịu trách nhiệm về Luật Bản Quyền của các tài liệu, bài viết v.v...được đăng tải trên diễn đàn này.
Diễn đàn phát triển dưới sự đóng góp của tất cả thành viên. BQT chỉ là những người thành lập ra sân chơi, quản lý và duy trì về mặt kỹ thuật, nội dung khi hợp lệ.