[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.
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 »

Uhm, thanks for your idea! :geek:
Currently, in the version 0.8.0, this MOD have a add-on: "Country Flags List page", it lists all countries with country names, country flags and total users of every country. I and my friends have an examination in 3 next weeks. I must prepare to review lessons for this important examination and don't have time for phpBB. I will add some things from your idea later, when I finished my examination. I will make it later :D
VinaBB - Republic of phpBB

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.8.0

Post by nickvergessen »

http://clusedo.cl.funpic.de/phpBB/flags.txt
here is the german language-file in txt-format
No Support via PM

User avatar
okada1314
Registered User
Posts: 209
Joined: Sat Oct 29, 2005 10:51 am

Re: [BETA] Country Flags 0.8.0

Post by okada1314 »

i cant find this!!

Code: Select all

			'lang'				=> request_var('lang', $user->lang_name),
is this

Code: Select all

		$user_lang		= request_var('lang', $user->lang_name);
or this

Code: Select all

			'lang'				=> basename(request_var('lang', $user->lang_name)),

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 »

Code: Select all

			'lang'				=> basename(request_var('lang', $user->lang_name)),
If I'm not mistaken, that's the code you're looking for. The basename() function was added in RC2, which was released after this MOD was developed, hence the code difference.

The MOD works great on RC2, though, so don't let minor variations in the FIND commands deter you from using it!

User avatar
Gleasonator
Registered User
Posts: 652
Joined: Tue Jun 05, 2007 2:19 pm
Location: Texas
Contact:

Re: [BETA] Country Flags 0.8.0

Post by Gleasonator »

I had some of the same troubles as okada1314, but I was able to figure out where to put it all by looking at patterns in the code (damn me for not knowing PHP).

Regardless, this is a truly awesome mod! Thanks for sharing, nedka! :geek:

(And yes, it does work great with RC2)
Sorry for my bad Engrish !
gleason|design

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.8.0

Post by nedka »

@nickvergessen: Thanks for your translation, but I can't get your file, from my IP:
Keine Berechtigung.
Richte auch du Deine kostenlose Homepage beim kostenlosen Webspace bei Funpic.de ein.
I don't know German language :) Google translated:
No authorization. Furnish also you your free homepage with the free Web space with Funpic.de
Can you send a copy of it via PM?
PS: I also can't download your MODs from Funpic.de??? Reason? :?
VinaBB - Republic of phpBB

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.8.0

Post by nickvergessen »

Maybe your IP-Section is banned from the hoster i don't know
No Support via PM

User avatar
Gleasonator
Registered User
Posts: 652
Joined: Tue Jun 05, 2007 2:19 pm
Location: Texas
Contact:

Re: [BETA] Country Flags 0.8.0

Post by Gleasonator »

:(

For some reason people cannot join my forums anymore. They get the error:
You must select your country flag
Even when they do select a flag (I have tested it myself). I would appreciate it if someone took a look (try to register) to help me solve this problem. My forums are http://www.gleasonator.com

I turned on debug and got this tremendously long error (on the registration page):

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 518: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4293: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3685)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4295: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3685)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4296: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3685)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4297: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3685)
Here is line 522 (of "/includes/ucp/ucp_register.php") including the eight lines before and eight lines after:

