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)

ozzy47 10-10-2013 01:42 AM

Quote:

Originally Posted by Powerlynx (Post 2451573)
Can I install this in vesion 4.2.1???

Read the post above yours.

fusionpot 10-26-2013 04:23 AM

thanks once again for letting me use your images in my roster.

http://www.official-fusion.com/Roster/

john7911 10-26-2013 09:51 AM

Thank you

john7911 10-26-2013 11:51 AM

Hi,
I use 4.2.1, I have read all what is in this link:
https://vborg.vbsupport.ru/showpost....&postcount=560

That is what I have in the Postbit_Legacy

PHP Code:

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

<!-- 
Wy Country Flags Start -->
<
div align="center">
<
vb:if condition="$post['field 13']">
    <
img src="http://www.xxxxxxxx.net/forum/images/flags/{vb:raw post.field 13}.GIF" alt="Users Flag!" border="" /></vb:if></div>
<!-- 
Wy Flags End --> 

and this is what i have in the user...

http://imageshack.us/scaled/landing/12/whh9.png

What I have to do?
Thank you ;)

Digital Jedi 10-26-2013 02:53 PM

Quote:

Originally Posted by john7911 (Post 2456391)
Hi,
I use 4.2.1, I have read all what is in this link:
https://vborg.vbsupport.ru/showpost....&postcount=560

That is what I have in the Postbit_Legacy

PHP Code:

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

<!-- 
Wy Country Flags Start -->
<
div align="center">
<
vb:if condition="$post['field 13']">
    <
img src="http://www.xxxxxxxx.net/forum/images/flags/{vb:raw post.field 13}.GIF" alt="Users Flag!" border="" /></vb:if></div>
<!-- 
Wy Flags End --> 


Why did you add a space after "field"? It should be [minicode]field13[/minicode], not [minicode]field 13[/minicode].

Scalemotorcars 01-30-2014 03:21 PM

Ive had this for a long time and it worked great on 4.1.4 but when I updated to 4.2.2 I lost the User Profile Field assigned to it. I just reinstalled and it works but only after manually selecting the flag from the Edit Profile. I remember there was a way to to apply the field# to all member in PhpMyadmin but I cant find the command to run in the database. Any help would be great.

By the way the new field is field20

Zippeh XF 02-07-2014 04:57 AM

I really love this addon, Im using 4.2.2 i followed the instructions and got it working and showing under peoples post count on postbit. But over in About Me section on profile where the Field is, for the dropdown is there a way to change it to where once a country is selected, for viewers it will show the flag on your profile instead of just the country name?

If not thats fine.

john7911 02-07-2014 08:47 PM

Hi
the flag show only for me as Admin, if I enter with a user name i don't have the flag :(
https://imagizer.imageshack.us/v2/53...0/703/4l6j.png
I'm using 4.2.2
Thank you :)

oldfan 03-11-2014 05:35 PM

This work with 4.2.2?

yjeanrenaud 03-11-2014 05:56 PM

Yes, it does

oldfan 03-12-2014 06:37 PM

I tried the (for vB4.1.0 , 4.1.0 PL2 & 4.1.1) opition and I still can't get it to work

wolfe 06-22-2014 10:30 AM

1 Attachment(s)
Attachment 149464

hope this ones ok for Northern Ireland ;)

please rename the .gif to .GIF ;)

doctorsexy 07-27-2014 09:42 AM

It wont accept all the flags Options in that field , only 31 with 4.2.2....

wEbAddEr 08-12-2014 09:04 PM

works this way with vb4.2.3.beta1

Code:

<!-- Wy Country Flags Start -->
<div align="left">Country: </dt>
<vb:if condition="$post['fieldX']">
    <img src="http://www.YOURSITE.com/forum/images/flags/{vb:raw post.fieldX}.GIF" alt="Users Flag!" align="center" border="" /></vb:if></div>
<!-- Wy Flags End -->


