Recent Topics

1 Mar 19, 2013 19:20    

Hello!

I am using b2evolution 4.1.4 on this site http://blog.instabill.com . I am working the websites overall SEO and have run into an error I do not know how to fix. Basically all of the user profiles have the same page title "user" . I would like for the user profile page titles to simply reflect the users first and last name. Here are a couple of examples of the user profiles...

http://blog.instabill.com/index.php?disp=user&user_ID=11
http://blog.instabill.com/index.php?disp=user&user_ID=12

I am also trying to get the url to diplay the username instead of the user ID. Any help here would be greatly appreciated.

thanks,

Saul

2 Mar 24, 2013 23:32

Hum... we need to fix that in the next release.

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


Form is loading...