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)

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.


All times are GMT. The time now is 11:52 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.02451 seconds
  • Memory Usage 1,744KB
  • 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
  • (3)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
  • (10)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