![]() |
WAAAHHHOOO! I've been wanting this forever!! works great!!
|
works great, thanks :)
|
Is this hack working for 3.0.3?
|
Quote:
yep :) |
Thanks mate
|
I think this thread should be renames as Country Flag Hack and placed in an appropriate section in this forum... :confused: took me a while to locate this hack...
Regards |
Quote:
appropriate section == http://www.vbulletintemplates.com This is a vB "Hack" board, you are referring to a template altering issue ;) |
This was a real mission for me with VB 3.03 using the instructions included but I finally got it working. Here are some quick instructions:
1. Download the hack 2. Upload the flags, we will use www.yourforum.com/flags/ as an example 3. Note: You do not have to create any new user profiles as there is already a profile for country. The user profile ID for country should be 6 by default. 4. Edit the postbit template, find Code:
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if> Code:
<if condition="$post[field8]"><div>$vbphrase[location_perm]: <img src="http://www.yourforum.com/flags/$post[field6].gif" border="0" alt="[field6]" /><br /></if> Code:
="$post[field8]"> Code:
<if condition="$post[field8]"><div>$vbphrase[country_12345]: <img src="http://www.yourforum.com/flags/$post[field6].gif" border="0" alt="[field6]" /><br /></if> Code:
<if condition="$post[field8]"><div>Country: <img src="http://www.yourforum.com/flags/$post[field6].gif" border="0" alt="[field6]" /><br /></if> |
1 Attachment(s)
Scratch step number 3. Some people may not have the country list already there. If not, insert all the countries from the flag_list as VB3 allows to add them all. See attachment
|
What does this hack do? I saw a site that had country flags scrolling for online users... that is what I would love.
Is there a clear set up on how to do this hack? I really dont want to mess with my site more than it is... or a screen shot or something! LOL. |
Ok I see now what it does. How can I put this flag in areas such as private messages???
|
I think the flag hack for vb2.x best than this, coz in vb2 it was modification in database, an altering php files, so u can more control the flags and translate them to any langauge instead of the names of flags files.
|
1 Attachment(s)
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~~~ Updated .zip and .txt file to include Quebec Province. :p ~~~2nd Edit~~~ Added European%20Union.gif to .zip |
cool
|
Quote:
This may be a dumb question, but do these extra template conditionals cause much extra server load? |
Not a dumb question at all. It will (to be honest) but so low you will NEVER know. In other words dont worry about it.
|
1 Attachment(s)
Thanks T3. If you also want to see a working copy of it, just go to any thread on my site http://www.battleforums.com/index.php?. Pretty much every normal poster there is using it now.
I updated the .zip with the EU flag, but I'll attach it in here for ya Limey for convenience purposes.;) You want to put this in your /images/misc/flags/ folder. |
thankyou worked a treat
|
1 Attachment(s)
Thanks guys for the hack instructions. :) I'm pretty sure you'll like my smilies below. Only 2 screenshots are available. Enjoy!
|
I am hoping that one of you wonderful coders will develop a hack that would display the country flag .gif in the user's profield instead of the flag text name.
|
Profield? Do you mean in thread or profile view?
|
Quote:
Yes. Sorry about that, I was rushing to post while at work. |
I thought it shows the country image already in thread view. O.o
|
it does here :-)
|
Quote:
Thanx |
Quote:
|
Ok, let me start over.
You're right I wasn't clear in my post but I thought it bacame clear after you ponited that out and I apologized for the error and stated yes. I guess I miss read your response. I thought it origianally only asked if I was referring to profile view and I responded yes. But now it looks like you asked if I was referring to thread or profile view. So my answer to that is Profile View. Your opinion is well recieved but I would like it better if there was a flag image displayed instead of the name. But because I can't code it myself, I am here trying to get some help from somebody. So if this is not something you think is worthy of your time or liking than hopefully someone else can help me with this task because that what I want. So if anyone could provide the code to make the minor change where the flag image would show in the profile view instead of the flag name, I would appreciate it a lot. If you can help please post the revision here. Thank you in advance. |
Sorry mamo, I ain't a coder so I don't think I can help you out. :( I am already looking for help y'know.
Anyways, I have a few suggestions and ideas for this hack is there anyone who is willing to submit this hack to the database and support it? This hack is lonely and is looking for a perfect author who can really care about it. :D |
Well?
|
I had a similar mod, where I took the "awareness ribbons" version and changed it to flags that people could buy in Ushop. It's a big hit on my site and I have tons of flags:
http://www.simtechonline.com/atg1.gif I also added in a bunch of special interest flags (armed sevice flags, special interest groups, etc.). If anyone wants it (but I don't know if it'll work with 3.5) please let me know. Examples: (threads on my forum that shows the flags) http://www.simtechonline.com/forums/...ighlight=flags http://www.simtechonline.com/forums/...ighlight=flags |
im having problems installing this mod on ver 3.07
is there any differences in the install to what is posted in this thread? i think ive done everything right but it just doesnt display any flags :disappointed: Andy. |
andy, I will be creating my own country flag hack pretty soon. I am not sure when it'll be released but the only thing I can say is... soon. ;)
|
Sounds good Snake, im sure whatever im missing is probably something very simple, too simple to notice!
I await your hack eagerly! :) cheers Andy. |
All times are GMT. The time now is 01:17 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|