Page 1 of 33

[ABD] Country Flags 1.0.0

Posted: Fri Jun 15, 2007 8:11 am
by nedka
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)

Re: [BETA] Country Flags 0.7.0

Posted: Fri Jun 15, 2007 8:45 am
by TRICHES.FR
hey that a great idea ! its also quite discret which is perfect ... keep up the good work !

Re: [BETA] Country Flags 0.7.0

Posted: Fri Jun 15, 2007 9:47 am
by nickvergessen
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

Re: [BETA] Country Flags 0.7.0

Posted: Fri Jun 15, 2007 9:57 am
by nedka
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

Re: [BETA] Country Flags 0.7.0

Posted: Mon Jun 18, 2007 7:40 am
by Oscar TWH
Just a newby question... :? How to install this MOD?
thx,
Oscar

Re: [BETA] Country Flags 0.7.0

Posted: Mon Jun 18, 2007 7:58 am
by nedka
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

Re: [BETA] Country Flags 0.7.0

Posted: Thu Jun 21, 2007 2:07 am
by JunglistPerfection
Very nice, I'll give this one a try.

Re: [BETA] Country Flags 0.7.0

Posted: Thu Jun 21, 2007 2:28 am
by romans1423
Works fantastic; however, when registering before a flag is selected, the flag icon shows up as a broken image. :(

Re: [BETA] Country Flags 0.7.0

Posted: Thu Jun 21, 2007 3:05 am
by nedka
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

Re: [BETA] Country Flags 0.7.0

Posted: Thu Jun 21, 2007 3:28 am
by romans1423
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.

Re: [BETA] Country Flags 0.7.0

Posted: Thu Jun 21, 2007 3:52 am
by nedka
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

Re: [BETA] Country Flags 0.8.0

Posted: Thu Jun 21, 2007 5:36 am
by nedka
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.

Re: [BETA] Country Flags 0.8.0

Posted: Thu Jun 21, 2007 4:59 pm
by romans1423
Works great, thanks!

Re: [BETA] Country Flags 0.8.0

Posted: Fri Jun 22, 2007 5:12 pm
by fiorefrank
a really nice mod!
i'm going to try it!

Re: [BETA] Country Flags 0.8.0

Posted: Sat Jun 23, 2007 3:32 pm
by w3neo
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