This simple little fix will give you better member profile names in
the search engines and on the browser bar. The default profile page
title has the members "nickname" and the "headline" on their profile -
but not everyone uses these fields. I wanted my profiles to have the
member's full name, followed by "international business profile".
Here is an example of how it looks in the browser bar: http://www.caltrade.com/community/tneubert
SEO Title for Profile Pages
FILE: /profile.php
locate:
$_page['header'] = process_line_output( $p_arr['NickName'] ) . ": ". htmlspecialchars_adv( $p_arr['Headline'] );
Change this to whatever you want. Look at profile table in database for
available values...after uploading of new profile.php clean the cache
and cache public folder.
In my case I changed this to:
$_page['header'] = process_line_output( $p_arr['full_name'] ) . ":International Business Profile";
"full_name" is a field I defined that has the member's full name,
but you could use the firstname or lastname fields, or whatever you
want.
|
This is a very good post Caltrade. I use something similar but with more options: First Name+Last Name+Headline+City+Some Text. Here is:
$_page['header'] = process_line_output( $p_arr['FirstName'] ) . " ". htmlspecialchars_adv( $p_arr['LastName'] ) . ": ". htmlspecialchars_adv( $p_arr['Headline'] ) .". ". htmlspecialchars_adv( $p_arr['City'] ). ", Text you want ";
It will show as follow: 1º Name Las Name: Headline. City, Text you want
|
Adding city is a good idea. IMO search engines are going nuts these days over content which is geographically orientated/structured
This is a very good post Caltrade. I use something similar but with more options: First Name+Last Name+Headline+City+Some Text. Here is:
$_page['header'] = process_line_output( $p_arr['FirstName'] ) . " ". htmlspecialchars_adv( $p_arr['LastName'] ) . ": ". htmlspecialchars_adv( $p_arr['Headline'] ) .". ". htmlspecialchars_adv( $p_arr['City'] ). ", Text you want ";
It will show as follow: 1º Name Las Name: Headline. City, Text you want
|
Good tips guys - I especially like your "City" idea cbassthefish ( always liked your username by the way). Someone help me with this, but I can't remember who, and it is buried in a post somewhere. I will post the attributititle, and there are probably other things like that.
Rob
|
I have pretty much did the same for my D6 website but with the Meta Description tag. No meta description tag in D7 though. |
You guys are brilliant! This is probably one of the best threads I've ever seen here.
More tips!!!
newbreed |
ok here we go:)
brand every site with your domain or company name
edit the file:
inc/classes/BxDolTemplate.php
about line 675
find code:
case 'page_header': if(!empty($GLOBALS[$this->_sPrefix . 'PageTitle'])) $sRet = $GLOBALS[$this->_sPrefix . 'PageTitle']; else if(isset($_page['header'])) $sRet = $_page['header'];
$sRet = process_line_output($sRet); break;
and change to (change boonex.com to your domain or company name):
case 'page_header': if(!empty($GLOBALS[$this->_sPrefix . 'PageTitle'])) $sRet = $GLOBALS[$this->_sPrefix . 'PageTitle']; else if(isset($_page['header'])) $sRet = $_page['header'].' | boonex.com';
$sRet = process_line_output($sRet); break;
ue30 Mods - http://www.boonex.com/market/posts/ue30 |
Excellent work to CALTRADE, mdroca and ue30! SEO Titles and Site Branding. Everyone should know how to do this! Someday, Someway. |
Hi ue30!
why my first line is in orange this >> //$sRet = process_line_output($sRet);
//$sRet = process_line_output($sRet); break; case 'page_header_text': if(!empty($GLOBALS[$this->_sPrefix . 'PageMainBoxTitle'])) $sRet = $GLOBALS[$this->_sPrefix . 'PageMainBoxTitle']; else if(isset($_page['header_text'])) $sRet = $_page['header_text'];
//$sRet = process_line_output($sRet); break;
ok here we go:)
brand every site with your domain or company name
edit the file:
inc/classes/BxDolTemplate.php
about line 675
find code:
case 'page_header': if(!empty($GLOBALS[$this->_sPrefix . 'PageTitle'])) $sRet = $GLOBALS[$this->_sPrefix . 'PageTitle']; else if(isset($_page['header'])) $sRet = $_page['header'];
$sRet = process_line_output($sRet); break;
and change to (change boonex.com to your domain or company name):
case 'page_header': if(!empty($GLOBALS[$this->_sPrefix . 'PageTitle'])) $sRet = $GLOBALS[$this->_sPrefix . 'PageTitle']; else if(isset($_page['header'])) $sRet = $_page['header'].' | boonex.com';
$sRet = process_line_output($sRet); break;
Post Reply - if you going to help - No for - bla bla bla bla |
Can you tell me how to read the member photo and the description about the member
Thank's
This simple little fix will give you better member profile names in
the search engines and on the browser bar. The default profile page
title has the members "nickname" and the "headline" on their profile -
but not everyone uses these fields. I wanted my profiles to have the
member's full name, followed by "international business profile".
Here is an example of how it looks in the browser bar: http://www.caltrade.com/community/tneubert
SEO Title for Profile Pages
FILE: /profile.php
locate:
$_page['header'] = process_line_output( $p_arr['NickName'] ) . ": ". htmlspecialchars_adv( $p_arr['Headline'] );
Change this to whatever you want. Look at profile table in database for
available values...after uploading of new profile.php clean the cache
and cache public folder.
In my case I changed this to:
$_page['header'] = process_line_output( $p_arr['full_name'] ) . ":International Business Profile";
"full_name" is a field I defined that has the member's full name,
but you could use the firstname or lastname fields, or whatever you
want.
Post Reply - if you going to help - No for - bla bla bla bla |
Thanks
Caltrade, ue30 & mdroca
thats a good mod
working 100%
|
Does this work with D7.0.3.?
ok here we go:)
brand every site with your domain or company name
edit the file:
inc/classes/BxDolTemplate.php
about line 675
find code:
case 'page_header': if(!empty($GLOBALS[$this->_sPrefix . 'PageTitle'])) $sRet = $GLOBALS[$this->_sPrefix . 'PageTitle']; else if(isset($_page['header'])) $sRet = $_page['header'];
$sRet = process_line_output($sRet); break;
and change to (change boonex.com to your domain or company name):
case 'page_header': if(!empty($GLOBALS[$this->_sPrefix . 'PageTitle'])) $sRet = $GLOBALS[$this->_sPrefix . 'PageTitle']; else if(isset($_page['header'])) $sRet = $_page['header'].' | boonex.com';
$sRet = process_line_output($sRet); break;
There are none so blind as those that will not see. |
I just tried it in 7.0.3. It works for the most part. Doesn't seem to work for Blogs Home, Articles Home, News Home , or Forum Home, as well as SOME of their sub items. Still, I think it's worth it for all the other pages.
I did the profile.php mod in 7.0.2 and that still works.
Does this work with D7.0.3.?
ok here we go:)
brand every site with your domain or company name
edit the file:
inc/classes/BxDolTemplate.php
about line 675
find code:
case 'page_header': if(!empty($GLOBALS[$this->_sPrefix . 'PageTitle'])) $sRet = $GLOBALS[$this->_sPrefix . 'PageTitle']; else if(isset($_page['header'])) $sRet = $_page['header'];
$sRet = process_line_output($sRet); break;
and change to (change boonex.com to your domain or company name):
case 'page_header': if(!empty($GLOBALS[$this->_sPrefix . 'PageTitle'])) $sRet = $GLOBALS[$this->_sPrefix . 'PageTitle']; else if(isset($_page['header'])) $sRet = $_page['header'].' | boonex.com';
$sRet = process_line_output($sRet); break;
Someday, Someway. |
Any one knows how to make this in the user photos page
like User| Album | photo title
Thanks
|
Any one knows how to make this in the user photos page
like User| Album | photo title
Thanks
no ?
|
Do i have to edit
modules/boonex/photos/classes/BxPhotosPageView.php
been searching but ith no succes ?
|
Do i have to edit
modules/boonex/photos/classes/BxPhotosPageView.php
been searching but ith no succes ?
noone?
|
|
How would you do
$_page['header'] = process_line_output( $p_arr['NickName'] ) . ": ". htmlspecialchars_adv( $p_arr['Headline'] ); "Domain Name" This way the domain name it always a part of the title...
|
How can i change this browser bar in the Photos of the users these features ?
i want to put there the city of the users
Anyone can help?
|
Just tried ue30's fix on 7.0.3 and there is no longer a reference to "boonex.com" so I guess that one doesn't work anymore. |
i use this in Profiles.php in 703 and it works
This is a very good post Caltrade. I use something similar but with more options: First Name+Last Name+Headline+City+Some Text. Here is:
$_page['header'] = process_line_output( $p_arr['FirstName'] ) . " ". htmlspecialchars_adv( $p_arr['LastName'] ) . ": ". htmlspecialchars_adv( $p_arr['Headline'] ) .". ". htmlspecialchars_adv( $p_arr['City'] ). ", Text you want ";
It will show as follow: 1º Name Las Name: Headline. City, Text you want
ue30
code is to work in the intire site
i did not try in 7.0.3
|
Just tried ue30's fix on 7.0.3 and there is no longer a reference to "boonex.com" so I guess that one doesn't work anymore.
It works. The actual line is 688 in Dreamweaver. The code added is .' | boonex.com' - and you should make boonex.com your domain name or business name, not use the boonex.com example he gave.
Verified 7.0.3
Syde
|
|
Here is another thing that I figured out for SEO. add this line right underneath the page header to add a custom description
$oSysTemplate->setPageDescription(process_line_output( $p_arr['DescriptionMe'] ));
This put in a page description custom meta description tag for each profile. For me I chose the profile descriptionme field because it was the most relevant.
|
would be fine if boonex could get a methode to manage those things in admin area!! http://www.boonex.com/market/posts/paansystems - your resource for Dolphin Pro |
Here is another thing that I figured out for SEO. add this line right underneath the page header to add a custom description
$oSysTemplate->setPageDescription(process_line_output( $p_arr['DescriptionMe'] ));
This put in a page description custom meta description tag for each profile. For me I chose the profile descriptionme field because it was the most relevant.
Where exactly to add this code?? in which file??
https://www.facebook.com/4thmolar |
Hey this is great stuff. I was just doing a search for SEO tactics here and found this. I am about to start launching my site and wondered if all this is compatable with the latest version of Dolphin 7.05 before I get into it to much? |
Hey this is great stuff. I was just doing a search for SEO tactics here and found this. I am about to start launching my site and wondered if all this is compatable with the latest version of Dolphin 7.05 before I get into it to much?
its working on 7.0.5
go ahead :)
https://www.facebook.com/4thmolar |
I was wondering if I do this and use the members name instead of nickname isn't it going to show in the url when a member looks at another members profile? I don't have members real names showing on my site. The other optoions for location and descriptions though are great stuff I'm working on now. |
Here is another thing that I figured out for SEO. add this line right underneath the page header to add a custom description
$oSysTemplate->setPageDescription(process_line_output( $p_arr['DescriptionMe'] ));
This put in a page description custom meta description tag for each profile. For me I chose the profile descriptionme field because it was the most relevant.
Can someone tell me where I can find this?
|
FILE: /profile.php
locate:
$_page['header'] = process_line_output( $p_arr['NickName'] ) . ": ". htmlspecialchars_adv( $p_arr['Headline'] );
Should be on line 92
Here is another thing that I figured out for SEO. add this line right underneath the page header to add a custom description
$oSysTemplate->setPageDescription(process_line_output( $p_arr['DescriptionMe'] ));
This put in a page description custom meta description tag for each profile. For me I chose the profile descriptionme field because it was the most relevant.
Can someone tell me where I can find this?
Diddy is not greedy and has time. Dolphin is cool and its not just mine :-) |
Thanks Didy. Got another question. Couldn't find this in 7.05. Is this still neccesary in 7.05? Couldnt find anything with boonex.com in the entire file
ok here we go:)
brand every site with your domain or company name
edit the file:
inc/classes/BxDolTemplate.php
about line 675
find code:
case 'page_header': if(!empty($GLOBALS[$this->_sPrefix . 'PageTitle'])) $sRet = $GLOBALS[$this->_sPrefix . 'PageTitle']; else if(isset($_page['header'])) $sRet = $_page['header'];
$sRet = process_line_output($sRet); break;
and change to (change boonex.com to your domain or company name):
case 'page_header': if(!empty($GLOBALS[$this->_sPrefix . 'PageTitle'])) $sRet = $GLOBALS[$this->_sPrefix . 'PageTitle']; else if(isset($_page['header'])) $sRet = $_page['header'].' | boonex.com';
$sRet = process_line_output($sRet); break;
|
this is a different file and not profile.php. This is inc/classes/BxDolTemplate.php cos it spread over almost the entire dolphin site and the other one is for member*s profile :-)
don't look for boonex.com. thats just a sample, look for this code at inc/classes/BxDolTemplate.php and add like is says where boonex.com stands the way you like which is good if its your domain name :
case 'page_header': if(!empty($GLOBALS[$this->_sPrefix . 'PageTitle'])) $sRet = $GLOBALS[$this->_sPrefix . 'PageTitle']; else if(isset($_page['header'])) $sRet = $_page['header'];
$sRet = process_line_output($sRet); break;
Thanks Didy. Got another question. Couldn't find this in 7.05. Is this still neccesary in 7.05? Couldnt find anything with boonex.com in the entire file
ok here we go:)
brand every site with your domain or company name
edit the file:
inc/classes/BxDolTemplate.php
about line 675
find code:
case 'page_header': if(!empty($GLOBALS[$this->_sPrefix . 'PageTitle'])) $sRet = $GLOBALS[$this->_sPrefix . 'PageTitle']; else if(isset($_page['header'])) $sRet = $_page['header'];
$sRet = process_line_output($sRet); break;
and change to (change boonex.com to your domain or company name):
case 'page_header': if(!empty($GLOBALS[$this->_sPrefix . 'PageTitle'])) $sRet = $GLOBALS[$this->_sPrefix . 'PageTitle']; else if(isset($_page['header'])) $sRet = $_page['header'].' | boonex.com';
$sRet = process_line_output($sRet); break;
Diddy is not greedy and has time. Dolphin is cool and its not just mine :-) |
OH. ok I got it now. Wow what a brain fart that was. Just one more question about it. The example shows a slash before it. Should I be putting that in?
'header'].' | boonex.com';
|
Great Job and thank you for this guys... this works great |
Thanks ue30, worked like a charm in 7.0.5. Just what I was looking for. Much appreciated. Now off to go add this to the list of core changes made.
Regards, Coolmoe
ok here we go:)
brand every site with your domain or company name
edit the file:
inc/classes/BxDolTemplate.php
about line 675
find code:
case 'page_header': if(!empty($GLOBALS[$this->_sPrefix . 'PageTitle'])) $sRet = $GLOBALS[$this->_sPrefix . 'PageTitle']; else if(isset($_page['header'])) $sRet = $_page['header'];
$sRet = process_line_output($sRet); break;
and change to (change boonex.com to your domain or company name):
case 'page_header': if(!empty($GLOBALS[$this->_sPrefix . 'PageTitle'])) $sRet = $GLOBALS[$this->_sPrefix . 'PageTitle']; else if(isset($_page['header'])) $sRet = $_page['header'].' | boonex.com';
$sRet = process_line_output($sRet); break;
|
ok here we go:)
brand every site with your domain or company name
edit the file:
inc/classes/BxDolTemplate.php
about line 675
find code:
case 'page_header': if(!empty($GLOBALS[$this->_sPrefix . 'PageTitle'])) $sRet = $GLOBALS[$this->_sPrefix . 'PageTitle']; else if(isset($_page['header'])) $sRet = $_page['header'];
$sRet = process_line_output($sRet); break;
and change to (change boonex.com to your domain or company name):
case 'page_header': if(!empty($GLOBALS[$this->_sPrefix . 'PageTitle'])) $sRet = $GLOBALS[$this->_sPrefix . 'PageTitle']; else if(isset($_page['header'])) $sRet = $_page['header'].' | boonex.com';
$sRet = process_line_output($sRet); break;
worked great. Thanks. The only thing is that the forum still shows orca forum. I assume that the same thing can be done with the forum page?
|
how can i add spaces between first middle and last names? |
|
I have changed it around 1 mouth before. I replaced it with full name and looks good. You are right it is good for better SEO. I am planing to optimize the description of profile page, i want it to display full name in description for every profile just like Facebook. Its very good for SEO.
example:-
Join Facebook to connect with Prashank Abhishek and others you may know. Facebook gives people the power to share and makes the world more open and ...
so much to do.... |
I realize this was my mod originally, but could anyone tell me what happens when a field is blank? I have use a field called "full_name" on one of my sites in place of the nickname field. But on this site, full name is optional as pseudonyms are allowed, so I also have the nickname field. What will happen with the users who keep the full_name field blank? |
If full_name i blank than there will be nothing as title and search engine maybe show null.
On my site full name is necessary.
so much to do.... |
I have jsut upgraded to 7.0.9 and lost this mod. If I upload the profile.php file that I had before the upgrade, the title works as it should : nickname- headline - city - site slogan, however I am not sure how that could impact other functionalities as the new profile.php file seems quite different from the previous one
If I simply add the modified portion
$_page['header'] = process_line_output( $p_arr['NickName'] ) . ": ". htmlspecialchars_adv( $p_arr['Headline'] ).". ". htmlspecialchars_adv( $p_arr['City'] ). " | Free Dating Site "; $oSysTemplate->setPageDescription(process_line_output( $p_arr['DescriptionMe'] ));
it won't display the upgraded title...
Any suggestions anybody?
THx
|
Does anybody know how to add better seo titles for articles?
I have jsut upgraded to 7.0.9 and lost this mod. If I upload the profile.php file that I had before the upgrade, the title works as it should : nickname- headline - city - site slogan, however I am not sure how that could impact other functionalities as the new profile.php file seems quite different from the previous one
If I simply add the modified portion
$_page['header'] = process_line_output( $p_arr['NickName'] ) . ": ". htmlspecialchars_adv( $p_arr['Headline'] ).". ". htmlspecialchars_adv( $p_arr['City'] ). " | Free Dating Site "; $oSysTemplate->setPageDescription(process_line_output( $p_arr['DescriptionMe'] ));
it won't display the upgraded title...
Any suggestions anybody?
THx
|
Can this still be done for SEO on Profiles? Vunderba..... Challenge Yourself to be the Best...... Hosting from Zarconia.net |
i never knew about any of this,, i am on 7.09 is it still possible? MY SITES http://viptopia.net general social networking | http://www.rangerschat.com/ niche site |
UE30's suggestion works well in 7.3
I am wondering about the profile, but wanted some experienced members to confirm.
If it's working now for the branding, I am sure it would work back then 3 yrs ago. most of my pages show my site name in the description tab of browser, Example would be the address bar says "www.xyz.com/browse.php" the tab says "browse profile/xyz.com"
I want to try the profile name city and text, instead of www.xyz.com/ nickname. It would be better to see
www.xyz.com/dick/dasterly/ yeah am bad/Cleveland/Social butterfly
Vunderba..... Challenge Yourself to be the Best...... Hosting from Zarconia.net |
In 7.1.4 I get a strange effect with the NickName or ['ID'] in1.4 and ['Heading'] becoming a jumbled mess.
The code I use is:
$_page['header'] = process_line_output(getNickName($p_arr['ID']))." " .(empty($p_arr['Headline']) ? '' : ": " . htmlspecialchars_adv($p_arr['Headline'])) ."| ". htmlspecialchars_adv( $p_arr['City'] ). ", My Text Here ";
Its supposed to look like (user: headline | city, text)
instead it's (strangecharacters}mix~edwith headline | city, text)
check picture:
|
Ok I fixed it:
If you run into this problem with 7.1+ just use the same code and replace the entire string. I made the mistake of trying to edit the 7.1.4 string, it only messed things up for me. ***note- I upgraded from 7.0.9 so things might be a little different for new sites.
THIS: $_page['header'] = process_line_output(getNickName($p_arr['ID'])) . (empty($p_arr['Headline']) ? '' : ": " . htmlspecialchars_adv($p_arr['Headline']));
Whith THIS: $_page['header'] = process_line_output( $p_arr['NickName'] ) . ": ". htmlspecialchars_adv( $p_arr['Headline'] ) .". ". htmlspecialchars_adv( $p_arr['City'] ). ", Your text ";
|
|