|
|
Joined: Feb 2002
Posts: 91
Journeyman
|
Journeyman
Joined: Feb 2002
Posts: 91 |
I tweaked showprofile to only display the fakeemail addy if the user looking at the profile is logged in. If the user is not logged in, the email addy is blank.
My thought is to prevent harvesters from coming in and grabbing the emails from showprofile.
Good idea???????
------------- Youuuuuuuuuuu Rang?
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
That sounds like a GREAT alternative to hiding the whole profile from people who aren't logged in. You should post for whoever is interested.
|
|
|
|
Joined: Feb 2002
Posts: 91
Journeyman
|
Journeyman
Joined: Feb 2002
Posts: 91 |
Very easy mod. code: In showprofile.php
Change this:
// --------------------------------------------------- // Only show the address book link for logged in users if ($thisuser['U_Username']) { $addresslinkstart = " <a href="{$config['phpurl']}/addaddress.php?Cat=$Cat&User=$encoded&Board=$Board&Number=$Number&what=$what&page=$page&view=$view&sb=$sb&o=$o">"; $addresslinkstop = "</a>"; }
if ( ($config['private']) && ($thisuser['U_Username']) ){ $privlinkstart = "<a href="{$config['phpurl']}/sendprivate.php?Cat=$Cat&User=$encoded&Board=$Board&Number=$Number&what=$what&page=$page&view=$view&sb=$sb&o=$o&fpart=$fpart&vc=$vc">"; $privlinkstop = "</a>"; }
to this:
// --------------------------------------------------- // Only show the address book link, private message link and email addy for logged in users if ($thisuser['U_Username']) { $addresslinkstart = " <a href="{$config['phpurl']}/addaddress.php?Cat=$Cat&User=$encoded&Board=$Board&Number=$Number&what=$what&page=$page&view=$view&sb=$sb&o=$o">"; $addresslinkstop = "</a>"; }
if ( ($config['private']) && ($thisuser['U_Username']) ){ $privlinkstart = "<a href="{$config['phpurl']}/sendprivate.php?Cat=$Cat&User=$encoded&Board=$Board&Number=$Number&what=$what&page=$page&view=$view&sb=$sb&o=$o&fpart=$fpart&vc=$vc">"; $privlinkstop = "</a>"; }
if (!$thisuser['U_Username']) { $Fakeemail = ""; }
Last edited by lurch; 10/24/2002 1:31 AM.
------------- Youuuuuuuuuuu Rang?
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 1,157
Joined: July 2001
|
|
Forums63
Topics37,575
Posts293,929
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|