Code: Select all

			FROM ' . FLAGS_TABLE . '
			ORDER BY flag_country';
		$result = $db->sql_query($sql);

		$s_flag_options = '<option id="" value="0"' . ((!$data['flag']) ? ' selected="selected"' : '') . '>' . $user->lang['SELECT_FLAG'] . '</option>';

		while ($row = $db->sql_fetchrow($result))
		{
			$selected = ($data['flag'] && $row['flag_id'] == $data['flag']) ? ' selected="selected"' : '';
			$s_flag_options .= '<option id="' . $row['flag_image'] . '" value="' . $row['flag_id'] . '"' . $selected . '>' . $row['flag_country'] . ' (' . $row['flag_code'] . ')' . '</option>';
			$flag_image = ($selected) ? $phpbb_root_path . $config['flags_path'] . '/' . $row['flag_image'] : $phpbb_root_path . 'images/spacer.gif';
		}
		$db->sql_freeresult($result);

		$template->assign_vars(array(
			'ERROR'				=> (sizeof($error)) ? implode('<br />', $error) : '',
And in that, line 522 is:

Code: Select all

			$selected = ($data['flag'] && $row['flag_id'] == $data['flag']) ? ' selected="selected"' : '';
Thanks everyone. :)
~G
Sorry for my bad Engrish !
gleason|design

Image

User avatar
justhink
Registered User
Posts: 55
Joined: Fri Jun 29, 2007 10:26 pm
Name: Saugata Datta

Re: [BETA] Country Flags 0.8.0

Post by justhink »

General Error
SQL ERROR [ mysql4 ]

Unknown column 'user_flag' in 'field list' [1054]

An SQL error occurred while fetching this page. Please contact the Board Administrator if this problem persists.

I got above error massege when i try 2 register in the forum after submitting the form...

Any IDEA, of any FIX??

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

Re: [BETA] Country Flags 0.8.0

Post by JunglistPerfection »

I dont understand this. When I set the require country flag field to no, I get this error.
General Error
SQL ERROR [ mysql4 ]

Column 'user_flag' cannot be null [1048]
Also, when I set the require country flag field yes and select the flag, it gives me error saying that the flag wasnt selected.

Whats the problem?

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 »

@Gleasonator, JunglistPerfection: I don't sure about your problems, my test forum (RC1 - when I develop this MOD) and my live forum (using RC2), all of them don't have any problems like that. I will need re-check them later... :(
You can check this MOD at here, with register page: http://vinabb.com/ucp.php?mode=register (you can select English when register. It is my live forum, using RC2 core of phpBB3...)

@justhink: You must run install/cf_install.php file from your browser, did you do this? :geek:
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 »

Some changes for installing this MOD with RC2, in includes/ucp/ucp_register.php:

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
includes/ucp/ucp_register.php
#
#-----[ FIND ]------------------------------------------
#
					'lang'				=> $user->lang_name,
#
#-----[ BEFORE, ADD ]------------------------------------------
#
					'flag'				=> request_var('flag', ''),
#
#-----[ FIND ]------------------------------------------
#
			'lang'				=> basename(request_var('lang', $user->lang_name)),
#
#-----[ BEFORE, ADD ]------------------------------------------
#
			'flag'				=> request_var('flag', ''),
#
#-----[ FIND ]------------------------------------------
#
				'lang'				=> array('match', false, '#^[a-z_\-]{2,}$#i'),
#
#-----[ BEFORE, ADD ]------------------------------------------
#
				'flag'				=> array('num', true, 1, 300), // Limited 300 country flags
#
#-----[ FIND ]------------------------------------------
#
				if ($data['email'] != $data['email_confirm'])
				{
					$error[] = $user->lang['NEW_EMAIL_ERROR'];
				}
#
#-----[ AFTER, ADD ]------------------------------------------
#

				if ($config['require_flag'] && $data['flag'] == 0)
				{
					$error[] = $user->lang['FLAG_ERROR'];
				}
#
#-----[ FIND ]------------------------------------------
#
					'user_lang'				=> $data['lang'],
#
#-----[ BEFORE, ADD ]------------------------------------------
#
					'user_flag'				=> $data['flag'],
#
#-----[ FIND ]------------------------------------------
#
		$template->assign_vars(array(
			'ERROR'				=> (sizeof($error)) ? implode('<br />', $error) : '',
			'USERNAME'			=> $data['username'],
#
#-----[ BEFORE, ADD ]------------------------------------------
#
		// Select country flags
		$sql = 'SELECT *
			FROM ' . FLAGS_TABLE . '
			ORDER BY flag_country';
		$result = $db->sql_query($sql);

		$s_flag_options = '<option id="" value="0"' . ((!$data['flag']) ? ' selected="selected"' : '') . '>' . $user->lang['SELECT_FLAG'] . '</option>';

		while ($row = $db->sql_fetchrow($result))
		{
			$selected = ($data['flag'] && $row['flag_id'] == $data['flag']) ? ' selected="selected"' : '';
			$s_flag_options .= '<option id="' . $row['flag_image'] . '" value="' . $row['flag_id'] . '"' . $selected . '>' . $row['flag_country'] . ' (' . $row['flag_code'] . ')' . '</option>';
			$flag_image = ($selected) ? $phpbb_root_path . $config['flags_path'] . '/' . $row['flag_image'] : $phpbb_root_path . 'images/spacer.gif';
		}
		$db->sql_freeresult($result);

#
#-----[ FIND ]------------------------------------------
#
			'S_LANG_OPTIONS'	=> language_select($data['lang']),
#
#-----[ BEFORE, ADD ]------------------------------------------
#

			'FLAGS_PATH'		=> $phpbb_root_path . $config['flags_path'],
			'FLAG_IMAGE'		=> $flag_image,

			'S_FLAG_OPTIONS'	=> $s_flag_options,
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 »

Gleasonator, your error messages:

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 522: Undefined index: flag
Did you skip any steps in installation file with ucp_register.php? let see changes for RC2 in above post, and i hope that your problems will be solved.

JunglistPerfection, let check "user_flag" field in "phpbb_users" table (and you also should check "group_flag" filed in "phpbb_groups" table), it must default is "0" (int), not NULL... :geek:

Field: user_flag
Type: mediumint(8)
Attributes: UNSIGNED
Null: No
Default: 0
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.8.0

Post by JunglistPerfection »

Its working perfect now. This code below was missing in the installation file.

Code: Select all

#
#-----[ FIND ]------------------------------------------
#
         'lang'            => basename(request_var('lang', $user->lang_name)),
#
#-----[ BEFORE, ADD ]------------------------------------------
#
         'flag'            => request_var('flag', ''),

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 »

Yes, It's the reason, since RC2. :D I'm updating new version for this MOD, compatible with RC2... and will add "pre-modded" version for this MOD and RC2, as requested by justhink and some ones want to test this MOD quickly.
VinaBB - Republic of phpBB

Locked

Return to “[3.0.x] Abandoned MODs”