Welcome, Guest. Please Login or Register.
April 27, 2025, 05:25:48 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  [Code 1.4.1/1.5.1/1.5.2] Deny guest from viewing member profiles « previous next »
Pages: [1] 2 Reply Ignore Print
Author Topic: [Code 1.4.1/1.5.1/1.5.2] Deny guest from viewing member profiles  (Read 2593 times)
Jack.R.Abbit
Mod Team
YaBB God
*****
Posts: 553


RACE FOR SPENT!

[Code 1.4.1/1.5.1/1.5.2] Deny guest from viewing member profiles
« on: October 17, 2002, 09:13:19 PM »
Reply with quote

As the Subject suggests, this prevents guests from viewing member profiles.

In Profile.php search for

function ViewProfile ()
and add
if($username == "Guest")
 fatal_error($txt[223]);
after the line "$user=urldecode($user);".

You will get the same error message if a guest tries to view the member list.

-Jack
« Last Edit: May 13, 2003, 04:28:38 PM by Jack.R.Abbit » Logged

<--------  Mods by Jack  -------->
Package Server: http://www.modsbydesign.com/mods.by.jack/yabbse/ (now serving)


|----------------------------------------------|
|                                              |
|          DON'T PM ME FOR SUPPORT!             |
|                                              |
|----------------------------------------------|
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Code 1.4.1] & [1.5.1 Final]Deny guest from viewing member profiles
« Reply #1 on: April 18, 2003, 11:37:43 AM »
Reply with quote

This code works on 1.5.1 as well!

Thanks Jack.

Tony.
Logged

To the world - you are just one person, but to one person you are the world!
Jack.R.Abbit
Mod Team
YaBB God
*****
Posts: 553


RACE FOR SPENT!

Re:[Code 1.4.1 & 1.5.1] Deny guest from viewing member profiles
« Reply #2 on: April 18, 2003, 02:13:49 PM »
Reply with quote

Thanks for the info, Tony

-Jack
Logged

<--------  Mods by Jack  -------->
Package Server: http://www.modsbydesign.com/mods.by.jack/yabbse/ (now serving)


|----------------------------------------------|
|                                              |
|          DON'T PM ME FOR SUPPORT!             |
|                                              |
|----------------------------------------------|
oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?

oldiesmann@oldiesmann.us WWW
Re:[Code 1.4.1 & 1.5.1] Deny guest from viewing member profiles
« Reply #3 on: April 18, 2003, 02:54:22 PM »
Reply with quote

Uh... I thought this was already a part of YaBB... Last time I tried to view a user profile on YaBB without logging in, it said I had to be a registered member to view that user's profile or something.
Logged

"I've sinned greatly, but Christ's for real, baby
It's a wonder He saved me and just didn't hate me
So won't you tell Him "Save me"
Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Code 1.4.1 & 1.5.1] Deny guest from viewing member profiles
« Reply #4 on: April 18, 2003, 02:56:15 PM »
Reply with quote

Nope i have always had to add the code.

Logged

To the world - you are just one person, but to one person you are the world!
CrazyC
Jr. Member
**
Posts: 85


My name says enough.

WWW
Re:[Code 1.4.1 & 1.5.1] Deny guest from viewing member profiles
« Reply #5 on: April 19, 2003, 02:49:49 AM »
Reply with quote

The only thing blocked in the main yabb code is clicking the link to go to the main member list, but if you click on someone's name from a message in the forum (where guests can view messages), they can see that persons profile.  I too have been adding this code myself on the last view releases.
Logged

CrazyC
oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?

oldiesmann@oldiesmann.us WWW
Re:[Code 1.4.1 & 1.5.1] Deny guest from viewing member profiles
« Reply #6 on: April 20, 2003, 02:48:48 AM »
Reply with quote

Ah. I see. I'll have to add that code just as a precaution to keep people from being able to swipe email addresses from user profiles...
Logged

"I've sinned greatly, but Christ's for real, baby
It's a wonder He saved me and just didn't hate me
So won't you tell Him "Save me"
Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Code 1.4.1 & 1.5.1] Deny guest from viewing member profiles
« Reply #7 on: April 20, 2003, 06:08:56 AM »
Reply with quote

Thats another reason I did it, although if they havent selected hide email then it only takes someone to go through the memberlist making notes.

