SOLVED: show name on profile + profile link

16 years 5 months ago #48382 by amanzella
Replied by amanzella on topic Re:show name on profile
What version is this for? I added all the code you provided and the profile page just comes up blank.

Additionally, there is nowhere in the comprofiler.html.php that I can find to change the display icons. The lines you reference don't exist.

Please Log in to join the conversation.

16 years 1 month ago #58554 by hockmant
Replied by hockmant on topic Re:show name on profile
Here is what I did to show the first and last name.
[code:1]
//This sections adds the Show or Hide option in the User Status Tab manager
//Changes to cb.menu.xml
//In the <tab name="_UE_USER_STATUS" section add the below

<param name="firstname" type="radio" default="1" label="_UE_YOUR_FNAME" description="">
<option value="0">Hide</option>
<option value="1">Show</option>
</param>
<param name="lastname" type="radio" default="1" label="_UE_YOUR_LNAME" description="">
<option value="0">Hide</option>
<option value="1">Show</option>
</param>


//This sections shows the F and L names in the profile page if the show option is selected
//Changes to cb.menu.php
//Add the below lines below //
User Status items for User Status Window:

if ($params->get('firstname', '1')==1) {
$mi = array(); $mi["_UE_MENU_STATUS"]["_UE_YOUR_FNAME"]["_UE_YOUR_FNAME"]=null;
$this->_addMenuItem( $mi, $user->firstname,"", "",
"","", _UE_YOUR_FNAME_DESC,"" );
}
if ($params->get('lastname', '1')==1) {
$mi = array(); $mi["_UE_MENU_STATUS"]["_UE_YOUR_LNAME"]["_UE_YOUR_LNAME"]=null;
$this->_addMenuItem( $mi, $user->lastname,"", "",
"","", _UE_YOUR_LNAME_DESC,"" );
}


//This sections changes the is not displayed icon to displayed.
//Changes to cb.core.php
//Find SWITCH($ueConfig)
//For each _UE_YOUR_*NAME change the getFieldIcons*=1 instead of 3

echo getFieldIcons(1,true,($ueConfig!=1));
[/code:1]

Hawk

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.238 seconds

Facebook Twitter LinkedIn