[DBTech] vBShout v6 (vB4) [AJAX]
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
  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 [DBTech] vBShout v6 (vB4) [AJAX]

    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 ** Please note that the vB4.0.4 Version does not show this option. Please select "Edit Profile" option. The selct your country flag option, I can confirm, Also shows on registration too.
    ** 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:
    PHP Code:
     <span class="usertitle">
                            {
    vb:raw post.usertitle}
                        </
    span
    If you would like to place it under your number of user posts (to the right of your Postbit) then look for:

    Code:
    PHP Code:
    <dt>{vb:rawphrase posts}</dt> <dd>{vb:raw post.posts}</dd
    (upto vB4.0.5) ADD BELOW:

    Code:
    PHP Code:
    <!-- Wy Country Flags Start -->
    <
    vb:if condition="$post['fieldX']"> <dt>Country:</dt> <img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.fieldX}.GIF" alt="Users Country Flag" border="" /></vb:if>
    <!-- 
    Wy Flags End --> 
    (for vB4.0.6 AND 4.0.7) ADD BELLOW:

    Code:
    PHP Code:
    <!-- Wy Country Flags Start -->
    <
    vb:if condition="$post['fieldX']"> <dt>Country</dt> <img src="http://www.YOURFORUM ADDRESS.com/forum/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 -->
    (
    Also adds the Username to the 'alt' Code on Mouseover). 
    (for vB4.0.8):

    Code:
    PHP Code:
    <!-- Wy Country Flags Start -->
    <
    vb:if condition="$post['fieldX']"><style="text-align:left"Country:</dt> <img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.fieldX}.GIF" align="middle" alt="Users Country Flag" border="" /></vb:if>  
    <!-- 
    Wy Flags End -->
    (
    Thanks to Krusty1231 for this). 
    (for vB4.1.0 , 4.1.0 PL2 & 4.1.1)

    Code:
    PHP Code:
    <!-- Wy Country Flags Start -->
    <
    vb:if condition="$post['fieldX']"><style="text-align:left"Country:</dt> <img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.fieldX}.GIF" align="middle" alt="{vb:raw post.fieldX}" border="" /></vb:if>  
    <!-- 
    Wy Flags End -->
    Even though I have not tested this in these versionsothers have and have reported this mod to be working in them.[/b
    Please make sure the style and template edits are still there. Just one of the people can be seen on post 350


    ** 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:

    ** 30/05/2012 - Update "Flags2 to include correct name on Switzerland flag"..

    ** 27/09/2010 - Update on 4.0.6 "added code for the 4.0.6 Version, and instructions on how to place the flug under a user's postcount in posbit"..


    ** 12/07/2010 - Update on 4.0.4 "Which page displays this option"..

    ** 26/06/2010 - Updated Flag Names and Country Names in the "Options" text file. PLEASE Re-upload and overwrite all three flag folders and the options Text file...

    ** 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.
    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. [DBTech] Advanced Post Thanks / Like v3 (vB3) [AJAX]
    Bởi KingSky trong diễn đàn vBulletin 3.8 Add-ons
    Trả lời: 0
    Bài viết cuối: 10-02-14, 12:26 PM
  2. [DBTech] vBMail v1 (vB3)
    Bởi KingSky trong diễn đàn vBulletin 3.8 Add-ons
    Trả lời: 0
    Bài viết cuối: 10-02-14, 12:21 PM
  3. [DBTech] vBShout v6 (vB3) [AJAX]
    Bởi KingSky trong diễn đàn vBulletin 3.8 Add-ons
    Trả lời: 0
    Bài viết cuối: 10-02-14, 11:21 AM
  4. [DBTech] Advanced User Tagging v3 (vB3)
    Bởi KingSky trong diễn đàn vBulletin 3.8 Add-ons
    Trả lời: 0
    Bài viết cuối: 10-02-14, 10:29 AM
  5. [DBTech] Advanced Post Thanks / Like v3 (vB4) [AJAX]
    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, 09:56 AM

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à 02:21 PM.
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ệ.