Groups/Contributers Page

Post your MODs, receive and provide feedback!
Topics in this forum are not for MOD support, they are for giving the author feedback.
Forum rules
The topics in this forum are not for general MOD support, they are for giving the MOD author some feedback, ideas and bug reports.

Groups/Contributers Page

Postby bonelifer » 01 Nov 2010, 02:50

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.

Link to Modification on phpBB

Link to Modification on github
Last edited by RMcGirr83 on 18 Nov 2010, 22:02, edited 1 time in total.
Reason: Remove zip, add links
User avatar
bonelifer
Moderator Team Leader
Moderator Team Leader
 
Posts: 1475
Joined: 24 Jun 2006, 17:48
Location: htpc.MythBuntu
Real name: William

Re: Groups/Contributers Page

Postby Unknown Bliss » 03 Nov 2010, 19:14

The repository is located here: https://github.com/phpbbmodders/groups_page
User avatar
Unknown Bliss
New member
New member
 
Posts: 46
Joined: 24 Oct 2010, 02:08
Location: Inside your head.
Real name: Michael.C.

Re: Groups/Contributers Page

Postby Obsidian » 03 Nov 2010, 19:52

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.
User avatar
Obsidian
Supporter
Supporter
 
Posts: 866
Joined: 13 May 2008, 15:20
Real name: Damian

Re: Groups/Contributers Page

Postby tumba25 » 03 Nov 2010, 20:05

Rich is rewriting it to not use queries in loops. And to minimize the number of queries.
User avatar
tumba25
Administrator
Administrator
 
Posts: 877
Joined: 24 Oct 2007, 13:10
Location: Kokkola, Finland.
Real name: Jari Kanerva

Re: Groups/Contributers Page

Postby EY » 07 Nov 2010, 13:26

Any screenshot or demo on how this would look?
Never Say Never!
User avatar
EY
Supporter
Supporter
 
Posts: 209
Joined: 05 Nov 2006, 23:13
Location: Montreal
Real name: Elias

Re: Groups/Contributers Page

Postby RMcGirr83 » 07 Nov 2010, 14:11

In it's current form

modders4.png
Image
User avatar
RMcGirr83
MOD Team Leader
MOD Team Leader
 
Posts: 444
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr

Re: Groups/Contributers Page

Postby tumba25 » 08 Nov 2010, 11:51

This is in the MOD queue waiting for the wolfs (AKA validators) to do their thing.
User avatar
tumba25
Administrator
Administrator
 
Posts: 877
Joined: 24 Oct 2007, 13:10
Location: Kokkola, Finland.
Real name: Jari Kanerva

Re: Groups/Contributers Page

Postby RMcGirr83 » 18 Nov 2010, 22:00

...and validated and released. Enjoy!!

First post updated. :)
Image
User avatar
RMcGirr83
MOD Team Leader
MOD Team Leader
 
Posts: 444
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr

Re: Groups/Contributers Page

Postby Rashiki » 22 Nov 2010, 16:04

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!
Rashiki
New member
New member
 
Posts: 1
Joined: 22 Nov 2010, 15:41


Return to MOD Feedback

Who is online

Users browsing this forum: No registered users and 1 guest

cron