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

Postby steve » 28 Jan 2013, 19:46

I think he wants to use $cache->put(
Steve ©

User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr

Re: National Flags User Flags

Postby RMcGirr83 » 28 Jan 2013, 23:47

The flags are already cached.

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

Re: National Flags User Flags

Postby 9CaraTT » 01 Feb 2013, 16:28

steve©
RMcGirr83
Thank you!
found

Code: Select all

sql_query($sql, 600);

User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr

Re: National Flags User Flags

Postby RMcGirr83 » 01 Feb 2013, 18:02

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

Postby 9CaraTT » 03 Feb 2013, 22:03

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: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr

Re: National Flags User Flags

Postby RMcGirr83 » 03 Feb 2013, 23:18

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

Postby G19staify » 04 Feb 2013, 08:19

Thanks:)

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

Re: National Flags User Flags

Postby 9CaraTT » 04 Feb 2013, 20:14

understand
RMcGirr83
Thank you!

pavelstop
New member
New member
Posts: 1
Joined: 07 Mar 2013, 10:18

Re: National Flags User Flags

Postby pavelstop » 07 Mar 2013, 10:26

Hello. How dowloads? :)

modul
New member
New member
Posts: 24
Joined: 16 Nov 2010, 15:08
Location: Greece

Re: National Flags User Flags

Postby modul » 26 Mar 2013, 19:01

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: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr

Re: National Flags User Flags

Postby RMcGirr83 » 26 Mar 2013, 20:09

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

Postby modul » 26 Mar 2013, 21:11

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
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr

Re: National Flags User Flags

Postby RMcGirr83 » 26 Mar 2013, 22:38

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

Postby modul » 26 Mar 2013, 23:14

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: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr

Re: National Flags User Flags

Postby RMcGirr83 » 27 Mar 2013, 01:20

You have made an error in the html edits.


Return to “Modders MOD support”

Who is online

Users browsing this forum: CommonCrawl [Bot] and 1 guest