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
Contact:

Re: National Flags User Flags

Post by steve »

I think he wants to use $cache->put(
Steve ©
User avatar
RMcGirr83
Supporter
Supporter
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
Supporter
Supporter
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
Supporter
Supporter
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
Contact:

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
Supporter
Supporter
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
Contact:

Re: National Flags User Flags

Post by modul »

http://ultimatef1racing.com/phpBB3/memberlist.php?mode=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:
[url=http://imageshack.us/photo/my-images/543/withnationalflagsoff.png/][img]http://img543.imageshack.us/img543/922/withnationalflagsoff.png[/img][/url]

National Flags ON:
[url=http://imageshack.us/photo/my-images/29/withnationalflagson.png/][img]http://img29.imageshack.us/img29/7220/withnationalflagson.png[/img][/url]

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
Supporter
Supporter
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
Contact:

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
Supporter
Supporter
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.
Post Reply