Welcome, Guest. Please Login or Register.
April 26, 2025, 04:38:11 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  [BETA] Who's Who « previous next »
Pages: [1] Reply Ignore Print
Author Topic: [BETA] Who's Who  (Read 1915 times)
Joseph Fung
Global Moderator
YaBB God
*****
Posts: 4512


Keep smiling: it makes others nervous.

WWW
[BETA] Who's Who
« on: January 01, 2003, 04:10:31 PM »
Reply with quote

I wrote this a long time ago, and have finally gotten around to making a mod of it.

I was wondering if I could get some people to test it out before I finishing packing it and putting it up for download?

This mod simply adds a link in the admin center under the Member Controls to a page listing all the custom membergroups and the names of the numbers under said groups.  The member names are their full names, and link to thir profiles.

This mod is intended to simplify the administration of  your board. Nothing else.
« Last Edit: January 01, 2003, 04:18:22 PM by Joseph Fung » Logged

BiErLeEuW
Full Member
***
Posts: 174


WWW
Re:[BETA] Who's Who
« Reply #1 on: January 01, 2003, 08:39:28 PM »
Reply with quote

works with 1.5 ?
Logged
Nemesis
What's an Admin?
Global Moderator
YaBB God
*****
Posts: 2199


WWW
Re:[BETA] Who's Who
« Reply #2 on: January 01, 2003, 10:09:03 PM »
Reply with quote

Yup
Logged


Want to say thanks?
*************************************
DONATE or check out my WishList
*********************************
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:[BETA] Who's Who
« Reply #3 on: January 01, 2003, 10:27:20 PM »
Reply with quote

Cool!  Also something to point out is 1.5 adds view by membergroup in the member list but this seems much more admin like.
Logged

Joseph Fung
Global Moderator
YaBB God
*****
Posts: 4512


Keep smiling: it makes others nervous.

WWW
Re:[BETA] Who's Who
« Reply #4 on: January 02, 2003, 01:48:27 AM »
Reply with quote

Quote from: onsforum on January 01, 2003, 08:39:28 PMworks with 1.5 ?
Actually I think the mod file is designed to modify a 1.4 index.php
Logged

nferreri
Noobie
*
Posts: 45


Re:[BETA] Who's Who
« Reply #5 on: January 02, 2003, 05:53:09 PM »
Reply with quote

VERY COOL MOD!

I got it up and running in 1.5 with no problems.  This makes administering a board with lots of groups a LOT easier.

Thanks!
Logged
nferreri
Noobie
*
Posts: 45


Re:[BETA] Who's Who
« Reply #6 on: January 02, 2003, 05:57:40 PM »
Reply with quote

BTW.  Only thing I would recommend is removing the redundant group name before each member.  Should only need the group name above with the total number.

Also, I think it should show the new name of a group if you renamed it.  For example, I renamed the "Global Moderator" position to "Officers" but it shows up as "Global Moderator" on the list.
Logged
John R
PHP Challenged
Global Moderator
Sr. Member
*****
Posts: 387


Click, Click, Click, Bang!

ICQ - 3166233codehammer@thevortex.com
Re:[BETA] Who's Who
« Reply #7 on: January 02, 2003, 06:41:22 PM »
Reply with quote

Great Mod, works well.  Since I have many custom Membergroups this is a treat.

FYI it works fine with YaPP as well as long as the use sadmin.php instead of admin.php to apply the mod changes to.

cheers............
Logged

Be careful what you wish for, it might come true!

Note: I do not acknowledge support requests via PM, MSN or ICQ, please use the support boards.
Jedi~
Eric
Beta Tester
YaBB God
*****
Posts: 1284


WWW
Re:[BETA] Who's Who
« Reply #8 on: January 02, 2003, 10:25:00 PM »
Reply with quote

Quote from: John R on January 02, 2003, 06:41:22 PMGreat Mod, works well.  Since I have many custom Membergroups this is a treat.

FYI it works fine with YaPP as well as long as the use sadmin.php instead of admin.php to apply the mod changes to.

cheers............

