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 - Flags - Country and Region (https://vborg.vbsupport.ru/showthread.php?t=155223)

sensuison 04-05-2008 12:26 PM

Hi,

I just followed all the instructions on installing this flag mod but I couldn't see my flag under my profile on the thread?

For example: The administrator must have a flag under the picture:

http://philippinebasketball.net/foru...thread.php?t=2

I added this inside postbit_legacy

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

..and uploaded the images inside http://www.philippinebasketball.net/images/flags and region

Any help?

Thanks.

sensuison 04-05-2008 12:41 PM

Ok, never mind, I got it working. I pasted it on postbit only, not the postbit_legacy.

sensuison 04-05-2008 11:04 PM

question guys, do you guys have a new list of country flag images? a better graphics or 3D something?

Digital Jedi 04-06-2008 01:17 AM

A few posts back I posted an updated list with corrected spellings and Ireland flags added. But that's about it so far.

sensuison 04-07-2008 11:35 PM

Ok, hmm i think i might just search for a new one or make a new one. I just noticed that the flags are quite pixilized or distorted.

bago200 04-08-2008 05:51 PM

Yeah, the flags are not all what i expected it to be but can work for now. I also noticed that if nothing shows up after copying the code to postbit_legacy its best to try putting the code in postbit only.


Find the code:

<div>
$vbphrase[posts]: $post[posts]
</div>

As mentioned in the installation and copy underneath the first code found.

<!-- / flags start -->
<div>
<if condition="$post[field7]"><img src="images/flags/$post[field7].gif"></if>
<if condition="$post[field8]"><img src="images/region/$post[field8].gif"></if>
</div>
<!-- / flags end -->

Notice i have my field#s in, not the display #'s

Copy the folders 'flags & 'region' to your www.site-name.com/forum/images folder or 'styles' folder of style been used.

Options for flags selection should be in user profile and thats it.

P.S. works well on 3.6.9

clothahump 04-08-2008 08:18 PM

Installed and Uninstalled within 30 minutes, images do not show for me, maybe try it again when it works.

Digital Jedi 04-08-2008 09:45 PM

Quote:

Originally Posted by sensuison (Post 1485579)
Ok, hmm i think i might just search for a new one or make a new one. I just noticed that the flags are quite pixilized or distorted.

Pixelated? There's no reason they should be pixelated. Did you alter the size of the images at all? These images are very tiny and will distort if you try to enlarge them. They should look like this, exactly like they do in the Screenshot:



Quote:

Originally Posted by bago200 (Post 1486121)
Yeah, the flags are not all what i expected it to be but can work for now. I also noticed that if nothing shows up after copying the code to postbit_legacy its best to try putting the code in postbit only.

That's because postbit and postbit_legacy are two different style options. For example, vBulletin.org uses postbit, with the Avatars and User Information above everyone's posts. But some forums, like mine, use postbit_legacy, with the avatar and info to the left hand side of all the posts. You put this code in whichever template your using for your forum.


Quote:

Originally Posted by clothahump (Post 1486203)
Installed and Uninstalled within 30 minutes, images do not show for me, maybe try it again when it works.

This is a very simple template edit. It works on everyone's forum, regardless of version. But if it's not working for you, then you've put the code in the wrong template or placed it in the wrong spot.

birdie 04-13-2008 06:10 AM

Installed and working great.

Is it possible to add a "world" or "global" flag? Perhaps the United Nations flag.

I have two user names on my forum; one is 'Admin' in which I list my location as cyberspace - I use this user name for admin & mod functions, so do not want to be linked to any particular country; the other username is my name in which I use to take part in discussions, so do not mind having that name linked to a particular country.

GremlinPrince 05-18-2008 12:04 PM

thank you for this :) installed

Pirat3 09-17-2008 04:24 AM

does this work on 3.7?

siddal 09-17-2008 06:29 AM

Very nice, works in my vBulletin 3.7.3 Patch Level 1.

Thank you, Carpe :)

Digital Jedi 09-18-2008 01:32 AM

Quote:

Originally Posted by Pirat3 (Post 1623916)
does this work on 3.7?

Yes, its' just a template edit. Nothing version specific about it.

Keyser S?ze 10-31-2008 03:36 AM

u have the images linked wrong, its giving u text cuz it cant find the image

this working in 3.7.x?

GlamRockTalk 11-21-2008 06:14 PM

Very cool mod..it ROCKS! :D

I'm going to be doing the https://vborg.vbsupport.ru/showthread.php?t=184136 mod, so I wanted this to be part of one of the 'tabs' ... thanks Carpe and thanks to DJ for the updated files in Post #44 :D

And for those of you wondering, it worked perfectly in 3.7.3. As DJ mentioned, it's template based, so you're good to go.

squiky2 11-21-2008 06:21 PM

Good :)

ADT 11-26-2008 06:38 PM

hey i'm using 3.7.4 and it's only appearing as the name of the country in the "about me" section.
could anyone help me? appreciated, i also checked double checked the process of installation.

Keyser S?ze 11-26-2008 08:17 PM

this is a col mod, but would be cooler if it worked in 3.7.4, its no longer supported i guess so i suppose we are screwed

GlamRockTalk 11-26-2008 11:42 PM

I'm using it on a 3.7.3 install. I haven't tried it on the 3.7.4 one yet though. I'll test it out and see if it works or not. :)

Digital Jedi 11-27-2008 03:30 AM

Quote:

Originally Posted by ADT (Post 1673530)
hey i'm using 3.7.4 and it's only appearing as the name of the country in the "about me" section.
could anyone help me? appreciated, i also checked double checked the process of installation.

What code are you using?

Quote:

