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
User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

National Flags User Flags

Postby RMcGirr83 » 17 Mar 2012, 13:00

On this forum you may have noticed that clicking on either the "Top flags" link or the flag itself will redirect you to a list of users that have that flag or a list of all flags and the number of users that have that flag depending on which you click on.

The included functions file also adds caching to improve the performance on your forum (query is only run every 15 minutes as opposed to everytime someone visits the index.php page).

To get this same affect on your forum, you need to take the attached

flag_addon.zip
(9.48 KiB) Downloaded 943 times


unzip it and upload it into your forum overwriting the files that are there. Refresh the style in the ACP and that should do it.

This addon is for prosilver based styles only...sorry subsilver2 lovers.

If you get any errors, please let me know. I tried to incorporate everything but may have forgotten a thing or 50.


User avatar
Ooopsie
Supporter
Supporter
Posts: 1213
Joined: 19 Aug 2010, 16:34
Location: Index, WA
Contact:

Re: National Flags User Flags

Postby Ooopsie » 17 Mar 2012, 13:05

Thanks for sharing Rich.

User avatar
kevinviet
Member
Member
Posts: 96
Joined: 03 Mar 2010, 10:09
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: National Flags User Flags

Postby kevinviet » 17 Mar 2012, 21:41

Thank you Rich, downloading ... :)

Blackwolf_Oz
Senior member
Senior member
Posts: 211
Joined: 11 Feb 2011, 11:27
Contact:

Re: National Flags User Flags

Postby Blackwolf_Oz » 18 Mar 2012, 01:01

Like .....totally cool man!! Thanks :rock:
PhpBB3 Version: 3.1.2

We are Anonymous. We are Legion. We do not forgive. We do not forget. Expect us.

amaw2013
New member
New member
Posts: 4
Joined: 29 Mar 2012, 14:47
Contact:

Re: National Flags User Flags

Postby amaw2013 » 03 Apr 2012, 17:26


mikef35
New member
New member
Posts: 38
Joined: 21 Feb 2012, 21:05
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: National Flags User Flags

Postby mikef35 » 03 Apr 2012, 17:36


User avatar
all4phone
New member
New member
Posts: 34
Joined: 23 Aug 2011, 16:16
Contact:

Re: National Flags User Flags

Postby all4phone » 04 Apr 2012, 09:12

First thanks for sharing Rich :handshake: :up: .
On this site I see (Top 10 National Flags). Ther are flags and below number of users. This is your magic code or is an easy way to get this effect ?
|

User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: National Flags User Flags

Postby RMcGirr83 » 04 Apr 2012, 09:13

It is within the zip file in the first post.

User avatar
all4phone
New member
New member
Posts: 34
Joined: 23 Aug 2011, 16:16
Contact:

Re: National Flags User Flags

Postby all4phone » 04 Apr 2012, 09:51

I installed this mod:



and as You see, number of users is on the right side.
On your board, in the Top 10 National Flags box, I see flags (images) and below number of users.
I'm looking for a simple solution for this.

I was trying set up some "padding", but it's not to perfect as I see this in Top 10 National Flags box at the bottom of your board.
Sorry, but I see no solution in zip file :( . (I do not install this addon yet)
|

User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: National Flags User Flags

Postby RMcGirr83 » 04 Apr 2012, 09:53

Compare the html file in the zip to the one from the mod download using and you will see the differences between the two files.

User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: National Flags User Flags

Postby RMcGirr83 » 04 Apr 2012, 09:56

Whoops...not enough :coffee: yet today. Try the attached
Attachments
top_flags.zip
(575 Bytes) Downloaded 765 times

User avatar
all4phone
New member
New member
Posts: 34
Joined: 23 Aug 2011, 16:16
Contact:

Re: National Flags User Flags

Postby all4phone » 04 Apr 2012, 10:17

Hmm, in the zip archive of MOD I found top_flags.html and ucp_user_flag.html.
In the zip archive of addon We have just flag_users_body.html
Those are the only html files :sweat:
So what's the point comparing them ? I think I'm interested only the top_flags.html file. If I am mistaken correct me please :shock:

Your Top 10:
|

User avatar
all4phone
New member
New member
Posts: 34
Joined: 23 Aug 2011, 16:16
Contact:

Re: National Flags User Flags

Postby all4phone » 04 Apr 2012, 10:23

|

martin123456
Old member
Old member
Posts: 677
Joined: 30 Mar 2011, 00:32
Contact:

Re: National Flags User Flags

Postby martin123456 » 04 Apr 2012, 12:49

Rich whats the secret to get the flags to align in the center ? i been playing with this for an hour or so but everything fails. at the moment there pushed to the left i'm using the zip you posted here today if that helps

2012-04-04_134527.png
2012-04-04_134527.png (3.77 KiB) Viewed 50193 times

steve
Master of posting
Master of posting
Posts: 1213
Joined: 12 Jul 2009, 19:14
Location: uk
Contact:

Re: National Flags User Flags

Postby steve » 04 Apr 2012, 15:51

Steve ©


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “Modders MOD support”

Who is online

Users browsing this forum: Bing [Bot] and 5 guests