Page 1 of 1

Groups/Contributers Page

Posted: 01 Nov 2010, 02:50
by bonelifer
This post was originally posted by Kenny at 6 String MODs. We will continue developing this thingy and release it as a MOD to the phpBB MODDB.

As requested by JohanNL, here is a simple page that lists all your custom groups and their members. It's a very simple snippet, requiring only 1 file edit :)

Some of the features:
  • Group name is now a link to the memberlist groups page
  • Groups rank image & title
  • Config options - decide whether or not to show group rank, title and description

I've set my page to show all custom groups as well as the pre-defined Administrators and Global Moderators. Guests, Bots ans Reg Users are hidden. You should note that any group marked as hidden will not show up on this page.

By default, the group leader is the 1st user in the list and their name is in bold. If there is no group leader, then none is shown. If there are no members, no members are shown. If there is neither a leader or any members, but the groups exists, the box will show but it will be empty. I plan on expanding on this to show messages like "The groups has no members" :)

All styling is done in the HTML file itself, so if you want to change font sizes or things like that, change them there. I also included a little bit of CSS3 - rounded corner borders. They only work on Mozilla and Webkit based browsers (Firefox, Safari). Just remove the CSS and the class="round" if you don't want that.

I should note that there is not pagination of any sort included with this script and it will pull all members of custom groups onto that one page. So if you have a group with 100 or 100 members, you may wish to exclude that group ;) This snippet is ideal for small groups of people you wish to give recognition to.

[url=http://www.phpbb.com/customise/db/mod/groups_page/]Link to Modification on phpBB[/url]

[url=https://github.com/phpbbmodders/groups_page]Link to Modification on github[/url]

Re: Groups/Contributers Page

Posted: 03 Nov 2010, 19:14
by Unknown Bliss
The repository is located here: https://github.com/phpbbmodders/groups_page

Re: Groups/Contributers Page

Posted: 03 Nov 2010, 19:52
by Obsidian
Clever, but question...you aren't using a query in a loop like I saw someone else's doing, right?

That'd be bad. Very bad.

Re: Groups/Contributers Page

Posted: 03 Nov 2010, 20:05
by tumba25
Rich is rewriting it to not use queries in loops. And to minimize the number of queries.

Re: Groups/Contributers Page

Posted: 07 Nov 2010, 13:26
by EY
Any screenshot or demo on how this would look?

Re: Groups/Contributers Page

Posted: 07 Nov 2010, 14:11
by RMcGirr83
In it's current form

modders4.png

Re: Groups/Contributers Page

Posted: 08 Nov 2010, 11:51
by tumba25
This is in the MOD queue waiting for the wolfs (AKA validators) to do their thing.

Re: Groups/Contributers Page

Posted: 18 Nov 2010, 22:00
by RMcGirr83
...and [url=http://www.phpbb.com/customise/db/mod/groups_page/]validated and released[/url]. Enjoy!!

First post updated. :)

Re: Groups/Contributers Page

Posted: 22 Nov 2010, 16:04
by Rashiki
Hey guys, im loving this mod so far. But there are a few things I want to add to it if you could help me out. I know this is 100% possible, i'm just not too familiar with phpbb, learning as i go.

This is what i need...

I need to display a custom profile field next to the user name, the profile field is called "title" for example.

I also need to display the user_rank through rank_title if the user has one, but if not, to display the group_rank through rank_title.

Ive spent days rummaging through this code and I usually can work things out myself but this one got me stumped, I am as stuck as I can be, please help me out some knowledgable great person!