vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Add-On Releases - Country Flags - Postbit & Postbit_Legacy. vB 3.8.X (https://vborg.vbsupport.ru/showthread.php?t=238863)

matthewhotdude 03-24-2010 07:52 PM

Quote:

Originally Posted by ghostpt (Post 2009601)
When you add User Profile Field check the ID of the field. Eg: If the field is field10, replace the X with 10.

Code:

Country: <img src="http://www.Yourforum.com/images/buttons/flags/$post[field10].GIF" alt="$post[username]'s Flag is: $post[field10]" border="" />

Yes sorted thanks, didnt notice there were 2 X's that needed changing in each edit

Black Tiger 03-24-2010 11:27 PM

I think I had this installed maybe in 2.x or another 3.x version. I've got a whole /flags directory in my vbulletin.:)
I think I'm going to try this mod too.

Welshy2008 03-25-2010 09:03 AM

Matthew,

There are Three (3) X's to replace, Mate. ;)

<!-- Wy Country Flags Start -->
<if condition="$post['fieldX']">
Country: <img src="http://www.Yourforum.com/images/buttons/flags/$post[fieldX].GIF" alt="$post[username]'s Flag is: $post[fieldX]" border="" />
</if>
<!--// Wy Country Flags End -->


You have missed out the code that is in Bold Green.


That gives the name of the country flag that that user has chosen, when you hover the mouse over their flag.

matthewhotdude 03-25-2010 09:12 AM

ahh thanks welshy :)

Welshy2008 03-25-2010 09:32 AM

That's it mate, It working great now.


Can you go into your flags folder and rename the UK flag from "UK.gif" to "UK.GIF"?


That Flag will then work too. ;)

Welshy2008 03-25-2010 09:36 AM

1 Attachment(s)
Attached is a UK.GIF for those who have already installed this.

For those who haven't, I have added it to the original folder in the OP.

matthewhotdude 03-25-2010 09:53 AM

Thanks, Wondered why that didnt work

killerkraft 03-25-2010 01:34 PM

Thank's mate.

Works like a charm.

Welshy2008 03-25-2010 01:35 PM

Quote:

Originally Posted by killerkraft (Post 2010027)
Thank's mate.

Works like a charm.



You're Welcome.

Aztlan 03-26-2010 05:33 PM

Good plugin :)

a question,
is there a way to return to normal, without any flag?

once users have selected a flag, they can't return to normal since the software is saying a flag is required..


All times are GMT. The time now is 04:53 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.01062 seconds
  • Memory Usage 1,734KB
  • 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
  • (1)bbcode_code_printable
  • (2)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