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)

bremereric 12-11-2011 03:40 PM

Quote:

Originally Posted by bremereric (Post 2276769)
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

I fixed it by changing the code to this in the black and black/red styles.

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

datoneer 12-12-2011 12:28 PM

Quote:

Originally Posted by Welshy2008 (Post 2276461)
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.

Now it's working. Thank you Welshy

diades 12-17-2011 06:24 PM

Just installed this on version 4.1.9, working fine so far!

Thanks for the work.

POL_ED 12-23-2011 12:19 AM

With each style is ok
Code:

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


iSins 12-29-2011 01:11 PM

How would i enable this to work on Member Profile? "member.php"

Bluefin221 01-02-2012 02:19 PM

There is no Northern Ireland? Is it possible this could be added?

Fready 01-04-2012 08:01 AM

why does the Wales flag as UK on it?
It's not really the UK flag is it.

vb50kgpoo 01-04-2012 03:08 PM

Wales and Northern Ireland? I would like NATO and one other we can not mention!

Anyway, I just wanted to say this mod is better than presented as it also acts as a Spammer warning system. I have Spam-o-matic but some spammers get through. However, all those show the flag "Aaland" which is the first flag available I guess; they use bots that are not programed for selecting which country flag they want. So, whenever I see a new member with the Aaland flag, I do a Google on their IP address and lo and behold they always come back with spammer warnings.

So the product is great, made greater by the fact it highlights the spammers that get past Spam-om-matic.

:up::up::up:


Nid yw Cymru, rhan o'r UK yw hi?

CharlieDelta 01-04-2012 06:13 PM

Quote:

Originally Posted by Antique-Swords (Post 2283780)
I have Spam-o-matic but some spammers get through. However, all those show the flag "Aaland" which is the first flag available I guess; they use bots that are not programed for selecting which country flag they want. So, whenever I see a new member with the Aaland flag, I do a Google on their IP address and lo and behold they always come back with spammer warnings.

Funny. I use it as a tip off this as well. :D

BrightStar 02-17-2012 08:57 PM

Could someone help me with the code please? My flags directory is located in /forums/images/buttons/flags/image.GIF and everytime I've to upload the directory into the style directory as that's where the script tries to look for.

Is it possible to define a custom location of the directory rather than looking into the style's directory?

Cheers

marcellhernande 02-19-2012 08:53 PM

It works perfectly and will be very useful to my forum! Thank you very much!

BlueCheri 02-20-2012 01:28 AM

Installed, thanx.

Works very gine

G!

Mustiii 02-27-2012 08:03 PM

Is there any possibility to get some custom flags? I have some special flags which are not available here. The Style looks very good so i would be happy if somebody could help me.

Nirjonadda 02-28-2012 06:10 PM

working fine on 4.1.10

Krusty1231 03-10-2012 09:42 PM

Quote:

Originally Posted by BrightStar (Post 2300634)
Could someone help me with the code please? My flags directory is located in /forums/images/buttons/flags/image.GIF and everytime I've to upload the directory into the style directory as that's where the script tries to look for.

Is it possible to define a custom location of the directory rather than looking into the style's directory?

Cheers

This is what I did.

Code:

<div align="center">
<vb:if condition="$post['field5']">
    <img src="/flags/{vb:raw post.field5}.GIF" alt="Users Flag!" border="" />
</vb:if></div>

That way I am not uploading the flags to each style. One flag folder to rule them all!

The path can be suited anyway you like. In my example my flag folder is uploaded outside my forum content - example - http://www.youraddress.com/flags/Canada.Gif

Hope it helps!

andie215 03-11-2012 11:15 PM

Quote:

Originally Posted by Krusty1231 (Post 2308412)
This is what I did.

Code:

<div align="center">
<vb:if condition="$post['field5']">
    <img src="/flags/{vb:raw post.field5}.GIF" alt="Users Flag!" border="" />
</vb:if></div>

That way I am not uploading the flags to each style. One flag folder to rule them all!

The path can be suited anyway you like. In my example my flag folder is uploaded outside my forum content - example - http://www.youraddress.com/flags/Canada.Gif

Hope it helps!

All works fine in 4.1.11 and using Krustys code above.

gazza2008 03-17-2012 12:16 PM

Am getting a problem I can not get them to display

Welshy if ya around PM me i'll setup a temp admin account

cheers

gaz

Welshy2008 03-19-2012 05:59 PM

Gazza PM ME the dtails and a link buddy, and I will do it for you, mate.

datoneer 03-22-2012 08:51 PM

I must say that welshy is a genius! He helped me every time i contact him! Very very nice, and thank you once again

sweetpotato 03-27-2012 02:45 AM

Please add the flag for South Sudan

GeorgeEcuador 03-29-2012 02:32 PM

help me... I get rather field6 field5 and I are the flags. And follow as it was here.

sorry for me bad english..

