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

National Flags User Flags

Post by RMcGirr83 »

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.43 KiB) Downloaded 1105 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.

NOTE: This will only work on a > 3.0.10 based forum due to the way the memberlist sorting has changed and if you have made changes to the files involved previously use a tool like WinMerge to compare the differences.
User avatar
Ooopsie
Supporter
Supporter
Posts: 1213
Joined: 19 Aug 2010, 16:34
Location: Index, WA
Contact:

Re: National Flags User Flags

Post by Ooopsie »

Thanks for sharing Rich.
User avatar
kevinviet
Member
Member
Posts: 96
Joined: 03 Mar 2010, 10:09

Re: National Flags User Flags

Post by kevinviet »

Thank you Rich, downloading ... :)
Blackwolf_Oz
Senior member
Senior member
Posts: 211
Joined: 11 Feb 2011, 11:27
Contact:

Re: National Flags User Flags

Post by Blackwolf_Oz »

Like .....totally cool man!! Thanks :rock:
PhpBB3 Version: 3.1.2
Ultimate Edition, Ultimate Edition Oz, Oz Unity
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

Post by amaw2013 »

Hi sir,

I just installed this mod but i got this error
General Error
template->_tpl_load_file(): File ./styles/lucid_lime/template/top_flags.html does not exist or is empty


In the download zip file it wasn't there. :sweat:
mikef35
New member
New member
Posts: 38
Joined: 21 Feb 2012, 21:05

Re: National Flags User Flags

Post by mikef35 »

amaw2013 wrote:Hi sir,

I just installed this mod but i got this error
General Error
template->_tpl_load_file(): File ./styles/lucid_lime/template/top_flags.html does not exist or is empty


In the download zip file it wasn't there. :sweat:



It is there http://www.phpbb.com/customise/db/mod/national_flags/sid_5d27c5d2f25af1c8b9161375ca80382a
User avatar
all4phone
New member
New member
Posts: 34
Joined: 23 Aug 2011, 16:16
Contact:

Re: National Flags User Flags

Post by all4phone »

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

Re: National Flags User Flags

Post by RMcGirr83 »

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

Post by all4phone »

I installed this mod: http://www.phpbb.com/customise/db/mod/national_flags/

Image

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

Re: National Flags User Flags

Post by RMcGirr83 »

Compare the html file in the zip to the one from the mod download using WinMerge and you will see the differences between the two files.
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 »

Whoops...not enough :coffee: yet today. Try the attached
Attachments
top_flags.zip
(572 Bytes) Downloaded 900 times
User avatar
all4phone
New member
New member
Posts: 34
Joined: 23 Aug 2011, 16:16
Contact:

Re: National Flags User Flags

Post by all4phone »

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:
removed...please don't link pics from picpost.pl which is a known spam house
User avatar
all4phone
New member
New member
Posts: 34
Joined: 23 Aug 2011, 16:16
Contact:

Re: National Flags User Flags

Post by all4phone »

RMcGirr83 wrote:Whoops...not enough :coffee: yet today.
me too :D

RMcGirr83 wrote:Try the attached
Yes, that is exactly what I was looking ! Thank you very much for your patience and for helping ;)
martin123456
Old member
Old member
Posts: 677
Joined: 30 Mar 2011, 00:32
Contact:

Re: National Flags User Flags

Post by martin123456 »

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 54564 times
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 »

try:

Code: Select all

   <dt style="width:100%;text-align: center;">
Steve ©
Post Reply