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)

tnguy3n 10-04-2005 10:00 PM

CountryFlag
 
Site: http://www.vbviet.org
CountryFlag Mod for vb 3.5

This hack shows user's country flag in postbit, below the user name.

Original by SmartGnome, AJR, Pingu and Stasik for vb 2.2.x.


1. Go to AdminCP => Profile Fields => Add new Profile field => Single Select Menu

Title > Home Country

Description > Tell people where you're from.

Options:
[copy and paste list of countries in flags_list.txt to this option field]

Set Default: Yes, Include a First Blank Option

Editable By User: Yes

Display Page: Edit Profile

Write down your field# . i.e field6

2. Open postbit(_legacy) template,

FIND:
HTML Code:

                                <div>
                                        $vbphrase[posts]: $post[posts]
                                </div>

BELOW, ADD:
HTML Code:

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

<!-- Don't forget to change X to the field id. -->


3. Upload /flags to images/flags to your forum dir.



<!--- That's it! --->

---------------------------------------
To show countryflag in profile:


Open memberinfo template,

FIND:
HTML Code:

                                <if condition="$userinfo['usertitle']"><div class="smallfont">$userinfo[usertitle]</div></if>
BELOW, ADD:
HTML Code:

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

-------------------------------
To Show User's Countryflag in Memberlist, see this following post:
https://vborg.vbsupport.ru/showpost....9&postcount=14

Boofo 10-05-2005 09:40 PM

Where's the file?

tnguy3n 10-05-2005 09:42 PM

updating... it's been so long since I last release a hack, so I forgot all the procedures. :p

Boofo 10-05-2005 09:44 PM

Well, I for one am glad to see you releasing stuff again. ;)

Is there a way to make this work in the memberlist, too? ;)

tnguy3n 10-05-2005 09:47 PM

well, I can look into that option for you; however, I think that can't be done by template modding. Gotta code-hack or writing a plug-in for that.

Boofo 10-05-2005 09:48 PM

I'm almost sure a plug-in could handle it. ;)

I like your gender images, by the way. ;)

tnguy3n 10-05-2005 09:54 PM

Thanks.
Hey boofee-man, you're from IA, corn state? :p

Boofo 10-05-2005 09:55 PM

Quote:

Originally Posted by tnguy3n
Thanks.
Hey boofee-man, you're from IA, corn state? :p

Des Moines, to be exact. ;)

tnguy3n 10-05-2005 10:05 PM

Quote:

Originally Posted by Boofo
Des Moines, to be exact. ;)

and you're saying that Des Moines doesn't grow corn? :D lol j/k.

Boofo 10-05-2005 10:07 PM

Not in the apartment I live it, we don't. I think you have to go outside of Des Moines a few miles for that. ;)

Check your PMs. ;)


All times are GMT. The time now is 02:52 PM.

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.01369 seconds
  • Memory Usage 1,740KB
  • 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_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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