hhumas 04-02-2012 07:58 AM

i want it for vb 4.1.5 ...........

booble 04-27-2012 12:32 AM

work on 4.1.12???????

ukhostz 04-27-2012 09:55 AM

I can confirm it works fine on VB 4.1.12 Patch 1

No problems at all.

booble 04-27-2012 03:19 PM

ok, but I have:

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

And not work.

"Country: Spain" :_____(

spillage 05-29-2012 09:20 PM

Quote:

Originally Posted by Welshy2008 (Post 2065146)
I have added the switzerland flag previously. It is in a post somewhere.

Anyway, I have added it again, it is showing in the "Screenshot" section. Just right click and "Save picture as..."

For anyone that still has issue with the missing Switzerland flag, it is included in the zip file, but it's named Suisse instead of Switzerland... rename it and you should be fine.

Welshy2008 05-30-2012 08:26 AM

Quote:

Originally Posted by sweetpotato (Post 2313702)
Please add the flag for South Sudan

I'm sorry, I only have the Sudan flag.

Quote:

Originally Posted by booble (Post 2324046)
ok, but I have:

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


And not work.

"Country: Spain" :_____(


If you, or any other member would like me to take a look and get it working on your forum, please PM Administrator Username & Password for your forum. Please also ensure that full Admin perssion are set up on the temporary account for me. This offer only applies to those whose have marked the mod as "Installed".

Quote:

Originally Posted by spillage (Post 2334462)
For anyone that still has issue with the missing Switzerland flag, it is included in the zip file, but it's named Suisse instead of Switzerland... rename it and you should be fine.

Thank you for mentioning that. I have now worded the Switzerland flag correctly and re-uploaded the whold folder again. (The Switzerland flag was also added as an attachment in my OP, some time ago). :)

NickTGA 05-30-2012 03:57 PM

Any update for 4.1.12?

Welshy2008 05-31-2012 10:09 AM

Quote:

Originally Posted by NickTGA (Post 2334739)
Any update for 4.1.12?

It works on vB4.1.2. I am using it myself. (and has been confirmed by others).

Manoel J?nior 06-28-2012 01:16 AM

How to fix:

https://vborg.vbsupport.ru/

I try:

additional.css:

Code:

.etiket_postbit_alanI_userinfo_extra_yazIlarI {
    color:{vb:stylevar post_field_font_color};
    margin-top: 2px;
    text-align:left;
        border-bottom: 1px solid #DBDBDB;}

And, postbit_legacy:

Code:

<vb:if condition="$post['joindate']">
        <div class="etiket_postbit_alanI_userinfo_extra_yazIlarI">
                    {vb:rawphrase join_date}
                  <dd>{vb:raw post.joindate}</dd>
          </div>
              </vb:if>

I don't work. Please

yjeanrenaud 06-28-2012 08:00 AM

you meen the missplaced country flag?
try this:

Code:

<!-- Wy Country Flags Start -->
<vb:if condition="$post['fieldX']">
        <div class="etiket_postbit_alanI_userinfo_extra_yazIlarI">
                    Country:
                  <dd><img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.fieldX}.GIF" align="middle" alt="{vb:raw post.fieldX}" border="" /></dd>
          </div>
</vb:if>
<!-- Wy Flags End -->


Manoel J?nior 06-29-2012 03:46 AM

Quote:

Originally Posted by yjeanrenaud (Post 2343520)
you meen the missplaced country flag?
try this:

Code:

<!-- Wy Country Flags Start -->
<vb:if condition="$post['fieldX']">
        <div class="etiket_postbit_alanI_userinfo_extra_yazIlarI">
                    Country:
                  <dd><img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.fieldX}.GIF" align="middle" alt="{vb:raw post.fieldX}" border="" /></dd>
          </div>
</vb:if>
<!-- Wy Flags End -->


the same thing. Any other solution?

yjeanrenaud 06-29-2012 04:30 AM

to be honest, I'm afraid I'd need to see the website in order to identify any flaws within the html code

ejup2009 07-09-2012 12:42 AM

Update for the version of vbulletin 4.2 please.

kylek 07-09-2012 02:11 AM

Doesn't need an update, it works on 4.2.1

New Joe 07-09-2012 02:36 AM

I have one flag that shows as a broken image, others work fine, just this one.

Avros 07-16-2012 11:21 AM

Installed in both 4.0.7 and 4.1.2 without problem. Worked beautifully. Thank you!

megabink 07-26-2012 09:32 PM

Installed on 4.2.0pl2 and working,thanks Welshy2008 and Krusty1231.:up:

ikorolis 08-09-2012 07:35 PM

thanks installed VB 4.2.x all ok

<removed>

vb50kgpoo 08-09-2012 07:55 PM

Oh well, better luck next life. :D


All times are GMT. The time now is 03:55 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.01928 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
  • (7)bbcode_code_printable
  • (11)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