Originally Posted by Keyser S?ze (Post 1673583)
this is a col mod, but would be cooler if it worked in 3.7.4, its no longer supported i guess so i suppose we are screwed

It's just HTML and variables added to your templates, and this hasn't changed between versions. It will still work in 3.7.4.

ADT 12-04-2008 05:37 PM

Quote:

Originally Posted by Digital Jedi (Post 1673765)
What code are you using?

country only code, the problem is that it only appears in the "about me" section, and it appears as the name but not image.

Digital Jedi 12-05-2008 04:42 PM

Quote:

Originally Posted by ADT (Post 1678567)
country only code, the problem is that it only appears in the "about me" section, and it appears as the name but not image.

Oh, I see what you mean. This is not meant to show up as an image in your profile. It's only meant to show up as an image in the postbit.

ADT 12-14-2008 11:38 AM

Quote:

Originally Posted by Digital Jedi (Post 1679152)
Oh, I see what you mean. This is not meant to show up as an image in your profile. It's only meant to show up as an image in the postbit.

yeah but it's not even appearing at all when you post. please have a look, www.liberty-generation.co.uk
it's a really nice mod and i want it to work.

Digital Jedi 12-14-2008 09:33 PM

Quote:

Originally Posted by ADT (Post 1685159)
yeah but it's not even appearing at all when you post. please have a look, www.liberty-generation.co.uk
it's a really nice mod and i want it to work.

All your forums are set to private, so I can't really see anything.

Fynnon 12-14-2008 10:14 PM

Hi, i found this great looking countries flags that can be used with this Flag Mod ...
Unfortunately a few flags are missing, i only found 23, i`m wondering if someone has the rest !?

Attachment 90603 Attachment 90604 ...and 21 more !~

If you have them please share !

Thank You!

-i attached the 23 flags i have right now-

Attachment 90605

GlamRockTalk 12-15-2008 11:43 AM

Fynnon, those are great looking flags. :D

Can anyone get the rest or re-create them?

Digital Jedi 12-15-2008 03:10 PM

Those flags have been released here in the graphics section. And if I remember correctly, the thread starter's friend had made them, not a designer here on the site. I don't think the original designer plans on making anymore. Though I have been looking into making something similar. It's just I've not done a lot of work with displacement maps, much less in animation.

Naldo41 12-16-2008 06:14 PM

i am trying to add the ALT command useing {$file['name'] into the existing code so when u place your mouse over the image it will tell u the ie file name. so u can see what country the flag is from. But I cant seem to get it to work

Any help appreciated

Digital Jedi 12-16-2008 10:22 PM

Quote:

Originally Posted by Naldo41 (Post 1686838)
i am trying to add the ALT command useing {$file['name'] into the existing code so when u place your mouse over the image it will tell u the ie file name. so u can see what country the flag is from. But I cant seem to get it to work

Any help appreciated

Just add alt="$post[fieldXX]" into the IMG tag.

Naldo41 12-17-2008 01:30 PM

Thank you Digital Jedi.

rolandogomez 12-20-2008 10:41 PM

Would love to add these in the member's profile page, anyone know the code for us non-coders? Thanks, rg.

ChicagoCoin 02-25-2009 03:51 AM

Quote:

Originally Posted by Digital Jedi (Post 1687005)
Just add alt="$post[fieldXX]" into the IMG tag.

Thank You, I just added that and it's much better, you don't have to be a flag expert anymore and I'm learning different countries flags without looking at profiles.:up:

eric8476 11-10-2009 10:17 PM

I have 3.7.3 and I installed like the instructions said and its not working.

eric8476 11-10-2009 11:50 PM

got it, needed to post the code in postbit

MRGTB 11-14-2009 03:08 AM

So people can hover their mouse over the flag and see the country ALT text title. Use this below. I've also added closing "backslash" too for img tag

Code:

<div>
<if condition="$post[fieldX]"><img src="images/flags/$post[fieldX].gif" alt="$post[fieldX]" /></if>
</div>


gnagplank6 11-15-2009 03:04 AM

Is there any way I can get two nationality flags???? Instead of one country and one region???

I installed the country mod only but would love to have two countries.

Wonderful Mod!!!!

THANK YOU DIGITAL JEDI!!!!

Very easy and I made the common error of installing in postbit legacy when I am running postbit.

Installed perfectly in 3.8+

andie215 11-21-2009 11:19 AM

Quote:

Originally Posted by MRGTB (Post 1913892)
So people can hover their mouse over the flag and see the country ALT text title. Use this below. I've also added closing "backslash" too for img tag

Code:

<div>
<if condition="$post[fieldX]"><img src="images/flags/$post[fieldX].gif" alt="$post[fieldX]" /></if>
</div>



Thx for the mod and the alt bit :) works fine in 3.8.3 but wouldnt work until i added the code in postbit ...

MagicThemeParks 04-21-2010 10:28 AM

Works great for 3.8.5 and thanks to DJ for the "alt" instructions in this post and the updated list and flags in this post :up:

Digital Jedi 04-22-2010 03:36 AM

Quote:

Originally Posted by MagicThemeParks (Post 2024840)
Works great for 3.8.5 and thanks to DJ for the "alt" instructions in this post and the updated list and flags in this post :up:

I've been meaning to release this in a separate thread. I added a few things since, like regional flags for Ireland. I don't think Carpe would mind too much, considering he hasn't been online since 2007, and it's not really a major code thing. I think it's even one of the tutorials on vB.com.

MagicThemeParks 04-22-2010 10:37 AM

DJ, I wouldn't think that Carpe would mind at this point.

By the way, the updated Irish flags were included in the zip file already, right? I didn't want to be missing any flags :)


All times are GMT. The time now is 04: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.03204 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
  • (2)bbcode_code_printable
  • (14)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
  • (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