PDA

View Full Version : Help needed, please.


Cin
12-24-2002, 01:48 AM
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:
if($bbuserinfo[usergroupid]==2) show_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:

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 ....

if($bbuserinfo[userid]==8) show_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 :)