vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Help needed, please. (https://vborg.vbsupport.ru/showthread.php?t=46952)

Cin 12-24-2002 01:48 AM

Help needed, please.
 
I'm not sure I am posting this in the proper place, but I hope that someone can give me some guidance here. Apologies in advance if in the wrong area.

I have an up and running forum, on which we have installed many of your wonderful hacks. My problem doesn't lie with any of them. It has just come to my attention that a webmaster from another website is coming to our site and poaching email addys from our members list and emailing them trying to lure them to their site.

Yes, I can just ban them, but then they could just register from another IP and get right back in and I wouldn't know it was them. I'd rather keep them where I can see them. What I want to know is if there is ANY way I can block their access to my members list. I know that in Admin CP you are able to block someone from specific forums but the members list is not an option there. I have been unable to find a hack here for this. Is there something available or does anyone have a solution to allow me to block them from viewing my members list?

Any help or ideas would be appreciated.

~Cin~

Xenon 12-24-2002 10:03 AM

in memberlist.php after require global.php

add this:
PHP Code:

if($bbuserinfo[usergroupid]==2show_nopermission(); 

so no registred member will have acces to the list anymore

Cin 12-24-2002 10:13 AM

Hi Xenon, thanks for replying. I don't want to hide memberlist from EVERYONE. I want deny access to it for specific members. Any ideas?

~Cin~

Xenon 12-24-2002 11:42 AM

use this instead:

PHP Code:

if(in_array($bbuserinfo[userid], array(x,y,z))) show_nopermission(); 

replace x, y, z with the userids of those members :)

DaveRobbo 12-24-2002 11:48 AM

Hey Xenon! I was just about to reply asking if that would do the trick!

I'm Cin's co-administrator on the board in question ... my solution was to ask you if the following code would do the trick ....

PHP Code:

if($bbuserinfo[userid]==8show_nopermission(); 

(where '8' is the userid of the errant member) ... but your use of in_array() makes it even more flexible!! Thanks so much :)

Davie

Xenon 12-24-2002 01:43 PM

:)
it always feels good if i could help :)

if you just have one userid, your method is the way to do it, but if you have more i'd use my way. :)

DaveRobbo 12-26-2002 12:57 AM

Many thanks Stefan ... works like a charm

Would a similar hack to member.php work for stopping them looking at individual users' profiles? Do I need the same anywhere else? member2.php maybe?

Dave

Xenon 12-28-2002 09:33 PM

yes, the same can be used on member.php for the getinfo section :)


All times are GMT. The time now is 12:56 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.01108 seconds
  • Memory Usage 1,733KB
  • 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
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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