Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jun 2006
Posts: 346
J
enthusiast
enthusiast
J Offline
Joined: Jun 2006
Posts: 346
This would be much appreciated for those running kids sites. They need to protect this info.


--
Website Development and Management
www.jcswebdev.com
Joined: Jan 2004
Posts: 56
P
journeyman
journeyman
P Offline
Joined: Jan 2004
Posts: 56
I agree with this. Although you can fix this in the template so that it is only available to registered users. (unless someone goes to the page specifically) it would be nice to have a couple features such as persons that are minors have limited info in there profiles and limited access to others profiles etc.

Joined: Jun 2006
Posts: 346
J
enthusiast
enthusiast
J Offline
Joined: Jun 2006
Posts: 346
A quick fix thanks to MattyJ is...


In showprofile.php find this:

$html = new html;
if ($User == 1) {
$html -> not_right($ubbt_lang['NO_LONGER'],$Cat);
}

And add this AFTER $html = new html;

if (empty($thisuser['U_Number'])) {
$html -> not_right("You must be logged in to view this data",$Cat);
}

So it now looks like this...

$html = new html;
if (empty($thisuser['U_Number'])) {
$html -> not_right("You must be logged in to view this data",$Cat);
}
if ($User == 1) {
$html -> not_right($ubbt_lang['NO_LONGER'],$Cat);
}


Save and upload. Make backups first.


--
Website Development and Management
www.jcswebdev.com

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
1 members (1 invisible), 702 guests, and 193 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240501)