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 Flags - Postbit & Postbit_Legacy. vB 4.0.x (Inc GO (https://vborg.vbsupport.ru/showthread.php?t=229511)

glen290 10-24-2011 09:17 AM

Is there anyway I could make this appear as either the users avatar or in their signatures by default ?

Scalemotorcars 10-24-2011 03:12 PM

1 Attachment(s)
Working perfectly in Posts but I cant get it working in Profiles...

Ive been trying to get this working in the profile popup and on the profile page. Has anyone figured out the correct code. I can get it to show but it always defaults to the US.

This is the edited code. I changed (post) to (bbuserinfo) to get it to show but like I said its not working correctly.

Code:

<dl class="stats">
                                <dt>Country</dt>
                                <dd><img src="{vb:stylevar imgdir_button}/flags/{vb:raw bbuserinfo.fieldX}.GIF" alt="Users Flag" border="" /> {vb:raw bbuserinfo.fieldX}</dd>
                        </dl>


Also I resized all the images to only 10px tall if you want to show the flag but keep the image small. Took forever but here's the zipped file...

datoneer 11-03-2011 03:30 PM

I have vb 4.1.5 and this mod not working. I cannot see anything in my profile. Help??

Welshy2008 11-03-2011 04:15 PM

Quote:

Originally Posted by datoneer (Post 2264102)
I have vb 4.1.5 and this mod not working. I cannot see anything in my profile. Help??


What is your forum address? PM it to me or put it on here.

If you would like me to take a look for you, you would have to set up a temporary admin account with admin permissions and I can sort it out for you. (PM me the details, if you would like to do that).

datoneer 11-04-2011 04:35 PM

Welshy2008 did a whole job for me. Thank you. Really appreciate this. vbulletin version 4.1.5 and it's working now perfect. Amazing mod. nominated for MOTM.

Scalemotorcars 11-13-2011 12:12 PM

Anyone have a way to do this in profiles? See my post above, thanks...

Nelson58 11-15-2011 03:09 PM

Any chance to do state flags also for US people?

Nelson

Scalemotorcars 11-16-2011 01:03 AM

@ALLTHMBZ.

Easy. Just get your flags (try famfamfa or some other free icon pack) rename them to whatever your option is in the profile and follow the same steps.

So as an example if your option in your profile field is California then your matching flag would be California.gif

spillage 11-27-2011 07:29 PM

Working fine on 4.1.8

hhumas 11-28-2011 03:34 AM

working in vb 4.1.4 .. Note that you should place flags in styles > yourstyle > images >flags

Merjawy 11-28-2011 08:23 AM

Nice MOD, thanks

Some flags have changed!!!!

TEAMSlowpitch 12-07-2011 01:47 PM

Having the hardest time getting this to show up

Code:

<!-- Wy Country Flags Start -->
<vb:if condition="$post['field5']"><style="text-align:left"> Country:</dt> <img src="http://www.magictyrant.com/images/buttons/flags/{vb:raw post.field5}.GIF" align="middle" alt="{vb:raw post.field5}" border="" /></vb:if> 
<!-- Wy Flags End -->


Welshy2008 12-07-2011 02:18 PM

Quote:

Originally Posted by TEAMSlowpitch (Post 2275545)
Having the hardest time getting this to show up

Code:

<!-- Wy Country Flags Start -->
<vb:if condition="$post['field5']"><style="text-align:left"> Country:</dt> <img src="http://www.magictyrant.com/images/buttons/flags/{vb:raw post.field5}.GIF" align="middle" alt="{vb:raw post.field5}" border="" /></vb:if> 
<!-- Wy Flags End -->



I see that your board is closed at present.

If you want to set up a temp Admin account with permissions and PM me the details, I will have a look for you and get it up and running for you.

Welshy2008.

datoneer 12-07-2011 03:57 PM

Does it work on 4.1.8?

Mariner1 12-07-2011 04:23 PM

Im having a prob.Im using 4.18.Instead of seeing my country flag in my profile i just see me country name in txt format,no images.Any ideas pls

POL_ED 12-08-2011 01:48 AM

@ Mariner1,
Country name in English must be, or rename the file flags.
Look OPTIONS.txt

Work with vb4.1.8
Thanks :)

spillage 12-08-2011 09:55 PM

Quote:

Originally Posted by datoneer (Post 2275575)
Does it work on 4.1.8?

It most certainly does.
Works great on my site.

Mariner1 12-08-2011 10:15 PM

Ive copied and pasted the countries from the option txt when i was setting it up.When i choose my country in profile it just says UK,no images

POL_ED 12-09-2011 12:44 AM

@ Mariner1,
Quote:

** Replace the ‘X’ with your FieldID number **
Change 3 x fieldX
If, for example Country Flag = field5
Code:

<vb:if condition="$post['field5']"><style="text-align:left"> Country:</dt> <img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.field5}.GIF" align="middle" alt="{vb:raw post.field5}" border="" /></vb:if> 
<!-- Wy Flags End -->

