PDA

View Full Version : Creating AutoList of SuperMods


Me2Be
08 Mar 2001, 18:29
Can someone help me with this? I'd really like to be able to have a link where someone would click and it would list all of those in the supermoderator admin group with the following info in a table:

Username Location PM (link to send pm)

How can this be done?

08 Mar 2001, 18:42
Give me a little while to finish the documentation for the new version of my vBcode buttons and I'll write this for you in a jiffy :)

08 Mar 2001, 18:51
Originally posted by Kier
Give me a little while to finish the documentation for the new version of my vBcode buttons and I'll write this for you in a jiffy :) Thanks :)

08 Mar 2001, 21:27
I hope this is what you wanted...

http://kier.3dfrontier.com/vbhacks/supermods.gif

If you link to the attached PHP file, the page will display a list of all your super-moderators, together with a link to their profile and PM, and a display of their location.

I included the forum-jump just because...

To install, just copy the getsmods.php file to your forums directory, and create three custom templates using the .htm files in the attached zip.

08 Mar 2001, 21:50
Thank you! Works perfectly :)

09 Mar 2001, 12:09
Kier strikes again :D

09 Mar 2001, 22:35
Another great hack! Thanks :)

I also added the user's online status to this as well... for those interested:

edit file getsmods.php

Change the main query to read:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


Find:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


And add AFTER:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Template Change supermodsbit
Add


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

09 Mar 2001, 22:45
Thanks Kier & Chris - this is just perfect!!!

09 Mar 2001, 22:50
Yep.. Works great.

10 Mar 2001, 21:46
don't forget to add postbit_offline and postbit_online to the list of $templatesused, or the page will use an extra two queries...

11 Mar 2001, 03:44
Ahh thanks for the tip, I completely forgot about that....

11 Mar 2001, 14:39
Great AddOn!!! Thx a lot.

I am working on this to fit it my needs and got some ideas, but want to ask anyway, howto list the forums the moderators a moderators of? Any help for this one?

Thanks

11 Mar 2001, 15:47
I tried this, just to bring the forumids up, but it adds the forumids from the frist to the second mod, and so on....didn't work....anyhelp??

This is what I put into the while () {}


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


The template only contains:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

11 Mar 2001, 16:16
The problem with this is "Super Moderators" are not normally assigned to a forum but have free-reign over the entire forum setting.

11 Mar 2001, 16:49
As I said, I change a lot to fit it my needs. I got this for the getsmods.php and some more templates: It show Admingroup and Moderatorgroup. Now I want to check if the userid is in the moderator table and get the forumids from it to show the forum name.


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

11 Mar 2001, 22:01
Anyone who can help or working on it? I need it.....hm.....going to sleep and see whats going to be in a few hours (sometimes I wish I live in a US time zone......)

13 Mar 2001, 14:50
How can I change this to just list moderators?
Instead of supermods?

13 Mar 2001, 18:32
Originally posted by Sarge
How can I change this to just list moderators?
Instead of supermods? I don't know -- this goes by usergroup ids and all of my moderators are super moderators.

13 Mar 2001, 18:37
Theres a groupid part, you just change the number.

13 Mar 2001, 18:45
what is the group id for mods?

13 Mar 2001, 22:10
ahhhh, did anyone looked at my code, you find it in there!

14 Mar 2001, 04:57
Your code didn't work

All I want to do is list the mods instead of the supermods

Any Help??

14 Mar 2001, 06:05
Inorder to get the group id

User Groups and Permissions
Add | Modify
Modify forums

Do Modify and it will show a chart, moving the mouse over the edit part of each will show you what groupid it is.

Then in getsmods.php just find
$super_moderators_group_id = 23;

and change the 23 to whatever group you want.

I hope this helps.

14 Mar 2001, 10:26
Originally posted by GameGalaxy
Inorder to get the group id

User Groups and Permissions
Add | Modify
Modify forums

Do Modify and it will show a chart, moving the mouse over the edit part of each will show you what groupid it is.

Then in getsmods.php just find
$super_moderators_group_id = 23;

and change the 23 to whatever group you want.

I hope this helps.

That would help but by default, the moderators are in the Registered usersgroup.

14 Mar 2001, 11:27
Sure it worked, when you have the right templates. But I opnly wanna show the code to show my error! And in the code also ypu find how to define the mod group, but anyway, as wluke said. You must put the mods in a own group, before it work!


Any help so far for listing the forums the moderator a working on?

15 Mar 2001, 03:41
Wow, this is great Kier! Just one question. I want to list all my clan members, but some of my clan members are super mods, mods, and then me (the admin)... different user groups obviously. How would I list all of these people using your hack? All my clan members are already in their own custom group. Would I group all people in the clan member user group and then manually assign super mod and admin rights to users that need it? Hmmm, would that work? Or can your code be adapted to include multiple groups and display the output accordingly. What about alphabetical listings of people in a group? Or does your code already do that?

Thanks for this great hack!

15 Mar 2001, 03:44
I don't know the syntax, but you just need to have it do 2 groups

Like This and That

If nobody posts it I will look it up later tonight and post how you can do it one way.

15 Mar 2001, 04:11
I have just posted a complete rewrite of this hack here (http://vbulletin.com/forum/showthread.php?s=&threadid=11425).

The new version is easily modified to display any usergroups you want.

It also displays... oh just click the link and read the stuff there. ;)