vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Profile Enhancements - vBulletin Flags In Postbit (https://vborg.vbsupport.ru/showthread.php?t=159252)

JacBowen 10-01-2007 10:00 PM

vBulletin Flags In Postbit
 
I was bored so thought I would make a mod with the FamFamFam images (flags)... So here you go.

What it does: You select what country your from in Registration / Profile and it will show up in postbit (the flag).

https://vborg.vbsupport.ru/external/2007/10/17.png

Thanks,
Jac

Barakat 10-02-2007 01:37 AM

i believe i saw it since soooo long ... and i have it on my forum but thanks

iogames 10-02-2007 01:47 AM

Not so long, I was fixing mine today, and I can't post the link cause I will be slammed and punished as the worst user ever... :eek:

iogames 10-02-2007 08:25 PM

Ok lest try it

JacBowen 10-02-2007 08:30 PM

Yea that's where my original idea came from, the flag icons for that were no way as nice as the FamFamFam ones so I made a mod with the FamFamFam images.

Jac

Hornstar 10-03-2007 07:42 AM

true the famfamfam icons are so sexy. Thanks for sharing.

JacBowen 10-03-2007 09:17 AM

No problem :).

airliner 10-03-2007 09:52 AM

In
<if condition="$post[fieldXX]"><img src="images/flags/$post[fieldXX].gif"
Should be *.png?

They do not show up anyways.
Just as text. I thought it might be something with the path but I added http://www.mysite.com/forum/images/**** instead.
Do not work.

Do I something wrong?

JacBowen 10-03-2007 11:13 AM

Your right, should be PNG.
As for your images problem, could you explain a little better, sorry just not understanding.
Updated.

Regards,
Jac

airliner 10-03-2007 11:39 AM

Check there:
http://airliners-atc.com/forum/member.php?u=1

There is no flag there, just ISO countrycode.
And in UserCP when choosing my flag only ISO country code shows up, not a flag.
I have changed the img src path to full address path like:
<if condition="$post[fieldXX]"><img src="http://airliners-atc.com/forum/images/flags/$post[fieldXX].png"

Is fieldXX wrong?

JacBowen 10-03-2007 11:46 AM

Ok, go into your AdminCP.
On the left navigation go...

User Profile Fields > User Profile Field Manager

Look for

Flag Single-Selection Menu Required, Editable, Searchable, Members List field6 [Edit][Delete]

See where it says Field6, well yours will probably be different but you insert that instead of the XX.

Jac

airliner 10-03-2007 11:50 AM

Got it!
Thanx!
Great mod!

JacBowen 10-03-2007 11:52 AM

:) No problem, don't forget to click install ;).

Jac

wolfe 10-03-2007 12:35 PM

great mod m8. sugession can u make it a radio select choice like the icons

JacBowen 10-03-2007 12:36 PM

Radio choice would take up a lot of the page I imagine, but could be possible...

wolfe 10-03-2007 01:30 PM

well can u make an addon then m8 and it would be better to pick if you could see the flag and not just AF or EN and it needs to be possible to pick the ammount to show in row like 8 then it starts new line.

or even like the mood hack where it has the images in a ajax menu :P

JacBowen 10-03-2007 01:39 PM

I will look into it :)

wolfe 10-03-2007 01:44 PM

thx m8 :P

cuphongle 10-03-2007 02:10 PM

nice hack

thanks

kiwivc 10-07-2007 03:26 AM

Help please?

Installed...followed the instructions but the images don't show up..just the Country Code.
I've double checked that the Flag Field is correct ($post[field21].png")
I've uploaded the Flags file to images/ ... checked they're all .png
The flags folder is in the same directory as another image folder (ranks) which contain .png files and those show up where they should

Any help would be appreciated thanks :)

JacBowen 10-07-2007 03:38 PM

Do you have the image URL, there could be a issue with the list, I think there is only 200 FAM images but like 250 ISO listings.

Jac

wickedstangs 10-07-2007 03:51 PM

How hard is it to change to US State flags? Also I have all the flags ready and sized.

kiwivc 10-07-2007 09:33 PM

Quote:

Originally Posted by JacBowen (Post 1354830)
Do you have the image URL, there could be a issue with the list, I think there is only 200 FAM images but like 250 ISO listings.

Jac

My particular flag image is there NZ.png but only NZ<the text> shows in the profile field<21>
https://vborg.vbsupport.ru/
https://vborg.vbsupport.ru/
https://vborg.vbsupport.ru/

<!-- / flags start -->
<if condition="$post[field21]"><img src="images/flags/$post[field21].png"></if>
<!-- / flags end -->

What have I missed?:confused:

JacBowen 10-07-2007 09:39 PM

Hmm I don't really know, could you possibly set me up an account to take a look?.
Jac

wickedstangs 10-08-2007 06:18 PM

Quote:

Originally Posted by kiwivc (Post 1355059)
My particular flag image is there NZ.png but only NZ<the text> shows in the profile field<21>
http://img392.imageshack.us/img392/1853/nzoy6.jpg
http://img20.imageshack.us/img20/4189/flagit5.jpg
http://img239.imageshack.us/img239/6903/pngvz8.jpg

<!-- / flags start -->
<if condition="$post[field21]"><img src="images/flags/$post[field21].png"></if>
<!-- / flags end -->

What have I missed?:confused:

I think you posted the wrong Field number

kiwivc 10-09-2007 01:46 AM

Quote:

Originally Posted by JacBowen (Post 1355065)
Hmm I don't really know, could you possibly set me up an account to take a look?.
Jac

Done and sent a pm with details
cheers :)

GSPFAN 10-10-2007 12:36 AM

