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 - Country Flag (https://vborg.vbsupport.ru/showthread.php?t=89247)

trackpads 09-03-2004 11:00 AM

Yup. just use this code-


HTML Code:

<div>Country: <img src="$stylevar[imgdir_misc]/flags/$post[fieldX].gif" alt="$post[fieldX]" align="center" /> </div>
An make sure you upload the Undisclosed.gif to the same folder as the other flags.

-Jason

mholtum 09-03-2004 04:22 PM

Thanks I will give it a shot.

venomx 09-05-2004 11:13 PM

What if we wanted to place this next to the username in the postbit(_legacy) or the regular postbit??

mholtum 09-06-2004 01:42 AM

You would move it to that part of the template.

tnguy3n 09-22-2004 12:07 AM

Quote:

Originally Posted by M1th
cinq, could put it anywhere you want.

as for running the UPDATE `userfield` SET `fieldX` = 'Undisclosed'; query. It's unnecessary, IMO. You could have an empty field in the first line and set it as default. Then using <if condition="$post[fieldX]"> flag code here </if> would give what you want.

well, it's optional to set all gender field in the table to Undisclosed, but if you don't run that query, it gonna show a big X on the image.

Mellow 09-27-2004 10:07 PM

Works great, I actually have some USA State flags and added Country and State profile fields.


Let me know if you need those flags.

RWDF1 10-14-2004 07:33 PM

will this work with VB 3.0.3?

Cheers.

trackpads 10-14-2004 07:54 PM

Yup

Shinobi 10-15-2004 10:41 PM

argh, what about the 3.0.3 users??

*sniff*

peterska2 10-16-2004 10:32 AM

It works with 3.0.3 (look up 2 posts before yours and you will notice the same question being asked) :D


All times are GMT. The time now is 09:53 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.01214 seconds
  • Memory Usage 1,730KB
  • 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
  • (1)bbcode_html_printable
  • (1)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
  • (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