First name and last name

On the browse.php page (and some other pages) I would like to add first name and last name of the members so they can be visible for visitors.

 

But I don't want those names in 1 line but each on a different line as shown in picture below.

 

 

I think this is in the BxDolMemberInfo.php page near line 64, but I can't figure out what to change.

 

When I add firstname and lastname now and make them visible on the page, they are all in 1 line.

 

Can somebody help me with this ?

 

 

 

Quote · 9 Dec 2014

There are also template files that you need to consider as well.  Just about everything you see is controlled by template files.  First, are you using a custom site template?

Geeks, making the world a better place
Quote · 9 Dec 2014

No I'm using the base template.

 

Thought it would just be a matter of re-arranging the code in BxDolMemberInfo.php Frown

Quote · 9 Dec 2014

It also needs a change in admin panel - advanced settings - profiles

There's only 2 options : member display name and member brief info.

For what I want it should have been 4 options

Quote · 10 Dec 2014

 

It also needs a change in admin panel - advanced settings - profiles

There's only 2 options : member display name and member brief info.

For what I want it should have been 4 options

Yes, AlexT said it could be done in a mod without modifying core codes.

However, you can do this by changing the core files for now and worry about a mod later.  I will give the answer to you; consider it a Winter Solstice Holiday gift.

There are two files you will need to modified.  One should not really modify the base template files but for now let's do it that way; later you can create a new template and do your modifications there.

You will need to open BxBaseSearchProfiles.php

find the following line:

'searchFields' => array('NickName', 'Headline', 'DescriptionMe', 'City', 'Tags'),

Change to:

'searchFields' => array('NickName', 'Headline', 'DescriptionMe', 'City', 'Tags', 'FirstName', 'LastName'),

 

Find:

        $sProfileZodiac = ($bExtMode && getParam('zodiac')) ? $GLOBALS['oFunctions']->getProfileZodiac($aProfileInfo['DateOfBirth']) : '';

Below add:

        $sProfileFirstName = $aProfileInfo['FirstName'];
        $sProfileLastName = $aProfileInfo['LastName'];

Now to add the keys for the template file:

Find:

            'nick' => $sProfileNickname,

below add:

            'firstname' => $sProfileFirstName,
            'lastname' => $sProfileLastName,           

 

Now all you need to do is to add the keys to the template file; search_profiles_ext.html and to the search_profile_sim.html as well if you want to change the simple view.

remember the keys are added using __key_name__ but you can see this when you edit the files.

Use a clean ASCII text editor when editing files.

Geeks, making the world a better place
Quote · 10 Dec 2014

geek_girl, indeed you make the world a better place Smile

 

Thanks a lot !

 

Quote · 10 Dec 2014

However, I made all the changes, but nothing shows up near the profile picture :-(

 

These are the changes I made in the search_profiles_ext.html


(I also tried   _first_name_   and  _last_name_)


Quote · 10 Dec 2014

Just found out that these changes show up in the browse.php page, not on the index.php page

 

Therefore I need to edit the simple view I guess. So let's give it another try :-)

Quote · 10 Dec 2014

 

Just found out that these changes show up in the browse.php page, not on the index.php page

 

Therefore I need to edit the simple view I guess. So let's give it another try :-)

 

Enjoy playing around you'll learned a lot annabel :)

"Your future is created by what you do today, not tomorrow." @ www.dexpertz.net
Quote · 10 Dec 2014

Expertzkris, in these 7 years I learned a lot indeed.

 

In the beginning it was frustration and I knew nothing about PHP. At this moment I can at least 'read' the script and I spent many hours searching in the forums and bothering people to ask questions to make changes.

 

By now, I almost know the script by heart and I understand what the geeks here are talking about Wink

Quote · 10 Dec 2014

 

Just found out that these changes show up in the browse.php page, not on the index.php page

 

Therefore I need to edit the simple view I guess. So let's give it another try :-)

Yes, that was the first post you made, in the browse.  there is a simple view and an extended view; two different templates.

Basically, when you are wanting to display data you have to retrieve the data and with the templates, you assigned that data to a key.  When the template parser arrives at a key, it will replace the key with the data.  If you see the key instead of the data, then you have not properly assigned it.  If you see nothing where a key is suppose to be displaying data, it is possible the data is blank.

Geeks, making the world a better place
Quote · 10 Dec 2014

Well, the key is there because it shows up in the browse page. Just can't figure out how to get it near the profile picture on the index page.

Quote · 11 Dec 2014
 
 
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.