National Flags

problem in registration page - National Flags

problem in registration page

by Mohammed AlSarsawi » Fri Mar 10, 2017 4:01 am

Hello

V 2.1.0
phpbb 3.2

this is in registration page
Image

but it's ok in UCP
Image


Thank you
Mohammed AlSarsawi
Registered User
Posts: 72
Joined: Fri Mar 03, 2017 1:35 pm

Re: problem in registration page

by RMcGirr83 » Fri Mar 10, 2017 11:01 am

Ensure you have translated all files for the language you are using.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer 🍺
User avatar
RMcGirr83
Former Team Member
Posts: 22105
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: problem in registration page

by Mohammed AlSarsawi » Fri Mar 10, 2017 11:12 pm

I re-install the ext. and problem solved

Thank you
Mohammed AlSarsawi
Registered User
Posts: 72
Joined: Fri Mar 03, 2017 1:35 pm

Re: problem in registration page

by Mohammed AlSarsawi » Sat Mar 11, 2017 1:23 am

I just noticed that if i chose NO to display flags to guests
the problem appear
Mohammed AlSarsawi
Registered User
Posts: 72
Joined: Fri Mar 03, 2017 1:35 pm

Re: problem in registration page

by RMcGirr83 » Sat Mar 11, 2017 11:09 am

What problem?
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer 🍺
User avatar
RMcGirr83
Former Team Member
Posts: 22105
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: problem in registration page

by Mohammed AlSarsawi » Sat Mar 11, 2017 2:09 pm

The problem is the language don't appear after i chose NO to display flags to guests
English or any language .. and this is only in registration page

If flags appear to guests
Eng
Image

Ar
Image


but If not
Eng
Image

Ar
Image
Mohammed AlSarsawi
Registered User
Posts: 72
Joined: Fri Mar 03, 2017 1:35 pm

Re: problem in registration page

by RMcGirr83 » Sat Mar 11, 2017 4:08 pm

find this in the listener file of the extension (found under the event directory).

Code: Select all

	public function user_setup($event)
	{
		if ($this->nationalflags->display_flags_on_forum())
		{
			// Need to ensure the flags are cached on page load
			$this->nationalflags->cache_flags();
			$lang_set_ext = $event['lang_set_ext'];
			$lang_set_ext[] = array(
				'ext_name' => 'rmcgirr83/nationalflags',
				'lang_set' => 'common',
			);
			$event['lang_set_ext'] = $lang_set_ext;
		}
	}
change to this

Code: Select all

	public function user_setup($event)
	{
		// Need to ensure the flags are cached on page load
		$this->nationalflags->cache_flags();
		$lang_set_ext = $event['lang_set_ext'];
		$lang_set_ext[] = array(
			'ext_name' => 'rmcgirr83/nationalflags',
			'lang_set' => 'common',
		);
		$event['lang_set_ext'] = $lang_set_ext;
	}
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer 🍺
User avatar
RMcGirr83
Former Team Member
Posts: 22105
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: problem in registration page

by Mohammed AlSarsawi » Sat Mar 11, 2017 4:23 pm

problem solved

Thank you
Mohammed AlSarsawi
Registered User
Posts: 72
Joined: Fri Mar 03, 2017 1:35 pm

Re: problem in registration page

by null2 » Sun Apr 30, 2017 9:41 pm

Same problem here. Solved now.
Sorry for my bad english. I'm from USA.
User avatar
null2
Registered User
Posts: 522
Joined: Wed Jan 20, 2010 11:03 am