Look

Mariner1 12-09-2011 10:33 AM

I have done that already

<!-- Wy Country Flags Start -->
<vb:if condition="$post['field5']"><style="text-align:left"> Country:</dt> <img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.field5}.GIF" align="middle" alt="{vb:raw post.field5}" border="" /></vb:if>
<!-- Wy Flags End -->

datoneer 12-09-2011 02:37 PM

Hi,
please can you help me with country flags. I have 4.1.8 version.

I added everything in postbit template to show me flag after posts, but image not showing only name of the country.

Thanks

POL_ED 12-09-2011 04:20 PM

@ Mariner1,
You have YOURFORUM_ADDRESS.com/forum/images/buttons/flags/UK.GIF

Mariner1 12-09-2011 11:42 PM

Ok where do i add forum address in this pls

<!-- Wy Country Flags Start -->
<vb:if condition="$post['field5']"><style="text-align:left"> Country:</dt> <img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.field5}.GIF" align="middle" alt="{vb:raw post.field5}" border="" /></vb:if>
<!-- Wy Flags End -->

POL_ED 12-10-2011 12:00 AM

It's ok for vb4.1.8
img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.fieldX}.GIF"

for vb4.0.7
img src="http://www.YOURFORUM ADDRESS.com/forum/images/buttons/flags/{vb:raw post.fieldX}.GIF"

Mariner1 12-10-2011 12:08 AM

Sorry about this,im totally confused now.

img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.fieldX}.GIF"

This line of code is there already

<!-- Wy Country Flags Start -->
<vb:if condition="$post['field5']"><style="text-align:left"> Country:</dt> <img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.field5}.GIF" align="middle" alt="{vb:raw post.field5}" border="" /></vb:if>
<!-- Wy Flags End -->

K!nG 12-10-2011 01:17 AM

Quote:

Originally Posted by Mariner1 (Post 2276414)
Sorry about this,im totally confused now.

img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.fieldX}.GIF"

This line of code is there already

<!-- Wy Country Flags Start -->
<vb:if condition="$post['field5']"><style="text-align:left"> Country:</dt> <img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.field5}.GIF" align="middle" alt="{vb:raw post.field5}" border="" /></vb:if>
<!-- Wy Flags End -->

Hi Mariner,
May b i am wrong but i have a feeling that you have wrong "user profile field" number just double check by going in your admincp and see if its the same field that you have created.

Mariner1 12-10-2011 01:25 AM

Just double checked and the field number is right.

POL_ED 12-10-2011 02:27 AM

@ Mariner1,
Give address YOURFORUM.

Welshy2008 12-10-2011 08:13 AM

Quote:

Originally Posted by datoneer (Post 2276217)
Hi,
please can you help me with country flags. I have 4.1.8 version.

I added everything in postbit template to show me flag after posts, but image not showing only name of the country.

