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.

gonon 08-04-2005 12:53 AM

ok guys i installed this hack works perfect in default skin but what about extra skins
i imported the postbit template to other skin but all i get is country: no image i know other skins use different image paths but where do i find it ?thanks btw thanks to the coder for great hack

o0Hubba0o 08-19-2005 12:38 AM

Quote:

Originally Posted by coRtALoS
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.

Having same problem: forums/images/flags <---all flag images in there, they're not showing up though.


According to the directions though (Upload /flags to /images/misc/flags of your forum dir) that says you need to upload the flags folder to another folder named flags so it would be forums/images/misc/flags/flags <---all images there, but that doesn't make sense to have two folders.

If it's supposed to be one folder the directions should read: Upload /flags to /images/misc/ of your forum dir

JoyB 08-27-2005 08:23 PM

Hi

Does anyone know if this hack is compatible with 3.5 RC2?

Joy :)

|Jordan| 08-28-2005 03:33 PM

3.0.X Hacks aren't compatible with 3.5 hacks.

They would have to be completely recoded. 3.5 introduced new code changes everywhere.

JoyB 08-28-2005 04:02 PM

Hi

Thank you for replying :)

I installed the hack just after posting on here and I didn't have any problems at all. Seems like it still works okay.

Joy :)

Metropolitan 08-28-2005 04:53 PM

You mean that this hack also works for 3.5.0 RC2?

JoyB 08-28-2005 05:04 PM

Yes the "Flag" hack works for me and I've just upgraded to 3.5 RC2 :)

Metropolitan 08-29-2005 12:36 AM

I tried it too, vut i have a lil problem. I´m Using the "STeel Blue" Style as Default Style, and when i´m installing the hack, i can only see a red cross in my postbit_legacy :s

andysv1k 09-04-2005 02:34 PM

Ive been trying for ages to get this hack working on 3.07

read all the threads i can find on it, but still no joy.

in the memberlist, the Country field is displayed, although it only shows text, no images.

when viewing forums, i get nothing displayed at all. Im asuming the flag image should be displayed on every post, in the middle of the header of the post, where all the other user info is ???

ive tried all sort of little changes to get it happening but nowt yet. I suspect its unable to locate the images, but they are uploaded as per the instructions, the filepath to the flag images would be forum/images/misc/flags/*****.gif

any help please???

Andy.

andysv1k 09-07-2005 07:38 PM

*bump*

Anyone??

Andy.

Ericsson 09-11-2005 08:43 AM

I installed it on 3.0.9 but the flags wont show up, how can I fix that?
Thanks
Heres an example: http://www.retrotutorials.com/forum/showthread.php?t=30

Funboy 03-13-2006 10:31 AM

Hi guys,

Sorry to sound thick here but where is postbit(_legacy) within Version 3.5.4 as I can only find class_postbit.php & class_postbit_alt.php templates.

Also when looking for

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>

all I can find is the updated version

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>

within vbulletin-style.xml which was my old install folder?

I know things have changed since this post first started so can this be installed on a fresh install of 3.5 or only as an upgrade to 3.5..

Many thanks


OPPS

Sorry Guys had two post open at the same time this should have been within this thread. SORRY.

https://vborg.vbsupport.ru/archive/i...p/t-97664.html

TheUGN.com 05-30-2006 11:14 PM

Will this work with 3.5.4?

noRom 10-04-2006 03:46 PM

Sry, nOOb here:

Where you say "change X to field id" what is the field ID?

noRom 10-04-2006 04:02 PM

nm figured it out. Good work

Mecho 10-14-2006 03:41 PM

hi ,, tnx for this great hack ..

I Installed it but the " Country : " for some users shows up for some not !!! and Flags for some shows up for some Not !! and most of theflags that shows up are USA' Flag !!

plz have alook at the attachment pic to see what i mean , Tnx

Zagis 10-21-2006 01:25 PM

Is it possible this cool mod to work on vB 3.6.2?

globalinsites 10-22-2006 05:12 PM

Quote:

Originally Posted by Zagis
Is it possible this cool mod to work on vB 3.6.2?

I was wondering about that too. Someone just told me that it normally works fine with 3.6.2 :https://vborg.vbsupport.ru/showthrea...40#post1102140

I haven't tried it yet though. Have you?

Mecho 10-23-2006 02:55 PM

yep .. it works normaly in vb3.6.2


Live Demo :
Code:

www.mechodownload.com


All times are GMT. The time now is 08:15 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.01295 seconds
  • Memory Usage 1,782KB
  • 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_code_printable
  • (2)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (29)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