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)

DRJ 01-30-2005 11:28 PM

Just add None to the field list. Then check for that in the template.

<if condition="$post[fieldx]&&$post[fieldx]<>None">

Do something

</if>

coRtALoS 04-08-2005 04:55 AM

I'd like to share a small modification I've made to this hack which I've found my members really enjoy.

This addon will allow members to display their US State, or Canadian Provincial flags ONLY if they have the United States or Canada selected as their Country.

In addition, if they pick a country that is part of the European Union, it will automatically display the EU flag next to it as well.

I've attached an installer and all necissary files to get it working with the Country hack.

It's a very small addon, and only took me about 5 mins (tops) to get to work once the Country Flag hack was installed.

If you require any technical assistance with this hack, as I am posting this thread on both vBulletin.org, and vBulletinTemplates.com, I will provide technical support for this addon only on my own forums located here:
http://www.battleforums.com/forumdisplay.php?f=288

I also welcome anyone PMing me on my forums as I check my PM box more often than my cellphone voicemail. Please do not PM me here however, as I am not nearly as active on this account.

Enjoy!

~coRtALoS
BattleForums.com, StarCraftForums.com, WarCraftForums.com, DiabloForums.com, and BattleNetwork.com Administrator

----EDIT----
Apparently this site is having difficulty hosting my attachments. You can download them either at vBulletin.org in my post here:
https://vborg.vbsupport.ru/showthrea...575#post637575
Or on my site, BattleForums.com here:
http://www.battleforums.com/showthread.php?p=1074648

SHANE-D-PAIN 05-05-2005 04:32 PM

Works Like A Dream *Clicks Install*

eNforce 06-06-2005 12:40 AM

I'm so lost here. How do I know what field I have to replace X with, wtf?

mholtum 06-06-2005 01:29 PM

when you create the field you will see what numer is asigned to it.

am-fs 06-23-2005 11:50 PM

I installed this on Vb 3.0.7, works it seems but i have a ?
i have removed a few members and they show as guest now, it there away to remove the red x from there country?

thank

KevinL 06-24-2005 08:43 PM

Quote:

Originally Posted by am-fs
I installed this on Vb 3.0.7, works it seems but i have a ?
i have removed a few members and they show as guest now, it there away to remove the red x from there country?

thank

You could probably go into your phpMyAdmin and edit each user in that field (8) to 'undisclosed'.

Im sure there is an easier way though...

Link14716 06-25-2005 04:08 AM

Quote:

Originally Posted by am-fs
I installed this on Vb 3.0.7, works it seems but i have a ?
i have removed a few members and they show as guest now, it there away to remove the red x from there country?

thank

Find this:
HTML Code:

<if condition="$post[fieldX] != Undisclosed">
Change it to this:
HTML Code:

<if condition="$post[fieldX] != Undisclosed AND !empty($post[fieldX])">
Changing fieldX to whatever field you are using.

Borimikan 07-09-2005 05:14 PM

i just installed this hack,
and it is only displaying country flag name instead country flag image,..
what should i do to fix this?

THANKS IN ADVANCED

coRtALoS 07-29-2005 09:10 PM

Have you uploaded the images to the correct directory? All of the <img> tags have alts, so it sounds like your code is right, but it's not finding the images.


All times are GMT. The time now is 05:20 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.01771 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
  • (2)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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