1 saulfa Mar 19, 2013 19:20
3 tilqicom Mar 25, 2013 01:47
Instead of core hacking, you can temprorarily solve this by changing your skins _html.header.inc.php
file . If you dont have one inside your skin folder, simply copy the one from parent ./skins
folder to ./skins/your_skin
folder.
Change the part that says:
<title><?php
// ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------
request_title( $params );
// ------------------------------ END OF REQUEST TITLE -----------------------------
?></title>
to:
<?php
$user_ID = param( 'user_ID', 'integer', '' );
$UserCache = & get_UserCache();
$User = & $UserCache->get_by_ID( $user_ID );
if( $disp_detail == 'user' ) {
echo '<title>User page for: '.$User->get( 'preferredname' ).'</title>';
}
else {
?>
<title><?php
// ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------
request_title( $params );
// ------------------------------ END OF REQUEST TITLE -----------------------------
?></title>
<?php } // end else ?>
That should output: User page for: Kairn
4 saulfa Apr 03, 2013 15:28
Thanks for the feedback. I ran into another issue which is the data on the user page is viewed as duplicate data for all the user profiles (this is for a company and so everyone has the same phone number and all the descriptor titles are the same). I want to simply completely disable user profiles from the public view. Any idea how I can do that?
thanks again
5 tilqicom Apr 04, 2013 01:22
You can set them to NOINDEX so they dont show up in google. See Blog settings > SEO and look for author.
as far as user access you can simply block, or redirect the profile pages. To do that, you can
a.) Copy _user.disp.php
from parent ./skins folder in your ./skins/your_skin folder
b.) Add a conditional in your skin's index.main.php such as if($disp === user) ..
So when a user profile page is requested you can either block, redirect or do whatever you want
Hum... we need to fix that in the next release.