vBulletin Country Flags Modification

MobileHacks

New Member
Installation instructions to include in your site are included

Code:
=======================
Country Flags Version 2.0
vBulletin 3.7.x
--
Author (c)
Khaleel Mughal
K4Z Systems, Inc
Author Contact
http://www.k4z.org/contact/
2006/4/6 - Date of Update
=======================



=======================
LICENCE
Country Flags Version 2.0
vBulletin 3.7.x
--
LICENCE - Free to use and distribute, do not modify the documentation or the links,
please also leave the comment tags which show K4Z.ORG in the comments, as it took a long
time to rename all the country files, would appreciate that! http://www.k4z.org/contact/
=======================



=======================
Change Log
--
15:23 20/07/2008 - vBulletin Installation Documentation added
        - Several new flags added and renamed
        - Removed from phpBB the database include, I made this originally for phpBB
        - Added index.html
        - Removed the illegal state "Israel" from the list.
          750 emails on this. I ignore them. No point
        - Renamed all flag files to $country name.png hard code! And now to name.gif!!
=======================



=======================
About
--
The modification will show a drop down in the usercp
Thus, from the drop down the user selects his/her flag
The postbit include will display it each of the users threads
=======================

Image 1:
In action
Image 2:In Usercp

For the RAR version visit here.
 

DarkMaster

New Member
how to remove this product fully? i remove it from the product list but the options stay in registration,edit profile bla bla... HELP!

PROBLEM SOLVED!
 

leonpadi

New Member
Working and found why it's not working on some people :)

Somewhere in help it say you have to add a code in 2 templates...

The code is this...

Code:
<!-- K4Z.ORG Country Flags Start -->
<if condition="$post['field5']">
	Country: <img src="$stylevar[imgdir_button]/flags/$post[field5].gif" alt="Users Flag!" border="" />
</if>
<!--// K4Z.ORG Country Flags End -->

This is why in some people the flags are not anywhere...
beware of those 2 lines...
<if condition="$post['field5']">
Country: <img src="$stylevar[imgdir_button]/flags/$post[field5].gif" alt="Users Flag!" border="" />

In my situation...

http://img144.imageshack.us/img144/7223/fieldsaw1.jpg

and in your case , as mine , that was wrong... my real field is field10, as you will see in my screenshot, yours should be a different number i suppose...

In other words...
Just replace the field5 with your correct field's id...
 

kamrandahir

New Member
here is another

(Country Flag)

update

RapidShare: Easy Filehosting

v6uj5e27ou68r1m7eb.png
3oqzc5x6s5aa16t2wsyj.png
4ctm84gte1zax02jium6.png
vfrejht57olg38jg2.png

83vjtb2vl95qnl5jczh.png
 

Scanlite

New Member
NICE!!!!!
Thanks for taking the time to share this with us mate!


will see if i can get this one to function with 3.7.2! No luck with 2 previous ones!

Thanks again mate!
 

indiansword

New Member
there isnt anything wrong... the only mistake u guyz are doing is:-

dont upload to image/button

upload it to yourTheme/images/button

a question i have here is how to add it to legacy ?
 

bfldworker

New Member
Well I was going to download this until you put this in.
- Removed the illegal state "Israel" from the list.

No I am not Israeli, but they are a sovereign, legal and recognized country on this planet. Not to mention Biblical.
 

deekz27

New Member
Code:
Removed the illegal state "Israel" from the list

Well isn't this friggin magical !
We now edit hacks pertaining to one's myopic, narrow minded prejudicial ignorance and irrational suspicion or hatred of a particular group, race, or religion.

This thread and hack should be sh*t canned to the trash bucket just like the zero heroes who edited it in the first place.
 

Tjaverken

New Member
the install.txt mentiones

Code:
THIS IS FOR POSTBIT NOT LEGACY(below)
-=-=-=-
AdminCP > > Styles & Templates > Style Manager > Edit Templates > Postbit Templates > postbit
--
FIND
#########################
<div>$vbphrase[posts]: $post[posts]</div>
#########################
ADD BELOW
#########################
<!-- K4Z.ORG Country Flags Start -->
<if condition="$post['field5']">
	Country: <img src="$stylevar[imgdir_button]/flags/$post[field5].gif" alt="Users Flag!" border="" />
</if>
<!--// K4Z.ORG Country Flags End -->


but it can't seem to find

Code:
<div>$vbphrase[posts]: $post[posts]</div>

not in the postbit nor in the postbit legacy

can someone tell me what to do

Greetz Tj
 
Top