Thanks


Hi,

You have the wrong route to your flags folder.

You have:

http://www.imspot.org/images/styles/ColorTheory/buttons/flags/{vb:raw post.field5}.GIF

It should be:

http://www.imspot.org/images/buttons/flags/{vb:raw post.field5}.GIF

Let me know how you get on.

Welshy2008 12-10-2011 08:24 AM

Please remember Guys and Girls,

It makes no difference if you have different styles.

You just need the one route to your flags.

For an example of this - please see the help for the member above. (How it was in Red bold text - and how it should be in green bold text).

Welshy2008 12-10-2011 08:27 AM

Marina.

I have just tired checking your forum - but it is showing that it cannot be displayed.

This is the correct one, yes?:

http://thatsentertainmentuk.co.uk/forum.php


Sounds like your issue is the same as that described in by two posts above this one.

Let me know if that helps.

Welshy2008 12-10-2011 08:30 AM

Also, If anyone would like me to have a look and get it working on their forum, please set up a temporary admin account with admin permissions and PM me the details.

I will then sort it out for you.

bremereric 12-10-2011 10:43 PM

My site is using vb 4.1.3 and I used Krusty's code. Here are some snap shots of what I did. I have a big red X for the picture. My forum was set up by someone else. My directory to the flag.gifs is aspenandvolare/images/buttons/flags. I am sure its not finding the flag.gifs and is giving me the red x.

https://vborg.vbsupport.ru/external/2011/12/9.gif

https://vborg.vbsupport.ru/external/2011/12/10.gif

https://vborg.vbsupport.ru/external/2011/12/11.gif

POL_ED 12-10-2011 10:58 PM

I do not see on your serwer "United States.GIF" flag
Code:

http://www.aspenandvolare.com/images/buttons/flags/United%20States.GIF
Your Avatar is ok
Code:

http://www.aspenandvolare.com/images/avatars/1979volarecustom.jpg
=====================
Edit://
Now working Country Flags on http://www.aspenandvolare.com :)

bremereric 12-11-2011 03:30 AM

Quote:

Originally Posted by POL_ED (Post 2276620)
I do not see on your serwer "United States.GIF" flag
Code:

http://www.aspenandvolare.com/images/buttons/flags/United%20States.GIF
Your Avatar is ok
Code:

http://www.aspenandvolare.com/images/avatars/1979volarecustom.jpg
=====================
Edit://
Now working Country Flags on http://www.aspenandvolare.com :)

WTF..It wasn't working before and I left for a Christmas party and I came back and it is. I didn't change anything?

gazza2008 12-11-2011 10:28 AM

Quote:

Originally Posted by Welshy2008 (Post 2276465)
Also, If anyone would like me to have a look and get it working on their forum, please set up a temporary admin account with admin permissions and PM me the details.

I will then sort it out for you.

Ive pmd you mate and sorted a temp admin account out

Mariner1 12-11-2011 10:43 AM

Sent you a pm too :)

gazza2008 12-11-2011 12:57 PM

Quote:

Originally Posted by gazza2008 (Post 2276712)
Ive pmd you mate and sorted a temp admin account out



I have fixed this mate

so you can disragard the PM

Mariner1 12-11-2011 02:06 PM

Id like to thank Welshy2008 for fixing the problem ive had.He fixed it in minutes.

Thanks again bud,really appreciate your help

bremereric 12-11-2011 03:18 PM

I put the same code into the postbits for two other sytles I have and I get the big red x on those sytles. It works fine on vb4 default sytles. I would also like to know where to install the code on postbit legacy in case I want to switch my forum over to that someday. If you go to my site you can see that I am using what I believe to be postbit legacy but the template I added the code to was postbit.

https://vborg.vbsupport.ru/external/2011/12/8.gif


All times are GMT. The time now is 02:58 AM.

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.01813 seconds
  • Memory Usage 1,829KB
  • 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
  • (8)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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