vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Show Thread Enhancements - CountryFlag (https://vborg.vbsupport.ru/showthread.php?t=97664)

Oblivion Knight 10-16-2005 07:04 AM

Bizarre.. I'd check your settings for that custom profile field again, making sure that it's a Single-Selection Menu type and the options are configured as per the instructions.

rb290 10-16-2005 07:08 AM

that suckkss
this hack was good too.!

rb290 10-16-2005 07:52 AM

if anyone knows my problem can you help thanks.!

TNAImpact 10-16-2005 09:02 AM

Thankyou!!

rb290 10-16-2005 05:30 PM

alright I got it
anyone know how to align it better:
http://img288.imageshack.us/img288/6219/78690iz.jpg
i want "Reppin" centered abit down and the flag centered down too, their is kinda big gap between Reppin and Rep Power

Boofo 10-16-2005 05:48 PM

Use class="inlineimg" for the flag image. ;)

rb290 10-16-2005 06:42 PM

ok thankssssss i got it :)

Boofo 10-16-2005 06:45 PM

Add class="inlineimg" right after the src="whatever" in the image link. ;)

rb290 10-16-2005 06:47 PM

looks perfect now!

Boofo 10-16-2005 06:48 PM

Quote:

Originally Posted by rb290
looks perfect now!

You had doubts? ;)

rb290 10-16-2005 06:52 PM

hey do you know how to put borders around fields, for example, border around Location, Join Date, etc
then Border around Rep Points and Rep Power, make their own box so its separate

rb290 10-16-2005 06:53 PM

Quote:

Originally Posted by Boofo
You had doubts? ;)

hah not really i just thought the person who made the hack didnt wanna go into all the details and make it perfect

Boofo 10-16-2005 06:54 PM

Quote:

Originally Posted by rb290
hey do you know how to put borders around fields, for example, border around Location, Join Date, etc
then Border around Rep Points and Rep Power, make their own box so its separate

Have you tried using the legend tag? ;)

rb290 10-16-2005 07:08 PM

Quote:

Originally Posted by Boofo
Have you tried using the legend tag? ;)


where is the legend tag ?

Boofo 10-16-2005 07:27 PM

Quote:

Originally Posted by rb290
where is the legend tag ?

Do a search in templates for it. ;)

rb290 10-16-2005 09:27 PM

Quote:

Originally Posted by Boofo
Do a search in templates for it. ;)


how should it look like

rb290 10-16-2005 09:28 PM

the legend tag

jmc123 10-17-2005 12:23 PM

I can get the flags to show up in user profiles but how can i get the flags to show up in the forum threads? do i need to enable an option?

Don't worry, problem solved!

sellbuydomain 10-20-2005 07:50 PM

i did it ,but flat and country not show up, when you said write down field6 ? how do you write down ,where to change field 6 , please more detail , thanks

sellbuydomain 10-20-2005 07:54 PM

how do you put the icon in to the post

sellbuydomain 10-20-2005 07:57 PM

i am using chinese version , is that any thing i need to change in coding ?

tnguy3n 10-21-2005 05:30 PM

fieldid shows in User Profile Field Management. (see attachment)

change fieldX (in code bit below) to your fieldid (whichever for your countryflag).

Code:

                                <if condition="$post[fieldX] != ''"><div>
                                        Country: <img src="images/flags/$post[fieldX].gif" title="$post[fieldX]" align="center">
                                </div></if>


sellbuydomain 10-27-2005 08:29 PM

i try it, everything like you said, but the icon is not show up, no flag appear. why?

thalamus 10-28-2005 09:17 AM

This is a great mod :) I'm looking to use something like this to indicate languages spoken by users, so there may be more than one selection - can you suggest if there's a way to edit the process for this to allow for multi-flags to be displayed?

Thanks again, definitely will install this anyway but the extras would be cool :)

C_P 11-04-2005 02:05 AM

I had this working until I deleted the new profile filed. It was field6 and then I created a new profile field and re-odered them and now my field is field8 and no go!
Here is my postbit code for proof:
Code:

