...THE PROFILE ICON ON MAIN MENU. SORRY...I PRESSED SUBMIT BEFORE FINISHING MY TOPIC SUBJECT
I'm trying to replace the male-figurine image/icon for the "Profile" main menu option. You know, the once next to the 'Dashboard' image/icon. I've able to remove the icon for Home, Dashboard, and Mail and replaced them with 'Home', 'Account', and 'Mail' words instead. I did so by going to Administration->Builders->Navigation Menu and edited the top system menu items for each respectively. I removed the listed icon .png file and it subsequently took/displayed the Default name on the main menu bar of the site instead icon image itself.
However, I'm having the hardest time to do the same with the last image/icon for the 'Profile' menu option. First of all, the menu settings were not editable...till I figured out how to make it editable by going to the database and changing the Editable setting from 0 to 1. I've also removed the icon user.png file from the icon setting. In doing so, the Default setting of "{memberNick}" shows up on the menu bar of my site. I tried changing it to "Profile"...no success with that or any other efforts.
<b>DOES ANYONE KNOW HOW TO GET RID OF THE USER.PNG ICON/IMAGE FOR THE PROFILE MAIN MENU OPTION...and replace it with a text like "Profile" without ruining the subsequent name of the profile on the home profile page.?</b>
Thanks
|
That procedure should have worked.
Go back to the menu builder, edit the entry for My Profile. Remove the icon, set Language key to _Profile and default name to Profile
Save and check again. I tested this on my site and it works fine. If not try clearing the contents to the cache folder on the server. https://www.deanbassett.com |
That procedure should have worked.
Go back to the menu builder, edit the entry for My Profile. Remove the icon, set Language key to _Profile and default name to Profile
Save and check again. I tested this on my site and it works fine. If not try clearing the contents to the cache folder on the server.
Deano...yes I've done all of that and have been able to change the name of the main menu item from the 'icon/image' to 'Profile.' However, you may not have noticed that the subsequent member nick associated with this newly changed main menu link (when you click on 'Profile') is not your nick (the whoever is logged on), but it has 'Profile' as the member. In other words, since the {memberNick} was removed from the Default field, it uses whatever is there ('Profile'). I need it to display the actual name of the member (the member's nick) instead.
|
It worked fine on my test. The menu said Profile, but the link was to the actual members profile as it should be. So i do not understand what the problem is.
You did not modify the link did you?
Or are you saying you need the menu name to read as the members nick name instead of the word profile.
Screen shots to help paint a picture would be nice so i have a better understanding of exactly what you want.
But if your actually looking to have the members nickname as the menu item then your out of luck. That is a bug in dolphin. It's not properly handling the {memberNick} when in the Language Key field. https://www.deanbassett.com |
It worked fine on my test. The menu said Profile, but the link was to the actual members profile as it should be. So i do not understand what the problem is.
You did not modify the link did you?
Or are you saying you need the menu name to read as the members nick name instead of the word profile.
Screen shots to help paint a picture would be nice so i have a better understanding of exactly what you want.
But if your actually looking to have the members nickname as the menu item then your out of luck. That is a bug in dolphin. It's not properly handling the {memberNick} when in the Language Key field.
Deano. I've attached two print screens of the problem I'm having. Picture #1 shows how I've edited and saved the menu item in my administration area. This change is properly reflected in the menu bar as seen in Picture #2. However, I've circled in yellow the problem. Although I'm logged int as Admin, it doesn't have 'Admin' as the name of the member as it used to, but instead has 'Profile.'
I have a clean, fresh install of 7.0.1 (I did not upgrade or anything).
If you can help, thanks!
Picture #1
Picture #2
|
Ok. I get it now. I'll see what i can figure out. Either the bug using {memberNick} in the Languge Key field needs to be fixed, or a way to change the Page heading on the profile page needs to be modified to get the nickname directly.
I'll see if i can come up with a solution.
https://www.deanbassett.com |
Ok. I get it now. I'll see what i can figure out. Either the bug using {memberNick} in the Languge Key field needs to be fixed, or a way to change the Page heading on the profile page needs to be modified to get the nickname directly.
I'll see if i can come up with a solution.
Deano...any word yet? I know your busy...but a just a word.
|
I have not located exactly where this is processed yet.
https://www.deanbassett.com |
I found a solution to one problem. Which is the bug where dolphin is not processing the {memberNick} meta in the Caption field(Language Key)
To fix that do the following.
Open templates\base\scripts\BxBaseMenu.php
At about line 172 look for the following and add the line in green.
function genTopItems() { $iCounter = 0; foreach( $this->aTopMenu as $iItemID => $aItem ) { if( $aItem['Type'] != 'top' ) continue; if( !$this->checkToShow( $aItem ) ) continue; if ($aItem['Caption'] == "{profileNick}" && $this->aMenuInfo['profileNick']=='') continue;
$bActive = ( $iItemID == $this->aMenuInfo['currentTop'] );
if ($bActive && $iCounter >= $this->iElementsCntInLine) { $this->iJumpedMenuID = $iItemID; break; } $iCounter++; }
$iCounter = 0; foreach( $this->aTopMenu as $iItemID => $aItem ) { if( $aItem['Type'] != 'top' ) continue;
if( !$this->checkToShow( $aItem ) ) continue;
//generate list( $aItem['Link'] ) = explode( '|', $aItem['Link'] );
$aItem['Link'] = $this->replaceMetas( $aItem['Link'] ); $aItem['Onclick'] = $this->replaceMetas( $aItem['Onclick'] ); $aItem['Caption'] = $this->replaceMetas( $aItem['Caption'] );
Save that change.
Then edit the menu item and remove the icon and leave the rest as default.
What this does is correct the meta processing so the members nickname shows up as the menu item instead of the icon. This most likely is not what your want. But it's the best i can do for now. https://www.deanbassett.com |
DEANO...THANKS MUCH FOR THE WORK. MUCH APPRECIATED!
Hope this gets submitted to Boonex for a permanent fix.
|
hi
one more thing should be added
it is in the rang of line number 219 in file names /public_html/boonex_dolphin/templates/base/scriptsBxBaseMenu.php
//Draw jumped element
if ($this->iJumpedMenuID>0 && $this->iElementsCntInLine == $iCounter) {
$aItemJmp = $this->aTopMenu[$this->iJumpedMenuID];
list( $aItemJmp['Link'] ) = explode( '|', $aItemJmp['Link'] );
$aItemJmp['Link'] = $this->replaceMetas( $aItemJmp['Link'] );
$aItemJmp['Onclick'] = $this->replaceMetas( $aItemJmp['Onclick'] );
$aItemJmp['Caption'] = $this->replaceMetas( $aItemJmp['Caption'] ); //by nanee
|
hi there, I have similar issue .
I did what was suggested at end and added line but still I see {MemberNick}
See my site in template Gigg template only..this issue though..
Other template fine..my site http://indiag.com/tech&skin=biggi
|