[ABD] Country Flags 1.0.0

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
User avatar
nedka
Registered User
Posts: 162
Joined: Tue Jun 28, 2005 8:55 am
Location: Ho Chi Minh City
Name: Khoa Nguyen

[ABD] Country Flags 1.0.0

Post by nedka » Fri Jun 15, 2007 8:11 am

MOD Title: Country Flags
MOD Description:
Are you a true patriot? This MOD allows your registered users to select the flag of their country. Their country flags will then display thoughout the phpBB system. You can select a default country flag for usergroups. You also can manage these flags (edit/delete/add), change some settings, set country flag for users/groups... in ACP.
MOD Version: 1.0.0
phpBB Version: 3.0.RC7+
Release Date: 2007/11/28

Features:
  • Country Flag for user
  • Country Flag for group
  • Manage/Edit/Delete/Add country flags in ACP
  • Set country flag of users/groups in ACP
  • Set country flag of groups in UCP (Usergroup Manage)
  • Auto Installation File with 245 countries (country name + country code + country flag) in its database
  • With some Add-ons...
  • Available languages: English (default) | Vietnamese (by me :D ) | French (by cacahuete) | Dutch (by Sander) | Spanish (NetoBochas) | German (Michael Zacher) | Finnish (niejon)
Screenshots:
Image
Image
Image
Image

MOD Download: http://vinabb.com/bb/item.php?type=mods ... s&item=473 (With more screenshots than)
Last edited by nedka on Wed Mar 26, 2008 5:38 am, edited 6 times in total.
VinaBB - Republic of phpBB

TRICHES.FR
Registered User
Posts: 75
Joined: Sat Jun 09, 2007 5:23 pm

Re: [BETA] Country Flags 0.7.0

Post by TRICHES.FR » Fri Jun 15, 2007 8:45 am

hey that a great idea ! its also quite discret which is perfect ... keep up the good work !

User avatar
nickvergessen
Former Team Member
Posts: 4397
Joined: Mon Apr 30, 2007 5:33 pm
Location: Stuttgart, Germany
Name: Joas Schilling
Contact:

Re: [BETA] Country Flags 0.7.0

Post by nickvergessen » Fri Jun 15, 2007 9:47 am

nedka wrote:
  • Available languages: English (default) | Vietnamese (by me :D ) | French (by cacahuete) | Dutch (by Sander)
i could do german if you'd like to
No Support via PM

User avatar
nedka
Registered User
Posts: 162
Joined: Tue Jun 28, 2005 8:55 am
Location: Ho Chi Minh City
Name: Khoa Nguyen

Re: [BETA] Country Flags 0.7.0

Post by nedka » Fri Jun 15, 2007 9:57 am

You always are welcome! :o
You need only translate language/xxx/mods/flags.php or all language vars which are added by this MOD in:
language/xxx/common.php
language/xxx/acp/common.php
language/xxx/acp/board.php
language/xxx/acp/permissions_phpbb.php

Thanks for your translation! :D
VinaBB - Republic of phpBB

Oscar TWH
Registered User
Posts: 37
Joined: Mon Jun 18, 2007 7:37 am
Location: Belgium

Re: [BETA] Country Flags 0.7.0

Post by Oscar TWH » Mon Jun 18, 2007 7:40 am

Just a newby question... :? How to install this MOD?
thx,
Oscar

User avatar
nedka
Registered User
Posts: 162
Joined: Tue Jun 28, 2005 8:55 am
Location: Ho Chi Minh City
Name: Khoa Nguyen

Re: [BETA] Country Flags 0.7.0

Post by nedka » Mon Jun 18, 2007 7:58 am

You can view a tutorial about this at here: How to install a MOD

1. Upload new files from this MOD to your host
2. Run install/cf_install.php file from your browser. Then, detele "install" folder now!
3. Edit code: Open the install file of this MOD (install.xml) and see what is written...
4. Install modules of this MOD from ACP -> SYSTEM -> Module management -> Administration control panel. This MOD have all 3 modules: 2 active(acp_board, acp_flags) and 1 hidden (acp_users).

Image
Image
Image
VinaBB - Republic of phpBB

User avatar
JunglistPerfection
Registered User
Posts: 611
Joined: Mon Apr 09, 2007 11:58 pm
Location: Chicago, IL

Re: [BETA] Country Flags 0.7.0

Post by JunglistPerfection » Thu Jun 21, 2007 2:07 am

Very nice, I'll give this one a try.

romans1423
Registered User
Posts: 1552
Joined: Sat Nov 02, 2002 4:44 pm
Location: Connersville, IN
Name: Rick Beckman
Contact:

Re: [BETA] Country Flags 0.7.0

Post by romans1423 » Thu Jun 21, 2007 2:28 am