lapo 10-26-2014 02:12 PM

Hello i have installed but not images

vb 4.2.2


https://vborg.vbsupport.ru/external/2014/10/3.png

Country: User flag


<!-- Wy Country Flags Start -->
<div align="left">Country: </dt>
<vb:if condition="$post['field6']">
<img src="http://www.xxxxxxxxxx.com/forum/images/flags/{vb:raw post.field6}.GIF" alt="Users Flag!" align="center" border="" /></vb:if></div>
<!-- Wy Flags End -->

ozzy47 10-26-2014 03:26 PM

Did you upload the flags to the site?

lapo 10-26-2014 03:54 PM

Quote:

Originally Posted by ozzy47 (Post 2520111)
Did you upload the flags to the site?

yes in

forum/images/flags

ozzy47 10-26-2014 03:57 PM

And you also created the new profile field, and added it's ID number here, {vb:raw post.field6}

lapo 10-26-2014 05:00 PM

Quote:

Originally Posted by ozzy47 (Post 2520118)
And you also created the new profile field, and added it's ID number here, {vb:raw post.field6}



yes

https://vborg.vbsupport.ru/external/2014/10/2.png

http://www.directupload.net/file/d/3...knujxl_png.htm

John Lester 10-27-2014 05:33 AM

Having a </dt> in there (after Country: ) doesn't make sense. Remove that and see what happens.

MirKO13 10-27-2014 09:02 PM

Quote:

Originally Posted by lapo (Post 2520116)
yes in

forum/images/flags

Make sure to upload them as the instructions say:

Quote:

Instructions:

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

IE: yourforumaddress.com/forum/images/buttons/flags
If you have a custom style:

forum root/images/your style/buttons/flags folder.


Give that a try and hopefully works :)

Best of luck.

lapo 10-28-2014 06:47 PM

Quote:

Originally Posted by MirKO13 (Post 2520270)
Make sure to upload them as the instructions say:



If you have a custom style:

forum root/images/your style/buttons/flags folder.


Give that a try and hopefully works :)

Best of luck.

work tnx.

I have one question,

you can do that automatically for all users to track the IP

dknelson 11-19-2014 05:05 PM

1 Attachment(s)
My members love this mod. I had it on my 3.8 forum before upgrading to VBulletin 4. I am running VBulletin 4.2.3 and this works great. Most of me members are from the USA and Canada so I've also used this mod to add the State and Province flags. I just don't make it a mandatory field for those few who live in other countries. I haven't looked at the flags being used here but I'm using animated flags that I used with the 3.8 version of this mod.

I did not create new profile fields for adding the flags. I already had profile fields for state/province and for country so just used those field IDs. That way the flags were automatically added for the majority who already had those fields selected. You just have to make sure that the flags are named the same as your existing options for those fields.

KGodel 12-04-2014 06:40 PM

Does anyone know if there is a set of tiny non-animated icons that would work with this? I'd like to have a small country flag before the username, not as a field below the avatar.

nerbert 12-04-2014 08:42 PM

1 Attachment(s)
I was helping Boofo with some modification of this product years ago and have a file of 15 x21 gif images. I don't remember exactly what we did now. But anyway ....

ozzy47 12-04-2014 10:09 PM

Wow, there is a name I have not heard in awhile. :)

domainka 01-20-2015 06:26 AM

any vb 4.2.2 ? i installed the Mod and nothing was displayed

Kesha 01-20-2015 02:26 PM

Quote:

Originally Posted by domainka (Post 2533484)
any vb 4.2.2 ? i installed the Mod and nothing was displayed

You need to follow the instructions and modify your postbit template. I'm running this product on 4.2.3 Beta without any issues.

domainka 01-21-2015 03:00 AM

I have followed the installation insructions, and still no flag is being displayed. any suggestion please ?

here is the snapshot of the code

HTML Code:

<span class="usertitle">
                                                {vb:raw post.usertitle}
                                        </span>
