vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Add-On Releases - Country Flag and simcard model and .. (https://vborg.vbsupport.ru/showthread.php?t=228371)

Charlie98902 11-24-2009 02:43 PM

I doubt the code will but the graphics will.

Welshy2008 11-24-2009 03:55 PM

1 Attachment(s)
OK Guys - you can try the following:

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

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!!!

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

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

Find:

Code:

$vbphrase[posts]: $post[posts]
Add Below:

Code:

<!--  Flags Start  -->
<if condition="$post['field11']">
        Country: <img src="http://www.Your ForumAddress.com/images/buttons/$post[fieldX].GIF"/></if>
<!--//  Flags End  -->




FOR vB4 Beta - This code will add Alt Text to your Flag on mouseover.

Find:

Code:

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

ADD Below:

Code:

<!-- Country Flags Start -->
<vb:if condition="$post['fieldX']">
        Country: <img src="http://www.yourforumaddress.com/images/buttons/$post[field1X].GIF" alt="Users Flag on yourforumnamehere!" border="" />
</vb:if>
<!--// Country Flags End -->


** SAVE TEMPLATE **


** Replace the ‘X’ with your FieldID number **


That should work for you?!

Charlie98902 11-24-2009 04:20 PM

Thanks Welshy I have this thread tagged.

Welshy2008 11-25-2009 07:21 AM

Your Welcome Charlie, Let me know it it works for you in vB4.

Simmigrant 11-25-2009 01:39 PM

Haha, unbelievable.. I've been searching for this all morning in the search bar.. Download VB 4, check out the mods randomly.. and look what I find :/

Thanks! Installed and Rated ++ ;)

Welshy2008 11-25-2009 01:49 PM

Quote:

Originally Posted by Simmigrant (Post 1920703)
Haha, unbelievable.. I've been searching for this all morning in the search bar.. Download VB 4, check out the mods randomly.. and look what I find :/

Thanks! Installed and Rated ++ ;)

Lol

Charlie98902 11-25-2009 10:58 PM

Can I put all the flags in one folder then upload it and then set it as I set the feildX ID?

Charlie98902 11-25-2009 11:22 PM

OPTIONS.xml where does that go? If I try to import as a product it says invalid file.

bart6767 11-25-2009 11:42 PM

Tryed this and it does not work .

Charlie98902 11-25-2009 11:45 PM

The original isn't anything either the notepad is just a list of all the flags nothing else.


All times are GMT. The time now is 11:48 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01057 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete