vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 5.x Products & Extensions (https://vborg.vbsupport.ru/forumdisplay.php?f=258)
-   -   Add-On Releases - Member List for VB5 (https://vborg.vbsupport.ru/showthread.php?t=296651)

CheeseMan316 04-01-2013 07:02 PM

Hope you don't mine me making a quick change, and I'm not trying to take any credit here, but I found an interim solution until you release the v.14 "official" page. We are releasing the site to our members tonight so I wanted to get something.

I added:

Code:

//show only registered users
//I know membergroupids could be wrong, but all of the users who aren't in the primary
//group id 2 (registered) that I want to appear start with 2 so it works
$custom_group_mask = " (usergroupid = 2 or membergroupids like '2,%') and ";
//validate the user session cookie against the session db to ensure a valid user id is returned
//and it is for the current IP address.
$session_check = "exists (select 1 from ".$vb_prefix."session where userid != 0 and host='".$_SERVER['REMOTE_ADDR']."' and sessionhash = '".$_COOKIE["bbsessionhash"]."') and ";



Then I modified the queries to be as follows:

Code:

$query ="Select * from ".$vb_prefix."user where ".$custom_group_mask.$session_check." username like $like order by username";
$query ="Select * from ".$vb_prefix."user where ".$custom_group_mask.$session_check." username like $like order by username LIMIT $from, $max_results";


wdwms 04-01-2013 07:21 PM

Quote:

Originally Posted by CheeseMan316 (Post 2413708)
Hope you don't mine me making a quick change, and I'm not trying to take any credit here, but I found an interim solution until you release the v.14 "official" page. We are releasing the site to our members tonight so I wanted to get something.

I just released .14 with your wish granted.. :)

The code actually takes the bbsessionhash cookie and looks up if the user is logged in via the session table.

Let me know if this is what you are after.

CheeseMan316 04-01-2013 07:45 PM

Thank you!

doctorsexy 04-05-2013 11:26 AM

Hi ... a little problem all im getting is ...You must be logged in to access the member list... and i am..ive done something wrong ..any suggestions . thanks

wdwms 04-05-2013 12:26 PM

Quote:

Originally Posted by doctorsexy (Post 2414398)
Hi ... a little problem all im getting is ...You must be logged in to access the member list... and i am..ive done something wrong ..any suggestions . thanks

In memberlist.php, what do you have:
$showto_loggedout

set too in the config?

doctorsexy 04-05-2013 01:26 PM

$showto_loggedout = 1;

wdwms 04-05-2013 05:53 PM

You can get by this by changing

PHP Code:

if ($loggedin && $showto_loggedout

to

PHP Code:

$loggedin=1
if ($loggedin

But please email me directly, i'd like to find out why your are seeing this.

doctorsexy 04-06-2013 06:11 AM

Hi..with that all im getting is a white page... the joys of vb5

wdwms 04-06-2013 11:31 AM

You don't have your mysql settings configured correctly. Remove the line error_reporting(0); run the script again and email me the errors: todd@aero-pro.net

doctorsexy 04-06-2013 12:44 PM

hi ..done that and no errors just says ...You must be logged in to access the member list.


All times are GMT. The time now is 01:17 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.01204 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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