I run this sql code every now and then which sets everybodys email to hide ;)


UPDATE members set hideEmail = '1' WHERE ID_MEMBER>'1';
Logged

To the world - you are just one person, but to one person you are the world!
Jack.R.Abbit
Mod Team
YaBB God
*****
Posts: 553


RACE FOR SPENT!

Re:[Code 1.4.1 & 1.5.1] Deny guest from viewing member profiles
« Reply #8 on: April 20, 2003, 06:40:20 AM »
Reply with quote

but guests can't get to the memder list either... By default, aside from the profile, the only way a guest can get an email address is to locate it in the member info of a post if the member has selected to make it visible.
Logged

<--------  Mods by Jack  -------->
Package Server: http://www.modsbydesign.com/mods.by.jack/yabbse/ (now serving)


|----------------------------------------------|
|                                              |
|          DON'T PM ME FOR SUPPORT!             |
|                                              |
|----------------------------------------------|
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Code 1.4.1 & 1.5.1] Deny guest from viewing member profiles
« Reply #9 on: April 20, 2003, 06:41:30 AM »
Reply with quote

Yeah, I know that, its just that it only takes someone to sign up and then trawl through the memberlist :)

Logged

To the world - you are just one person, but to one person you are the world!
Jack.R.Abbit
Mod Team
YaBB God
*****
Posts: 553


RACE FOR SPENT!

Re:[Code 1.4.1 & 1.5.1] Deny guest from viewing member profiles
« Reply #10 on: April 20, 2003, 08:39:44 AM »
Reply with quote

true... i was thinking only of guests.  :)
Logged

<--------  Mods by Jack  -------->
Package Server: http://www.modsbydesign.com/mods.by.jack/yabbse/ (now serving)


|----------------------------------------------|
|                                              |
|          DON'T PM ME FOR SUPPORT!             |
|                                              |
|----------------------------------------------|
oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?

oldiesmann@oldiesmann.us WWW
Re:[Code 1.4.1 & 1.5.1] Deny guest from viewing member profiles
« Reply #11 on: April 21, 2003, 01:44:10 PM »
Reply with quote

I just thought of something that would make this mod a little bit nicer... I get tired of seeing "fatal error" messages in the error log dealing with everything from people not logging in before they try to post to people trying to edit their profiles without being logged in, so instead of the "fatal error" line here, I suggest something like:

javascript:alert($txt[223);
Logged

"I've sinned greatly, but Christ's for real, baby
It's a wonder He saved me and just didn't hate me
So won't you tell Him "Save me"
Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
Jack.R.Abbit
Mod Team
YaBB God
*****
Posts: 553


RACE FOR SPENT!

Re:[Code 1.4.1 & 1.5.1] Deny guest from viewing member profiles
« Reply #12 on: April 21, 2003, 04:43:28 PM »
Reply with quote

I think that there has been a bit of a move lately to use more js alerts for non-fatal errors like this.    However, there still should be the error checking that is there because if js is switched off, there is not alert... no alrt and the user has no feedback on what the hell just happened.. or didn't happen.

-Jack
Logged

<--------  Mods by Jack  -------->
Package Server: http://www.modsbydesign.com/mods.by.jack/yabbse/ (now serving)


|----------------------------------------------|
|                                              |
|          DON'T PM ME FOR SUPPORT!             |
|                                              |
|----------------------------------------------|
oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?

oldiesmann@oldiesmann.us WWW
Re:[Code 1.4.1 & 1.5.1] Deny guest from viewing member profiles
« Reply #13 on: April 21, 2003, 06:35:22 PM »
Reply with quote

There's probably a way to code it so it determines whether or not Javascript is enabled...
Logged

"I've sinned greatly, but Christ's for real, baby
It's a wonder He saved me and just didn't hate me
So won't you tell Him "Save me"
Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
Re:[Code 1.4.1 & 1.5.1] Deny guest from viewing member profiles
« Reply #14 on: April 21, 2003, 08:32:32 PM »
Reply with quote

Thanks for the heads up on this info guys, added it to Supermod. also added disabled for guests boardindex list of members and search members view.

Logged

Pages: [1] 2 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Code 1.4.1/1.5.1/1.5.2] Deny guest from viewing member profiles « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.031 seconds with 16 queries.