Cool :)
Logged
Joseph Fung
Global Moderator
YaBB God
*****
Posts: 4512


Keep smiling: it makes others nervous.

WWW
Re:[BETA] Who's Who
« Reply #9 on: January 03, 2003, 03:17:13 AM »
Reply with quote

Quote from: nferreri on January 02, 2003, 05:57:40 PMBTW.  Only thing I would recommend is removing the redundant group name before each member.  Should only need the group name above with the total number.

Also, I think it should show the new name of a group if you renamed it.  For example, I renamed the "Global Moderator" position to "Officers" but it shows up as "Global Moderator" on the list.
Good point, thanks for the tip
Logged

David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:[BETA] Who's Who
« Reply #10 on: January 03, 2003, 08:59:24 AM »
Reply with quote

Ok, I modified it a bit, thought it was really cool so I added it as a feature on Boardnation.  I took the sugesstion to not print out the group title with each member and also it now uses the admin and gmod real names.

function WhosWho()
{
   global $db_prefix, $scripturl, $yytitle, $txt, $color;

   $request = mysql_query ('SELECT membergroup FROM '.$db_prefix.'membergroups WHERE ((grouptype=1 && membergroup!=\'\') || ID_GROUP=1 || ID_GROUP=8) ORDER BY ID_GROUP');
   while ($row = mysql_fetch_row($request))
      $groups[] = $row[0];

   $numGroups = count($groups);
   $halfNumGroups = $numGroups / 2;

   $yytitle = $txt['whosWho'];
   template_header();
   
   echo '<table border=0 cellpadding=3 cellspacing=1 class="bordercolor"><tr><td class=titlebg colspan=2><font size="2" class="text1"><b>'.$txt['whosWho'].'</b></font></td></tr><tr><td class="windowbg" colspan=2>' . $txt['whosWho2'] . '</td></tr><tr><td class=windowbg2>';
   echo '<table border=0 cellpadding=10><tr><td valign=top>';
   $c = 1;
   foreach ($groups as $group)
   {
      if ($halfNumGroups > 0 && $halfNumGroups < $numGroups)
      {
         $halfNumGroups--;
      }
      else if ($halfNumGroups <= 0)
      {
         echo '</td><td valign=top>';
         $halfNumGroups = $numGroups + 1;
      }
      if($c == 1)
         $tempgroup = 'Administrator';
      else if($c == 2)
         $tempgroup = 'Global Moderator';
      else
         $tempgroup = $group;

      $request = mysql_query ('SELECT realName, memberName FROM '.$db_prefix.'members WHERE memberGroup=\''.$tempgroup.'\'');
      echo '<br /><b><u>'.$group.': '. mysql_num_rows($request).' total users</u></b><br />';
      while ($row = mysql_fetch_assoc($request))
         echo '<a href="'.$scripturl.'?action=viewprofile;user='.$row[memberName].'">'.$row[realName].'</a><br>';
      $c++;
   }
   echo '</td></tr></table></td></tr></table>';
   footer();
   obExit();

}
« Last Edit: January 03, 2003, 09:00:14 AM by David » Logged

nferreri
Noobie
*
Posts: 45


Re:[BETA] Who's Who
« Reply #11 on: January 03, 2003, 10:30:11 PM »
Reply with quote

new one looks great, thanks for the changes. :)
Logged
Mr.Sins
Full Member
***
Posts: 113


BROOD WAR FOR LIFE

ICQ - 36721259cl.david@newmail.net WWW
Re:[BETA] Who's Who
« Reply #12 on: January 04, 2003, 05:16:00 AM »
Reply with quote

could some one post me a screenshot
Logged


Joseph Fung
Global Moderator
YaBB God
*****
Posts: 4512


Keep smiling: it makes others nervous.

WWW
Re:[BETA] Who's Who
« Reply #13 on: January 04, 2003, 11:13:29 AM »
Reply with quote

Ok - posted a new version, locking this.

Oh yeah - and I'll post a screen shot for you too.

http://www.yabbse.org/community/index.php?board=158;action=display;threadid=16902
Logged

Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [BETA] Who's Who « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.014 seconds with 16 queries.