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

    Default Country Flags - Postbit & Postbit_Legacy. vB 4.0.x  

    This the first time I have done anything like this - and I will help where I can. I am no coder.

    Description:

    This Add on, gives a selection of Countries that your Member (New or Existing) can choose from in a 'Drop-Down Menu'. The Country he/she selects, will be displayed as a Flag in their Postbit.

    Credit for the Flags goes to Cobro. (I have renamed each and every flag to work with this Mod).

    Instructions:

    Firstly “Upload” ALL the Flag GIF pics to your forum root /images/buttons/flags folder.

    IE: yourforumaddress.com/forum/images/buttons/flags

    Please Note: Due to the flags folder being too large to upload as one - I have been forced to upload it as "flags1", "flags2" and "flags3" - Please ensure that you add a new folder to "images/buttons/" and name it "flags". Please copy the contents of ALL THREE (3) flags folders in the attachment below to the new 'flags' folder that you have just made. (DO NOT place them as 3 seperate folders!"


    Then in your Admin Control Panel (ACP), please do the following:
    ACP -> User Profile Fields -> Add New User Profile Field ->Profile Field Type -> Single-Selection Menu (select ‘Single-Selection Menu’ from the Drop-Down Menu) -> Please enter the following into the following fields (REMEMBER to make a note of the FieldID, because you will need to replace ALL the X’s in [fieldX] with it!!!
    (Please see 'FieldID.jpg' attachment below).

    Add New User Profile Field Single-Selection Menu:

    Title = Country Flag
    Description = Add your country flag to your profile:
    Profile Field Category = (Uncategorized)
    Options = Copy & Paste the Whole contents of the file attached below (OPTIONS)
    Set Default = None
    Display Order = You Select this (dependant on how many you already have)
    Field Required = yes, at registration and profile updating
    Field Editable by User = Yes
    Private Field = No
    Field Searchable on Members List = No
    Show on Members List = Yes


    Optional Input:

    Allow user to input their own value for this option = No
    Max length of allowed user input = 100
    Field Length = 25
    Regular Expression = Leave this Blank


    Display Page:

    Which page displays this option? = Edit Your Details

    ** SAVE **


    Then, In your Admin Control Panel (ACP)...

    ACP -> Styles & Templates -> Style Manager -> <<>> -> Postbit Templates -> select the template that you use (ie Postbit or Posbit_legacy) – This is for the Postbit_Legacy…

    FIND:
    Code: 
                        <span class="usertitle">
                            {vb:raw post.usertitle}
                        </span>

    TIP:
    (If you find that you get the box with a "red x" instead of seeing your image whilst using Option 1, Above - This means that the route to your images is wrong. Please Use option 2; Below. To find your direct path to your flags, Right click in the 'red x' area, Click properties, and then copy and paste the WHOLE address into your option 2, below Highlighted in BOLD RED).

    (OPTION 2) Or, If you would like your direct forum address and route:
    (Also adds the Username to the 'alt' Code on Mouseover).
    Code: 
    <!-- Wy Country Flags Start -->
    <vb:if condition="$post['fieldX']"> <dt>Country:</dt> <img src="http://www.YOUR FORUM ADDRESS.com/images/buttons/flags/{vb:raw post.fieldX}.GIF" alt="This is {vb:raw post.username}'s Country Flag" border="" /></vb:if></p>
    <!-- Wy Flags End -->
    ** Replace the ‘X’ with your FieldID number **

    ** Replace the ‘Red Text’ with Your Forum Address **

    ** SAVE Template **





    And that's it - Enjoy!


    Please do not forget to click "Install"

    Edit & Update TRACKER - Keep Upto date here:

    ** 15/01/2010 - Made all the Countries in the "OPTIONS.txt" in Alphabetical Order..

    ** 27/12/2009 - Changed the contents of OPTIONS.ZIP folder from a .docx file to a .txt file, as requested.

    ** 26/12/2009 - Option 2 Added
    - Flag folder Updated (UK.gif changed to UK.GIF)


    ** 05/12/2009 - OPTIONS File Added.

    http://upload.nhacmoi.info/modvb40/flags.zip


    Screen:





    File Kèm Theo File Kèm Theo
    thay đổi nội dung bởi: admin; 31-01-2010 lúc 01:12 PM
    .♥.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:

    olalavui (19-02-2010)


 

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Rank under username on postbit/postbit_legacy [ENG-ITA]
    By Dunglx in forum v4.x Modifications
    Trả lời: 2
    Bài mới gởi: 21-10-2011, 09:12 PM
  2. Trả lời: 15
    Bài mới gởi: 06-08-2011, 12:00 PM
  3. Thread as postbit and Reply as postbit_legacy
    By admin in forum v4.0.x Modifications
    Trả lời: 1
    Bài mới gởi: 17-09-2010, 08:54 AM
  4. Country Flags phpbb 3.0.7
    By hau_ooo in forum Mods
    Trả lời: 0
    Bài mới gởi: 13-07-2010, 10:28 AM
  5. Country Flags
    By hau_ooo in forum Mods
    Trả lời: 2
    Bài mới gởi: 10-10-2009, 07:41 AM

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
  •