vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Registered Group Details (https://vborg.vbsupport.ru/showthread.php?t=42500)

Velocd 08-18-2002 10:00 PM

Registered Group Details
 
Registered Group Details
2.2.x | by Velocd

Install time: 4 minutes
Template edits: 1 (forumhome)
New templates: 2 (registered_users, registered_userbit)

New files: 1 (regusers.php)


What is it?
This small nifty add-on will give detailed information on how many users are in each user-title group, and what percent of the whole forum. It appears in a pop-up when you click the number of registered members you have, on the forum home page.


Screenshots? Demo's?
No demo's, but you can find a screenshot in the next post ;)

Instructions?
See install.txt, inside the zip.

If you use this hack, please remember to click install! :p

Suggestions and comments are always welcomed.

Velocd 08-19-2002 08:54 PM

Screenie ;)

NTLDR 08-19-2002 08:55 PM

Nice hack Velocd, shame I don't display the number of members on my forum :(

[edit]

After taking another look does this display the actual usergroup and members or the number of members that fall into each user title range?

The description makes it sound like the first and the screenshot makes it sound like the second ;)

[/edit]

Velocd 08-19-2002 08:58 PM

Well, you could still make a link for this on your homepage, unless you're saying that you don't display it for other reason.. ;)

NTLDR 08-19-2002 09:00 PM

I'm thinking about adding it on now, incase you don't see my edit above:

After taking another look does this display the actual usergroup and members or the number of members that fall into each user title range?

The description makes it sound like the first and the screenshot makes it sound like the second ;)

Velocd 08-19-2002 09:05 PM

Yeah, I know I kinda picked a vague hack title, but I wasn't too sure what else to call it.

It displays the different user-titles, and then in each displays how many members are a part of it. Not the usergroup, but user-titles.

I also forgot to mention that members with customtitles are included into the very last usertitle group, before you can achieve customtitles. (for example in the screenshot, my custom-titled users are included in Forum Ultimate..um). Oh, hopefully most of you allow custom titles after the last usertitle....better check that out. ;)

NTLDR 08-19-2002 09:09 PM

It was this part that confused me:

Quote:

This small nifty add-on will give detailed information on how many users are in each usergroup
As its the user titles I'm going to install now ;)

ULTIMATESSJ 08-19-2002 09:28 PM

heh slow down Velocd, anyways nice hack

Attrox 08-19-2002 09:39 PM

Great hack, I'll save this and install it tonight. Nice job! :)

Velocd 08-19-2002 09:43 PM

Quote:

posted by Ultimate SSJ:
heh slow down Velocd, anyways nice hack
Well you know how fun making hacks is :cheeky: (ha ha ha....)

This will be my last release for awhile...or at least until the next prophecy tells me of a new hack to create. :p

Attrox 08-19-2002 10:35 PM

I wish I could think of ideas like you...I havn't had any unique ones lately. Your lucky, write the hacks while you still can. ;)

Erwin 08-19-2002 10:56 PM

Good idea. :) Not installing it to reduce the queries on my index page, but it's a good idea nonetheless. You come up with great ideas for hacks.

NTLDR 08-19-2002 11:22 PM

This won't actually create any queries unless someone clicks on the link ;)

Velocd 08-19-2002 11:23 PM

Erwin this calls no queries on your index page :p
It's on it's own file, regusers.php ^^

Erwin 08-20-2002 12:12 AM

I see. :) That's even better! Good job! :p

Vile 08-20-2002 01:06 AM

Nice hack.
Installed:)

g-force2k2 08-20-2002 02:01 AM

nice work Velocd :)

g-force2k2

Okiewan 08-20-2002 02:24 PM

Good stuff
This would be awesome if it was by usergroup.

NTLDR 08-20-2002 04:17 PM

Quote:

Originally posted by Okiewan
Good stuff
This would be awesome if it was by usergroup.

Change in the registered_userbit template:

$usergrouptitle to $usergroup[title]

And change;

$totalusers to $usergroup[count]

And upload the attached PHP file, that will show usergroups, not user titles.

Okiewan 08-20-2002 04:20 PM

Thanks!!!

Okiewan 08-20-2002 04:48 PM

And now to look a gift horse in the mouth :)
Any way to select with groups to display ?
Purdy please? There are several I don't want to display, like waiting confirmation, banned, etc.

Thanks in advance. :)

NTLDR 08-20-2002 04:56 PM

Quote:

Originally posted by Okiewan
Any way to select with groups to display ?
Find:
PHP Code:

LEFT JOIN user ON (user.usergroupid usergroup.usergroupid

And add after it (for one group):

PHP Code:

WHERE usergroup.usergroupid='x' 

Changing x to the usergroupid.

Or, For Multi groups:

PHP Code:

WHERE usergroup.usergroupid='x' or usergroup.usergroupid='x' or usergroup.usergroupid='x' 

To Add/remove groups from this just add/remove:

PHP Code:

or usergroup.usergroupid='x' 

Remember to change x to the usergroupid :D

Okiewan 08-20-2002 05:16 PM

:)

For the "For Multi groups:" of the code you posted, entering a group id there excludes that group from showing up... works fine. I expected that to include the groups.

Thanks again!

NTLDR 08-20-2002 05:21 PM

I've edited the post and chaged it so that you specify which groups to include, not exclude :)

ULTIMATESSJ 08-20-2002 06:06 PM

Quote:

Originally posted by Attrox
I wish I could think of ideas like you...I havn't had any unique ones lately. Your lucky, write the hacks while you still can. ;)
heh at least i'm not the only one with no idea's :ermm:

Austin Dea 08-20-2002 06:18 PM

Nice hack, but I used the usergroup version from NTLDR ;D.

Kars10 08-27-2002 05:38 PM

Great Hack!
/me klicks the Install-Link!

Crazy Pete 12-03-2002 06:00 PM

How could one not have this set to count custom titled people in the last group, but instead make them their own category of "Custom Titles" whatever%?

The reason I ask is because I have it set that you can set a custom title after 25 posts, but the biggest regular title group is 1000 posts. 6 people have custom titles assigned, and I have 0 in the biggest group (1000 posts). When I view the details, it says my biggest group has 6 people in it.

How would I change this?

Boofo 01-28-2003 01:18 PM

I'm having a slight problem with this showing up. I have my $numbermembers in the forumhome_pmloggedin template instead of the forumhome. I'm sure this is the problem, but how can I get it to work from there?


All times are GMT. The time now is 02:05 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01175 seconds
  • Memory Usage 1,778KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (29)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete