National Flags

Animated icons - National Flags

Animated icons

by kamundu » Thu Jan 21, 2021 5:46 pm

Hello,
how can we animate the flag icons ?
User avatar
kamundu
Registered User
Posts: 111
Joined: Fri Aug 21, 2015 11:32 pm

Re: Animated icons

by Bruce Banner » Thu Jan 21, 2021 5:54 pm

That'd be way too complicated. Ya'd have to create an animated version of every single flag.
Bruce Banner
Registered User
Posts: 1383
Joined: Thu Sep 25, 2014 10:36 am

Re: Animated icons

by bennybernaer » Thu Jan 21, 2021 8:03 pm

Several years ago these were animated
flags.zip
(1.95 MiB) Downloaded 48 times
User avatar
bennybernaer
Registered User
Posts: 733
Joined: Tue Mar 22, 2011 9:53 pm

Re: Animated icons

by kamundu » Mon Feb 08, 2021 4:34 pm

bennybernaer wrote:Several years ago these were animated
flags.zip
Very good.... keep it up.

Kindly where do I upload them ?
User avatar
kamundu
Registered User
Posts: 111
Joined: Fri Aug 21, 2015 11:32 pm

Re: Animated icons

by RMcGirr83 » Mon Feb 08, 2021 5:53 pm

You have to change these lines in the admin_controller file of the extension

Code: Select all

	/**
	* define our constants
	**/
	const MAX_WIDTH = 32;
	const MAX_HEIGHT = 32;
to match the flags dimensions, so probably like this

Code: Select all

	/**
	* define our constants
	**/
	const MAX_WIDTH = 36;
	const MAX_HEIGHT = 27;
then in the ACP for the flags you have to upload each and every flag to change the flag to be used for the country.

However, loading animated flags, when you have a lot of them, will probably tax many users devices/computers. That's why static images are used.
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: 22099
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Animated icons

by kamundu » Mon Feb 08, 2021 8:16 pm

RMcGirr83 wrote:You have to change these lines in the admin_controller file of the extension
Works miraculously. Thanks


:D
User avatar
kamundu
Registered User
Posts: 111
Joined: Fri Aug 21, 2015 11:32 pm