I have it up and running and some flags work and others do not. It seems that about 75% of the flags are 628 bytes in size and the rest are 66.4 KB (68,091 bytes)

the 628 ones all work but the much larger ones show up as a red X. Is there a setting in Admin panel that i can use to make them all show up or does someone have to resize the larger ones?

Kaycee123 10-10-2007 03:37 AM

No flags show up on our site either. It just shows up on user profile as the country code - eg. CA for me.

No flag visible anywhere. What's wrong??

Mystery Man 10-10-2007 03:31 PM

This is one of the worse add-ons I've downloaded on this forum, not to upset the developer but honestly this is so buggy that it should never had been released in the first place.

Flag names doesn't match with the ISO list and no matter what I tried and I tried a lot I couldn't get the flags to appear only national codes.

Majest 10-12-2007 11:22 PM

Works great, been looking for something like this for a long time. *Installed*

GSPFAN 10-12-2007 11:41 PM

Quote:

Originally Posted by Majest (Post 1358592)
Works great, been looking for something like this for a long time. *Installed*


What version of VB are you running?

Also have you checked to see that all the flags work?

GandalfDDUK 10-14-2007 08:53 PM

running 3.6.8 and flags don't show for me either, have the right field number, flags are chmod to 755 and it still displays country code.

Arrogant-One 10-17-2007 01:04 AM

Quote:

Originally Posted by GandalfDDUK (Post 1360051)
running 3.6.8 and flags don't show for me either, have the right field number, flags are chmod to 755 and it still displays country code.

Australia's flag isn't very sharp in terms of picture/image quality.

AO

GSPFAN 10-17-2007 11:20 AM

Quote:

Originally Posted by Arrogant-One (Post 1361978)
Australia's flag isn't very sharp in terms of picture/image quality.

AO


Is this mod working on your site and do all the flags show up?

gRanat 10-18-2007 11:26 AM

I also have the problem with showing images of flags. I see only the countrycode...

GandalfDDUK 10-20-2007 11:03 PM

Sorted it in this part;

Code:

<!-- / flags start -->
<div>
<if condition="$post[fieldXX]"><img src="images/flags/$post[fieldXX].png"></if>
</div>
<!-- / flags end -->

REPLACE with;

Code:

<!-- / flags start -->
<div>
<if condition="$post['fieldXX']"><img src="http://www.yourdomain.com/forumdirectory/images/flags/$post[fieldXX].png"></if>
</div>
<!-- / flags end -->

and the flags should show.

OnyxChase 10-21-2007 12:26 AM

There is some flags missing or some countries extra in the list provided. I randomly selected DC from the list and realized the flag was missing. Here is a list I made:

Code:

AD
AE
AF
Afghanistan
AG
AI
AL
Albania
AM
American Samoa
AN
AO
AR
AS
AT
AU
AW
AX
AZ
BA
BB
BD
BE
BF
BG
BH
BI
BJ
BM
BN
BO
BR
BS
BT
BV
BW
BY
BZ
CA
catalonia
CC
CD
CF
CG
CH
CI
CK
CL
CM
CN
CO
CR
CS
CU
CV
CX
CY
CZ
DE
DJ
DK
DM
DO
DZ
EC
EE
EG
EH
england
ER
ES
ET
europeanunion
FAM
FI
FJ
FK
FM
FO
FR
GA
GB
GD
GE
GF
GH
GI
GL
GM
GN
GP
GQ
GR
GS
GT
GU
GW
HK
HM
HN
HR
HT
HU
ID
IE
IL
IN
IO
IQ
IR
IS
IT
JM
JO
JP
KE
KG
KH
KI
KM
KN
KP
KR
KW
KY
KZ
LA
LB
LC
LI
LK
LR
LS
LT
LU
LV
LY
MA
MC
MD
ME
MG
MH
MK
ML
MM
MN
MO
MP
MQ
MR
MS
MT
MU
MV
MX
MY
MZ
NA
NC
NE
NF
NG
NI
NL
NO
NP
NR
NU
NZ
OM
PA
PE
PF
PG
PH
PK
PL
PM
PN
PR
PS
PT
PW
PY
QA
RE
RP
RS
RU
RW
SA
SB
SC
scotland
SD
SE
SG
SH
SI
SJ
SK
SL
SM
SN
SO
SR
ST
SV
SY
SZ
TC
TD
TF
TG
TH
TJ
TK
TL
TM
TN
TO
TR
TT
TV
TW
TZ
UA
UG
UM
US
UY
UZ
VA
VC
VE
VG
VI
VN
VU
wales
WF
WS
YE
YT
ZA
ZM
ZW


GandalfDDUK 10-21-2007 05:59 AM

Quick tip,

If you change all the 2 letter codes to country names in the options under profile field, instead of pasting the list and then change the file names to match, it will ask you to select your country by name instead of 2 letters, very helpful for those who may not know what the 2 letters are for their country.

logofreax 10-28-2007 09:15 PM

Hi, I also installed this Hack, but have same Problem like some other. In Profile I only have the Name but no Icon.

Quote:

<!-- / flags start -->
<div>
<if condition="$post['field10']"><img src="http://www.faq4mobiles.de/forum/images/flags/$post[field10].png"></if>
</div>
<!-- / flags end -->
Can you give me a hint how to fix this problem?

cu
logofreax

BoneDust 11-19-2007 03:56 AM

I believe I have everything setup right; I changed the field to field5 for my board but still no images are displayed. I tried all the suggestion in this thread and I am running 3.6.8


All times are GMT. The time now is 03:28 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.01247 seconds
  • Memory Usage 1,818KB
  • 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
  • (3)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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