We are in the process of starting over. This means that the entire board at phpbbmodders.net has been set to read-only. All phpBB 2.x and 3.0.x content should be visible but read-only. Private messaging has been disabled for registered users. Registrations will be opened in the near future at the new site. A link to the new site is provided below.

- bonelifer, Administrator

National Flags User Flags

Support for mods released by phpbbmodders.net found at either https://github.com/phpbbmodders/ or the MODDB at http://www.phpbb.com
Forum rules
Please only request support for mods released by phpbbmodders.net found at either https://github.com/phpbbmodders/ or the MODDB at http://www.phpbb.com
steve
Master of posting
Master of posting
Posts: 1213
Joined: 12 Jul 2009, 19:14
Location: uk

Re: National Flags User Flags

Post by steve »

I think he wants to use $cache->put(
Steve ©
User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6242
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr

Re: National Flags User Flags

Post by RMcGirr83 »

The flags are already cached.
9CaraTT
New member
New member
Posts: 7
Joined: 24 Jan 2013, 20:37

Re: National Flags User Flags

Post by 9CaraTT »

steve©
RMcGirr83
Thank you!
found

Code: Select all

sql_query($sql, 600);
User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6242
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr

Re: National Flags User Flags

Post by RMcGirr83 »

and where are you using this (as in which file)?
9CaraTT
New member
New member
Posts: 7
Joined: 24 Jan 2013, 20:37

Re: National Flags User Flags

Post by 9CaraTT »

functions_flag.php

Code: Select all

		$sql = 'SELECT flag_id, flag_name, flag_image
			FROM ' . FLAGS_DATA_TABLE . '
		ORDER BY flag_id';
		$result = $db->sql_query($sql, 600);

Code: Select all

	$sql = 'SELECT flag_id, flag_name, flag_image
		FROM ' . FLAGS_DATA_TABLE . '
	ORDER BY flag_name';
	$result = $db->sql_query($sql, 600);
all right?
User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6242
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr

Re: National Flags User Flags

Post by RMcGirr83 »

As I said that is already cached

Code: Select all

		// cache this data for ever, can only change in ACP
		$cache->put('_user_flags', $user_flags);
there isn't any need to also cache the query.
G19staify
New member
New member
Posts: 1
Joined: 04 Feb 2013, 08:18

Re: National Flags User Flags

Post by G19staify »

Thanks:)
9CaraTT
New member
New member
Posts: 7
Joined: 24 Jan 2013, 20:37

Re: National Flags User Flags

Post by 9CaraTT »

understand
RMcGirr83
Thank you!
pavelstop
New member
New member
Posts: 1
Joined: 07 Mar 2013, 10:18

Re: National Flags User Flags

Post by pavelstop »

Hello. How dowloads? :)
modul
New member
New member
Posts: 24
Joined: 16 Nov 2010, 15:08
Location: Greece

Re: National Flags User Flags

Post by modul »

When I enable National Flags on memberlist.php members listing corrupts and displays data to invalid table place. Any hint?
Image
If you see a black cat passing by. It means that the animal is going somewhere :P
User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6242
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr

Re: National Flags User Flags

Post by RMcGirr83 »

I have no idea what that means.
modul
New member
New member
Posts: 24
Joined: 16 Nov 2010, 15:08
Location: Greece

Re: National Flags User Flags

Post by modul »

http://ultimatef1racing.com/phpBB3/memb ... =group&g=2
go to legend and click on any group then see what's going on with national flags on.
Can you help me to put top 5 flags in ca_black boxes? thnx :)
Username: tester
PW: tester
National Flags OFF:
[img]http://img543.imageshack.us/img543/922/withnationalflagsoff.png[/img]

National Flags ON:
[img]http://img29.imageshack.us/img29/7220/withnationalflagson.png[/img]

Thank you in advance Rick
Image
If you see a black cat passing by. It means that the animal is going somewhere :P
User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6242
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr

Re: National Flags User Flags

Post by RMcGirr83 »

Uhmmm, yeah that user id and password doesn't work. Try again.
modul
New member
New member
Posts: 24
Joined: 16 Nov 2010, 15:08
Location: Greece

Re: National Flags User Flags

Post by modul »

Now it does.. (dunno why didn't worked before)
I've changed that into tester again..
and re-activated the account.
Image
If you see a black cat passing by. It means that the animal is going somewhere :P
User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6242
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr

Re: National Flags User Flags

Post by RMcGirr83 »

You have made an error in the html edits.

Who is online

Users browsing this forum: Ahrefs [Bot], CommonCrawl [Bot], Majestic-12 [Bot] and 2 guests