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

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


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.
You do not have the required permissions to view the files attached to this post.

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

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

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

Re: National Flags User Flags

Postby Blackwolf_Oz » 18 Mar 2012, 01:01

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

Re: National Flags User Flags

Postby amaw2013 » 03 Apr 2012, 17:26

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

Postby mikef35 » 03 Apr 2012, 17:36

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

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

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

Re: National Flags User Flags

Postby all4phone » 04 Apr 2012, 09:51

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

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 WinMerge 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

Re: National Flags User Flags

Postby RMcGirr83 » 04 Apr 2012, 09:56

Whoops...not enough :coffee: yet today. Try the attached
You do not have the required permissions to view the files attached to this post.

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

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

Re: National Flags User Flags

Postby all4phone » 04 Apr 2012, 10:23

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

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
You do not have the required permissions to view the files attached to this post.

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

Re: National Flags User Flags

Postby steve » 04 Apr 2012, 15:51

try:

Code: Select all

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


Return to “Modders MOD support”

Who is online

Users browsing this forum: Bing [Bot], CommonCrawl [Bot] and 0 guests