<!-- 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 -->


boss22 01-21-2015 03:01 PM

PHP Code:

<img src="{vb:stylevar imgdir_button} 

should be

PHP Code:

<img src="{vb:stylevar imgdir_buttons} 

try now

regards

bosss

Guardian Hope 06-12-2015 12:12 PM

I don't know if anyone has already posted this but I had to make a few adjustments to the what's inserted into the template to get it working in vBulletin 4.2.2 PL4 using Postbit Legacy naturally.

I chose to place it under the built in "Location" field but you can really put it anywhere you want.

In postbit_legacy find:
HTML Code:

<vb:if condition="$post['field2']"><dt>{vb:rawphrase location_perm}</dt> <dd>{vb:raw post.field2}</dd></vb:if>
Add directly below:

HTML Code:

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

Replace fieldX with the field you used for the Countries.

The last thing to note is that this assumes the location of the flags is /forums/images/buttons/flags so adjust accordingly.

Just a friendly "FYI" for anyone trying to get this running on 4.2.2. Works like a charm too.

SYGRecon 07-21-2015 04:50 PM

Quote:

Originally Posted by Guardian Hope (Post 2547676)
I don't know if anyone has already posted this but I had to make a few adjustments to the what's inserted into the template to get it working in vBulletin 4.2.2 PL4 using Postbit Legacy naturally.

I chose to place it under the built in "Location" field but you can really put it anywhere you want.

In postbit_legacy find:
HTML Code:

<vb:if condition="$post['field2']"><dt>{vb:rawphrase location_perm}</dt> <dd>{vb:raw post.field2}</dd></vb:if>
Add directly below:

HTML Code:

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

Replace fieldX with the field you used for the Countries.

The last thing to note is that this assumes the location of the flags is /forums/images/buttons/flags so adjust accordingly.

Just a friendly "FYI" for anyone trying to get this running on 4.2.2. Works like a charm too.


I'm using 4.2.2PL4 and I got everything to work except I can't seem to get the pictures to show? It's just showing image error with the title of the file.. I put them into my public_html -> Images -> Buttons -> Flags

I extracted all the flag gif's into one folder, was I not supposed to do that? I don't know what I'm doing wrong.

friendlymela 07-22-2015 05:20 AM

hmm nice mod

Fizzgig 08-09-2015 11:38 AM

Works well

bremereric 10-04-2015 01:02 AM

1 Attachment(s)
Here we go...pictures are in the right location. The word of the flag lands in the correct position underneath the location. I posted screen shots of everything.

Attachment 153443

Attachment 153444

Attachment 153445

Attachment 153446

Attachment 153447

Attachment 153448

ArcadeSyndicate 10-04-2015 04:40 AM

hello, please check your uploaded images again.

i've taken a look at your website and for example

http://www.aspenandvolare.com/forums...gs/Germany.GIF

doesn't exist in that location too.

bremereric 10-04-2015 09:18 AM

Yes I took the /forum out of the code because they were not there.

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

John Lester 10-06-2015 02:57 AM

Looks like you fixed it :)

darksidemon2 10-16-2015 01:07 PM

Quote:

Originally Posted by wEbAddEr (Post 2511019)
works this way with vb4.2.3.beta1

Code:

<!-- Wy Country Flags Start -->
<div align="left">Country: </dt>
<vb:if condition="$post['fieldX']">
    <img src="http://www.YOURSITE.com/forum/images/flags/{vb:raw post.fieldX}.GIF" alt="Users Flag!" align="center" border="" /></vb:if></div>
<!-- Wy Flags End -->


thanks
works this way with Version 4.2.3

ArcadeSyndicate 11-08-2015 04:51 PM

replace Users Flag! with {vb:raw post.fieldX} to show countryname when hovering ;)


All times are GMT. The time now is 02:11 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.02050 seconds
  • Memory Usage 1,852KB
  • 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
  • (5)bbcode_html_printable
  • (4)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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