Page title when viewing profiles

Hi,

I want to know how to change the page title when you view someones profile.

At the moment it says:


Members username

I want to change it to:

mysite.com- members username

Does anyone know how to do this?

Thank

Quote · 31 Jul 2009

nice post i want to ask this 2 but u got it first i wat member to create they own link

example this is the origal from u domain and the board : http://mydomain.com/profile.php?ID=1

i want the member to have the same name they use to sign in example : http://latincrib.net/UFO360

thank's for posting this now we have to wait for some one to help

Post Reply - if you going to help - No for - bla bla bla bla
Quote · 31 Jul 2009

Changing page titles... Hmmm... Let's see here... How do we want to do this?

 

Well we could get our crayons out and write on the screens.. But that won't work for everyone to see... Waxy build up...

 

Nah... Not a kewl idea in the end.. Well, it would work for my 3 year old, she loves her crayons...

 

Okay, how about this way...

 

Locate the corresponding php file, in this instance we'll use index.php and locate the following section:

 

$_page['name_index']  = 1;
$_page['header']   = $site['title'];
$_page['header_text']  = $site['title'];

 

Just change the title & header so it's like this:

 

$_ni = $_page['name_index'];
$_page['header'] = _t( "_Home Page" );
$_page['header_text'] = _t( "_Home Page" );

 

Now just create a language key for it to say whatever you want it to say. 

 

Moving on... if your on a pagename.php file in root that doesn't have the above code, then do this:

 

Find:

 

require_once( 'inc/header.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
 
// --------------- page variables and login
$_page['name_index'] = 0;
$_page['css_name']  = 'page_name.css';

 

Just below it place:

 

$_page['header'] = _t( "_Page Header" );
$_page['header_text'] = _t( "_Page Title" );

 

Create Language keys for the corresponding _Page Header & _Page title (whatever you name them there)

 

Enjoy

 

 

Quote · 31 Jul 2009

Mydaterys suggestion will work on pages with a static title.

The profile page generates a dynamic title based on the logged in member.

You can change this in profile.php.


This will be different depending on what version of dolphin your running.

You will find one of 2 lines at about line 87 or so.


$_page['header']      = process_line_output( $p_arr['NickName'] ) . ": ". htmlspecialchars_adv( $p_arr['Headline'] );

That one is in newer dolphin versions.

$_page['header_text'] = process_line_output( $p_arr['Headline'] );

And that one is in older dolphin versions.


You want to change it to read as follows.

Use this for title and member name only.

$_page['header'] = "{$site['title']} - " . process_line_output( $p_arr['NickName'] );

Or use this one to display Site title, member name and members headline text.

$_page['header'] = "{$site['title']} - " . process_line_output( $p_arr['NickName'] ) . ": ". htmlspecialchars_adv( $p_arr['Headline'] );


Piece of cake.



https://www.deanbassett.com
Quote · 31 Jul 2009

To UFO360.

Your site would display the link with the member name instead of profile.php?ID=1 if you had the sites permalinks enabled.

Turn them back on and it will use nickname instead of ID.


That is of course assuming you did not shut them off because with them on you were getting 404 page cannot be displayed errors.

Also if you can, could you take a little more time choosing your english words a bit more carefully. I barely understood what you were trying to say.

https://www.deanbassett.com
Quote · 31 Jul 2009

Hello guys sorry but is nat working for me and sorry for my bad english u know i am spanish and learning how to writhe english and get my spell better ok

this is code from the profile.php

line 87 to 90

$_page['header'] = "{$site['title']} - " . process_line_output( $p_arr['NickName'] ) . ": ". htmlspecialchars_adv( $p_arr['Headline'] );
//$_page['header_text'] = process_line_output( $p_arr['Headline'] );

// track profile views
if ( $track_profile_view && $memberID && !$oProfile -> owner )

nat working i try to enable the link and is nat working 2 and for mydetary i try to find my pagename.php file but i dont have it on my root

Post Reply - if you going to help - No for - bla bla bla bla
Quote · 1 Aug 2009

Should I?  Should I really entertain this?

 

Okay, I want you to do this.  Take your site and login, then go to a profile, does not matter what profile it is, just pick one:

 

Okay, are you there?

 

Good, I'm glad to see your keeping up.

 

Now, I want you to do something really cool:

 

Go to your_site.com/UFO360

 

Did you?  Great, you see the URL then is whatever your site's url is with a /screenname if you have friendly permalinks enabled.

 

Now, go to another page on your site, doesn't matter what the page is, do you see the url that appears in the window?

 

Good.

 

If it's the home page then it says:  yoursite.com/index.php

 

If it's your FAQ page then it says:  yoursite.com/faq.php

 

If it's your My Mail that you clicked then it says:  yoursite.com/mail.php

 

Can you possibly figure out what yoursite.com/pagename.php stands for now?  It was a way of saying, whatever page you would like to alter the title on, please look in your Dolphin's root directory and find the file that has the same name as that page.

 

for instance, yoursite.com/index.php would be controlled by the index.php file.

 

yoursite.com/faq.php is controlled by the faq.php file

 

yoursite.com/mail.php is controlled by the mail.php file

 

yoursite.com/search.php is controlled by the search.php file

 

The profiles that your looking at are controlled by the profile_view.php file.

Quote · 1 Aug 2009

Hey = Ok

when i put the permalinks enabled and i goo to any member profile is taking me here : http://www.fastbrowsersearch.com/results/results.aspx?q=http://latincrib.net/latincrib&c=web&s=FDNS&v=4&tid={520A604E-F5CE-9B7D-5098-64C87DE8161B}

and them i see my profile link on the : http://www.fastbrowsersearch.com search box : http://latincrib.net/latincrib

when the permanlinks is disable is taking me here  : http://latincrib.net/profile.php?ID=1

Post Reply - if you going to help - No for - bla bla bla bla
Quote · 1 Aug 2009

Ok. So you have a problem. Most likely your permalinks are not working. But instead of a normal 404 page not found error your being redirected to fastbrowsersearch.

fastbrowsersearch is a spyware product. It's a browser helper object. It's catching all your 404 errors and redirecting you.

You need to clean up the spyware from your computer first.

Malwarebytes' Anti-Malware is good for getting rid of Malware/Spyware.

You can get it here.

http://www.malwarebytes.org/mbam.php



Now to get permalinks working correctly, make sure your root dolphin folder contains a file called .htaccess

If it is missing, upload it again from the origional dolphin zip file.

If they still don't work, make sure the server your hosting the site on has mod_rewrite enabled. Contact your host for help there.

https://www.deanbassett.com
Quote · 1 Aug 2009

Waooo i try everthing but is nat working

i think maybe this is the problem i go to my Builders/Navigation Menu Builders

than i click the menu say View Profile and i have this settings

System Name : View Profile

Language Key : _View Profile

Default Name : view profile

URL : {profileLink}|{profileNick}|profile.php?ID={profileID}

Target Windo : same

Visible for : Member

wat u think guys sorry for talking all your time but this is getting me crazy lol

Post Reply - if you going to help - No for - bla bla bla bla
Quote · 1 Aug 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.