![]() |
Just add None to the field list. Then check for that in the template.
<if condition="$post[fieldx]&&$post[fieldx]<>None"> Do something </if> |
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 |
Works Like A Dream *Clicks Install*
|
I'm so lost here. How do I know what field I have to replace X with, wtf?
|
when you create the field you will see what numer is asigned to it.
|
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 |
Quote:
Im sure there is an easier way though... |
Quote:
HTML Code:
<if condition="$post[fieldX] != Undisclosed"> HTML Code:
<if condition="$post[fieldX] != Undisclosed AND !empty($post[fieldX])"> |
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 |
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.
|
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 |
Quote:
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 |
Hi
Does anyone know if this hack is compatible with 3.5 RC2? Joy :) |
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. |
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 :) |
You mean that this hack also works for 3.5.0 RC2?
|
Yes the "Flag" hack works for me and I've just upgraded to 3.5 RC2 :)
|
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
|
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. |
*bump*
Anyone?? Andy. |
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 |
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 |
Will this work with 3.5.4?
|
Sry, nOOb here:
Where you say "change X to field id" what is the field ID? |
nm figured it out. Good work
|
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 |
Is it possible this cool mod to work on vB 3.6.2?
|
Quote:
I haven't tried it yet though. Have you? |
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|