vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   help with custom memberlist please (https://vborg.vbsupport.ru/showthread.php?t=260749)

AFemaleProdigy 03-24-2011 01:38 AM

Hmmm... okay... I have been trying to figure this out, but just can't get it right. ugh.

EDIT:

So I figured out how to get the correct total user count and page numbers. Made one small change here (added "10" for the usergroup ID)...

Code:

$userscount = $db->query_first_slave("
  SELECT COUNT(*) AS users
  FROM " . TABLE_PREFIX . "user AS user
  " . ($include_userfield_join ? "LEFT JOIN " . TABLE_PREFIX . "userfield AS userfield USING (userid)" : '') . "
  $hook_query_joins
  WHERE $condition
  AND (user.usergroupid IN (10)" . (defined('MEMBERLIST_INCLUDE_SECONDARY') ? (" OR FIND_IN_SET(" . implode(', user.membergroupids) OR FIND_IN_SET(', $idarray) . ", user.membergroupids)") : '') . ")
  $hook_query_where
 ");

But, I think my initial idea to display usrs from a specific usergroup won't work. It does strip all other usergroups out, but it's messing up the listings. I'm trying to find another way. Any suggestions.

--------------- Added [DATE]1300938771[/DATE] at [TIME]1300938771[/TIME] ---------------

My oh my... I actually figured it out on my own just now!! :D Took me forever. A lot of trial and error, but I got it... with your help of course Lynn.

Managed to solve all of my issues! :cool:

Lynne 03-24-2011 03:15 AM

Glad you figured it out. :)


All times are GMT. The time now is 07:38 AM.

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.01094 seconds
  • Memory Usage 1,713KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete