vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Country flag hack? (https://vborg.vbsupport.ru/showthread.php?t=60538)

Kohhal 01-21-2004 07:38 AM

Country flag hack?
 
<a href="https://vborg.vbsupport.ru/showthread.php?s=&threadid=27485" target="_blank">vb2 hack</a>. Is anyone working on this for hack for vb3? Anyone interested in doing it? Anyone else interested in having it????

StarBuG 01-21-2004 08:27 AM

Yeah I would be interested too

Star

Kohhal 01-28-2004 12:34 PM

Found it, here!

dano 02-25-2004 05:42 PM

Quote:

Originally Posted by TheMasterG
Found it, here!

Darn, the link is broke and I cant find it anywhere? Anyone have any ideas?

ChuanSE 02-26-2004 02:03 AM

I need this one to :/
it used to be on vbt, but seems it was removed :(

Kohhal 02-26-2004 11:13 AM

1 Attachment(s)
Quote:

Originally Posted by ChuanSE
I need this one to :/
it used to be on vbt, but seems it was removed :(

Yeh, there was a sh*tload of threads removed from vbt, don't know why. I asked the Mods but they don't seem bothered about it :(

I saved the zip for this hack anyhoo, it's attached, hope it helps!

G :)

dano 02-26-2004 04:17 PM

Quote:

Originally Posted by TheMasterG
Yeh, there was a sh*tload of threads removed from vbt, don't know why. I asked the Mods but they don't seem bothered about it :(

I saved the zip for this hack anyhoo, it's attached, hope it helps!

G :)

NICE.

Thanks a lot.

ChuanSE 02-27-2004 01:38 AM

GREAT, I love you for this ;) hehehe

ChuanSE 02-27-2004 07:29 AM

1 Attachment(s)
Btw, if someone is interested in flags with all the same size (30x15)....
The ones in the mod have different sizes.

Roody 03-07-2004 03:41 PM

Does anyone know which template we are supposed to be editing this in in vB3? The directions say "postbit_userinfo", but there is no template called that.

spence2 03-07-2004 04:52 PM

Quote:

Originally Posted by Roody
Does anyone know which template we are supposed to be editing this in in vB3? The directions say "postbit_userinfo", but there is no template called that.

I think it is postbit_legacy.

Let us know, please.

Roody 03-07-2004 05:08 PM

Quote:

Originally Posted by spence2
I think it is postbit_legacy.

Let us know, please.

A search for the line mentioned in the hack said "Not Found" so Im guessing that wasn't it. Any other ideas?

Kohhal 03-08-2004 07:55 AM

postbit or postbit_legacy, depends which style postbit you are using, put it where you want...

Roody 03-08-2004 10:07 PM

Perhaps the line to edit has changed. I cant seem to find this code. Can someone help me with this? I have searched in all the mentioned templates above and nothing. :(

xg3 03-09-2004 12:24 AM

is there a hack to allow you to add more than 30 countries?

Kohhal 03-09-2004 10:07 AM

Quote:

Originally Posted by xg3
is there a hack to allow you to add more than 30 countries?

If you're using RCx then you can use as many countries as you like, that restriction was removed a while ago :D

Roody 03-10-2004 12:39 AM

Quote:

Originally Posted by TheMasterG
If you're using RCx then you can use as many countries as you like, that restriction was removed a while ago :D

Any ideas on my last question?

Roody 03-10-2004 09:01 PM

Quote:

Originally Posted by Roody
Perhaps the line to edit has changed. I cant seem to find this code. Can someone help me with this? I have searched in all the mentioned templates above and nothing. :(

bumping this up

ChuanSE 03-11-2004 04:52 AM

Roody,

if you want the flags to appear in the new postbit style, you add the code to "postbit" & if ya want them in the old style, you will have to add the code to "postbit_legacy".

Works for me ;)

But what was the line you didn't found?

ChuanSE 03-11-2004 05:04 AM

btw, i add a little tweak to the img link so that if you hoover over the flag, it doesn't say country but it says the countryname.

this is the normal line:

Code:

<if condition="$post[field18]"><img src="images/flags/$post[field18].gif" border="0" /></if>
this is what i changed it to:

Code:

<if condition="$post[field18]"><img src="images/flags/$post[field18].gif" border="0" alt="$post[field18]" /></if>
So this way it pops up the countryname when hoovering over the flag :)
just a simple alt tag...

Roody 03-14-2004 04:55 PM

Quote:

Originally Posted by ChuanSE
Roody,

if you want the flags to appear in the new postbit style, you add the code to "postbit" & if ya want them in the old style, you will have to add the code to "postbit_legacy".

Works for me ;)

But what was the line you didn't found?

When I get back to my house I will check it out again and let you know if I have any issues.

:)

Diva 03-23-2004 04:33 PM

Yay! The flag hack is here! I am using vb3Gold. Are there any changes for this?

Also, if I want to replace the "Location:" with the flag, what do I need to do?

PS: I tried it and dont see where to enter the different flags in the profile.

ChuanSE 03-24-2004 05:14 AM

Quote:

Originally Posted by Diva
Yay! The flag hack is here! I am using vb3Gold. Are there any changes for this?

Also, if I want to replace the "Location:" with the flag, what do I need to do?

PS: I tried it and dont see where to enter the different flags in the profile.

That would be rather easy to do :)

replace this

PHP Code:

<if condition="$post[field2]">Location$post[field2]</if> 

with this

PHP Code:

<if condition="$post[field18]"><img src="images/flags/$post[field18].gif" border="0" alt="$post[field18]/></if> 

the field2 stands for the field location ppl fill in with registration, field 18 stands for the flag field i created for my board, so you'll have to check the fieldnumber in your admincp (registration options)...

Cheers

https://vborg.vbsupport.ru/external/2004/04/1.php

Diva 03-24-2004 12:14 PM

1 Attachment(s)
Hi ChuanSE! Will that show the flag then the location? EX:

[USA flag] California

Right now I cant seem to get the flag to show. In VB3G, Where is the options field ?

ChuanSE 03-25-2004 06:14 AM

I think you didn't really followed the install instructions...
Delete the user profile field and start over ;)

this is what it should look like in admincp:

http://puredj.net/forums/transfer/countryflag.jpg

Lemme know if it works out :)

Kohhal 03-25-2004 09:37 AM

Quote:

Originally Posted by Diva
...Where is the options field ?

You chose the wrong type of field, make sure you set it up as "Single-Selection Menu".

Diva 03-25-2004 04:51 PM

Oops! Thank you, TheMasterG. I selected the single text instead. It works now.

PS: Thanks to ChuanSE, too. :p ;)

ChuanSE 03-26-2004 06:30 AM

Hehe :p

Alien 03-26-2004 07:11 AM

Works great, thanks a bunch!

8472 03-26-2004 01:29 PM

1 Attachment(s)
attached the flags of all 50 US states and some 5 misc flags

great hack .. thanks a lot

my community loves it

8472 03-28-2004 10:56 AM

1 Attachment(s)
some canadian flags this time

ChuanSE 03-29-2004 05:28 AM

i thought it was about COUNTRY flags :p

ajk 04-26-2004 07:33 AM

Quote:

Originally Posted by ChuanSE
btw, i add a little tweak to the img link so that if you hoover over the flag, it doesn't say country but it says the countryname.

this is the normal line:

Code:

<if condition="$post[field18]"><img src="images/flags/$post[field18].gif" border="0" /></if>
this is what i changed it to:

Code:

<if condition="$post[field18]"><img src="images/flags/$post[field18].gif" border="0" alt="$post[field18]" /></if>
So this way it pops up the countryname when hoovering over the flag :)
just a simple alt tag...

This tweak works nice!

ajk 05-01-2004 05:15 AM

Quote:

Originally Posted by spence2
I think it is postbit_legacy.

Let us know, please.

YES, but two should be edited depending on wether you use the side or top style info.

They should be postbit and postbit_legacy.

Also, vB 3.01 FIXES the 32 line drop down limit.

leitel 05-01-2004 08:21 PM

Just curious. It seems that whatever I do, the user is prompted with the first item in the list of countries. What I want to accomplish is for the user to see a blank country resulting in an error if they do not select one from the list.

I have also tried insert a blank line at the beginning as well.

Thanks! :)

ajk 05-01-2004 09:03 PM

Quote:

Originally Posted by leitel
Just curious. It seems that whatever I do, the user is prompted with the first item in the list of countries. What I want to accomplish is for the user to see a blank country resulting in an error if they do not select one from the list.

I have also tried insert a blank line at the beginning as well.

Thanks! :)


I don't know if my setup on 3.01 wil help you.
I used "Yes, but leave a blank space."

leitel 05-01-2004 09:42 PM

I am using 3.01 and I tried both options. Both presents the first item in the list even if I include a blank line at the top. :S

leitel 05-05-2004 01:56 PM

Is anyone that is using this hack able to present the user with a BLANK entry while requiring the user to SELECT a NON-BLANK selection before continuing? :)

leitel 05-05-2004 01:59 PM

Additionally, for those of us using this hack, it would be helpful if when a user comes to the site AND has NOT yet made his selection of a country be PROMPTED to make his selection BEFORE continuing to use the site. I recall in a previous version of vB this being possible. I'll go fish a bit more on this as well.

stryka 06-04-2004 03:42 PM

ooohhh... yah.... cuz after the vb3 upgrade... everyone will lose the vb2 hack with their flag so they should be prompted to update their info...

any update on this?


All times are GMT. The time now is 01:41 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.01276 seconds
  • Memory Usage 1,826KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_php_printable
  • (14)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