<if condition="$post[field8] != ''"><div>
                                        Country: <img src="images/flags/$post[field8].gif" title="$post[field8]" align="center">
                                </div></if>

I also have the flags in images directory. Here is proof:
http://www.cpfools.com/forum/images/flags/

As you see, neither my profile (after making other modification) or the posts show my US flag:
http://www.cpfools.com/forum/showthr...1883#post11883

Do you have any ideas why this will not work now?

tnguy3n 11-05-2005 03:25 AM

Quote:

Originally Posted by C_P
I had this working until I deleted the new profile filed. It was field6 and then I created a new profile field and re-odered them and now my field is field8 and no go!
Here is my postbit code for proof:
Code:

<if condition="$post[field8] != ''"><div>
                                        Country: <img src="images/flags/$post[field8].gif" title="$post[field8]" align="center">
                                </div></if>

I also have the flags in images directory. Here is proof:
http://www.cpfools.com/forum/images/flags/

As you see, neither my profile (after making other modification) or the posts show my US flag:
http://www.cpfools.com/forum/showthr...1883#post11883

Do you have any ideas why this will not work now?

how about make chanage in both postbit and postbit_legacy templates. :)

tnguy3n 11-05-2005 03:26 AM

Quote:

Originally Posted by thalamus
This is a great mod :) I'm looking to use something like this to indicate languages spoken by users, so there may be more than one selection - can you suggest if there's a way to edit the process for this to allow for multi-flags to be displayed?

Thanks again, definitely will install this anyway but the extras would be cool :)

I think there's a multiple selection menu option. You can try to use that instead of single selection as it was.

C_P 11-05-2005 03:32 PM

Quote:

Originally Posted by tnguy3n
how about make chanage in both postbit and postbit_legacy templates. :)

That was it! You have to add it to both. I think I would modify your directions to clearly state that for dumbies like me.
Nie work by the way. I clicked instal

lazyseller 11-08-2005 02:46 PM

For people who are having problems with their flags not showing try going to your profile and updating your country....

As far as modifying for postbit and postbit legacy you only need to modify for the one you are using....

mikehawk 11-09-2005 07:14 AM

/me clicks install. Works perfect.

lazyseller 11-09-2005 03:52 PM

Thanks for the mod tnguy3n .... creative

aacircle 11-13-2005 06:22 AM

Vietnam flag has the wrong image. Please update your flags folder with this image http://www.appliedlanguage.com/flags...of_vietnam.gif

JeffreySmith 11-27-2005 09:14 AM

This might be crazy to most of you, but when I try to extract the flags folder to my flags folder under forum/images/flags I get nothing in the folder when I try to open it up. Is there something I am missing. I dont wanna have to create a page for each flag and hyperlink them one by one. What am I doing wrong?

-Jeff

BiReL41r 11-27-2005 11:16 PM

I had this hack on my other forum, hesitating if I should add it again, users tend to abuse it at some points.

Martin64 12-10-2005 02:34 PM

Thanks, great job. Saved me some work from pondering out how to do this myself ;)

AWI 12-10-2005 04:19 PM

Thanks, installed on 3.5.2 with no problems!

Tefra 12-23-2005 10:00 AM

installed in 3.5.2 no problem .

noj75 12-26-2005 12:22 PM

Installed on 3.5.2

Very simple and very quick. Thankyou very much. :)

sellbuydomain 12-29-2005 04:43 PM

problem, i install everything like this ,the image flag is not showing,
<if condition="$post[field5] != ''"><div>
Country: <img src="images/flags/$post[fieldX].gif" title="$post[field5]" align="center">

i also try this way, not showing image flag

<if condition="$post[field5] != ''"><div>
Country: <img src="images/flags/$post[field5].gif" title="$post[field5]" align="center">

is this image/flags/ permission?

i try both on postit and postit_lengecy

not showing the image, any help please?

49er 12-31-2005 09:31 AM

Thank you, nice hack.
Can you tell me if it is possible to have the Flag show on the left hand side Under the Avatar? Just asking as it is not that important.

Thanks


All times are GMT. The time now is 07: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.01331 seconds
  • Memory Usage 1,807KB
  • 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
  • (9)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