Works fantastic; however, when registering before a flag is selected, the flag icon shows up as a broken image. :(

User avatar
nedka
Registered User
Posts: 162
Joined: Tue Jun 28, 2005 8:55 am
Location: Ho Chi Minh City
Name: Khoa Nguyen

Re: [BETA] Country Flags 0.7.0

Post by nedka » Thu Jun 21, 2007 3:05 am

Ah, I use "images/spacer.gif" if no flag is selected, but seem its path isn't correct. I will fix this in the next version of this MOD. :D
VinaBB - Republic of phpBB

romans1423
Registered User
Posts: 1552
Joined: Sat Nov 02, 2002 4:44 pm
Location: Connersville, IN
Name: Rick Beckman
Contact:

Re: [BETA] Country Flags 0.7.0

Post by romans1423 » Thu Jun 21, 2007 3:28 am

I'm really not for sure what is causing it, but the image is loading like this:

Code: Select all

<img src="./images/spacer.gif./images/flags/af.png./images/flags/ax.png./images/flags/al.png./images/flags/dz.png./images/flags/as.png./images/flags/ad.png./images/flags/ao.png./images/flags/ai.png./images/flags/aq.png./images/flags/ag.png./images/flags/ar.png./images/flags/am.png./images/flags/aw.png./images/flags/ac.png./images/flags/au.png./images/flags/at.png./images/flags/az.png./images/flags/bs.png./images/flags/bh.png./images/flags/bd.png./images/flags/bb.png./images/flags/by.png./images/flags/be.png./images/flags/bz.png./images/flags/bj.png./images/flags/bm.png./images/flags/bt.png./images/flags/bo.png./images/flags/ba.png./images/flags/bw.png./images/flags/bv.png./images/flags/br.png./images/flags/io.png./images/flags/bn.png./images/flags/bg.png./images/flags/bf.png./images/flags/bi.png./images/flags/kh.png./images/flags/cm.png./images/flags/ca.png./images/flags/cv.png./images/flags/ky.png./images/flags/cf.png./images/flags/td.png./images/flags/cl.png./images/flags/cn.png./images/flags/cx.png./images/flags/cc.png./images/flags/co.png./images/flags/km.png./images/flags/cg.png./images/flags/cd.png./images/flags/ck.png./images/flags/cr.png./images/flags/ci.png./images/flags/hr.png./images/flags/cu.png./images/flags/cy.png./images/flags/cz.png./images/flags/dk.png./images/flags/dj.png./images/flags/dm.png./images/flags/do.png./images/flags/ec.png./images/flags/eg.png./images/flags/sv.png./images/flags/gq.png./images/flags/er.png./images/flags/ee.png./images/flags/et.png./images/flags/fk.png./images/flags/fo.png./images/flags/fj.png./images/flags/fi.png./images/flags/fr.png./images/flags/gf.png./images/flags/pf.png./images/flags/tf.png./images/flags/ga.png./images/flags/gm.png./images/flags/ge.png./images/flags/de.png./images/flags/gh.png./images/flags/gi.png./images/flags/gr.png./images/flags/gl.png./images/flags/gd.png./images/flags/gp.png./images/flags/gu.png./images/flags/gt.png./images/flags/gg.png./images/flags/gn.png./images/flags/gw.png./images/flags/gy.png./images/flags/ht.png./images/flags/hm.png./images/flags/va.png./images/flags/hn.png./images/flags/hk.png./images/flags/hu.png./images/flags/is.png./images/flags/in.png./images/flags/id.png./images/flags/ir.png./images/flags/iq.png./images/flags/ie.png./images/flags/im.png./images/flags/il.png./images/flags/it.png./images/flags/jm.png./images/flags/jp.png./images/flags/je.png./images/flags/jo.png./images/flags/kz.png./images/flags/ke.png./images/flags/ki.png./images/flags/kp.png./images/flags/kr.png./images/flags/kw.png./images/flags/kg.png./images/flags/la.png./images/flags/lv.png./images/flags/lb.png./images/flags/ls.png./images/flags/lr.png./images/flags/ly.png./images/flags/li.png./images/flags/lt.png./images/flags/lu.png./images/flags/mo.png./images/flags/mk.png./images/flags/mg.png./images/flags/mw.png./images/flags/my.png./images/flags/mv.png./images/flags/ml.png./images/flags/mt.png./images/flags/mh.png./images/flags/mq.png./images/flags/mr.png./images/flags/mu.png./images/flags/yt.png./images/flags/mx.png./images/flags/fm.png./images/flags/md.png./images/flags/mc.png./images/flags/mn.png./images/flags/me.png./images/flags/ms.png./images/flags/ma.png./images/flags/mz.png./images/flags/mm.png./images/flags/na.png./images/flags/nr.png./images/flags/np.png./images/flags/nl.png./images/flags/an.png./images/flags/nc.png./images/flags/nz.png./images/flags/ni.png./images/flags/ne.png./images/flags/ng.png./images/flags/nu.png./images/flags/nf.png./images/flags/mp.png./images/flags/no.png./images/flags/om.png./images/flags/pk.png./images/flags/pw.png./images/flags/ps.png./images/flags/pa.png./images/flags/pg.png./images/flags/py.png./images/flags/pe.png./images/flags/ph.png./images/flags/pn.png./images/flags/pl.png./images/flags/pt.png./images/flags/pr.png./images/flags/qa.png./images/flags/re.png./images/flags/ro.png./images/flags/ru.png./images/flags/rw.png./images/flags/sh.png./images/flags/kn.png./images/flags/lc.png./images/flags/pm.png./images/flags/vc.png./images/flags/ws.png./images/flags/sm.png./images/flags/st.png./images/flags/sa.png./images/flags/sn.png./images/flags/rs.png./images/flags/sc.png./images/flags/sl.png./images/flags/sg.png./images/flags/sb.png./images/flags/sk.png./images/flags/si.png./images/flags/so.png./images/flags/za.png./images/flags/gs.png./images/flags/es.png./images/flags/lk.png./images/flags/sd.png./images/flags/sr.png./images/flags/sj.png./images/flags/sz.png./images/flags/se.png./images/flags/ch.png./images/flags/sy.png./images/flags/tw.png./images/flags/tj.png./images/flags/tz.png./images/flags/th.png./images/flags/tl.png./images/flags/tg.png./images/flags/tk.png./images/flags/to.png./images/flags/tt.png./images/flags/tn.png./images/flags/tr.png./images/flags/tm.png./images/flags/tc.png./images/flags/tv.png./images/flags/ug.png./images/flags/ua.png./images/flags/ae.png./images/flags/uk.png./images/flags/us.png./images/flags/um.png./images/flags/uy.png./images/flags/uz.png./images/flags/vu.png./images/flags/ve.png./images/flags/vn.png./images/flags/vg.png./images/flags/vi.png./images/flags/wf.png./images/flags/eh.png./images/flags/ye.png./images/flags/zm.png./images/flags/zw.png" id="flag_image" alt="" />
I commented out this line:

Code: Select all

$flag_image .= ($row['flag_image']) ? $phpbb_root_path . $config['flags_path'] . '/' . $row['flag_image'] : $phpbb_root_path . 'images/spacer.gif';
in includes/ucp/ucp_register.php as it didn't seem to be needed; everything works fine without it.
Last edited by romans1423 on Thu Jun 21, 2007 4:57 pm, edited 1 time in total.

User avatar
nedka
Registered User
Posts: 162
Joined: Tue Jun 28, 2005 8:55 am
Location: Ho Chi Minh City
Name: Khoa Nguyen

Re: [BETA] Country Flags 0.7.0

Post by nedka » Thu Jun 21, 2007 3:52 am

Just a quick fix with ucp_register.php file:

FIND:

Code: Select all

$flag_image .= ($row['flag_image']) ? $phpbb_root_path . $config['flags_path'] . '/' . $row['flag_image'] : $phpbb_root_path . 'images/spacer.gif';
REPLACE WITH:

Code: Select all

$flag_image = ($selected) ? $phpbb_root_path . $config['flags_path'] . '/' . $row['flag_image'] : $phpbb_root_path . 'images/spacer.gif';
:D
VinaBB - Republic of phpBB

User avatar
nedka
Registered User
Posts: 162
Joined: Tue Jun 28, 2005 8:55 am
Location: Ho Chi Minh City
Name: Khoa Nguyen

Re: [BETA] Country Flags 0.8.0

Post by nedka » Thu Jun 21, 2007 5:36 am

Updated to ver 0.8.0!
Thanks your report, romans1423! :D
For code changes from 0.7.0 to 0.8.0, please view updates/0.7.0_to_0.8.0.txt file in the download package.
VinaBB - Republic of phpBB

romans1423
Registered User
Posts: 1552
Joined: Sat Nov 02, 2002 4:44 pm
Location: Connersville, IN
Name: Rick Beckman
Contact:

Re: [BETA] Country Flags 0.8.0

Post by romans1423 » Thu Jun 21, 2007 4:59 pm

Works great, thanks!

User avatar
fiorefrank
Registered User
Posts: 226
Joined: Fri Jun 08, 2007 10:43 am
Location: Italy
Contact:

Re: [BETA] Country Flags 0.8.0

Post by fiorefrank » Fri Jun 22, 2007 5:12 pm

a really nice mod!
i'm going to try it!

w3neo
Registered User
Posts: 67
Joined: Wed Oct 23, 2002 3:35 pm
Contact:

Re: [BETA] Country Flags 0.8.0

Post by w3neo » Sat Jun 23, 2007 3:32 pm

Would you consider adding some sot of countries who have visited today to the users online area of the index page? Maybe even a link to a page listing every country that has ever visited with both the flag and the country name (more stats could be added to the this page such as percentages of visitors each country represents).

I have a forum that is a global community and think it would be wonderful to see at a glance how broad our membership is. Currently there are 40+ countries a day visiting this site.

Have you ever seen Trace Watch? They do a great implementation of presenting these statistics but there is really no way to easily share this information with the community at large.

Lastly, and my apologies for such a long post with so many requests but you might want to take a look at the program above for automating the country choice so you eliminate both the chance someone would choose a country other than the one they are in and the possibility they might not choose at all. Of course the user could opt to keep their location private but the system would still be able to count the anonymously.

Best regards,

w3

Locked

Return to “[3.0.x] Abandoned MODs”