Delete the word "Account"

Hi,

 

I want delete the word account : http://www.zimagez.com/zimage/edededed.php

 

and when i login i want redirect on index.php and no on member.php.

 

Do you unterstand my question?

 

Thanks.

/unity/forums/?action=goto&my_threads#topic/Video-is-being-processed-for-the-second-time.htm
Quote · 2 Nov 2010

To remove account from the breadcrumb menu edit the following file.

templates/base/scripts/BxBaseMenu.php

Look for this at the end of the file. And comment out the line marked in red as shown.

//--- Get additional links(right side) ---//
$sAddons = "";
if(isMember()) {
$aProfile = getProfileInfo();           

$sAddons = _t('_Hello member', $aProfile['NickName']);
//$sAddons .= ' <a href="' . $this->sSiteUrl . 'member.php">' . _t('_sys_breadcrumb_account') . '</a>';
$sAddons .= ' <a href="' . $this->sSiteUrl . 'logout.php">' . _t('_sys_breadcrumb_logout') . '</a>';
}
else {
$sAddons = _t('_Hello member', _t('_sys_breadcrumb_guest'));
$sAddons .= ' <a href="' . $this->sSiteUrl . 'join.php">' . _t('_sys_breadcrumb_join') . '</a>';
$sAddons .= ' <a href="javascript:void(0)" onclick="showPopupLoginForm(); return false;">' . _t('_sys_breadcrumb_login') . '</a>';
}

return '<div class="breadcrumb"><div class="bc_open">&nbsp;</div>' . $sPathLinks . '<div class="bc_addons">' . $sAddons . '</div><div class="bc_close">&nbsp;</div></div>';



As for the redirect to index.php after logon. Just install this mod from the market. http://www.boonex.com/unity/extensions/entry/Redirect_to_any_page_after_logon_

Then you can redirect to any page you want after logon via a setting in admin.

https://www.deanbassett.com
Quote · 2 Nov 2010

Out of curiosity, is there a more "correct" way to make the menu mod you just suggested?  7.0.4 is about to come out, at least the beta version, and a change like this would have to be re-done for each beta and finally the release.

What I'm wondering is if there's a way to extend the class and excise the unwanted link, e.g.

class myBxBaseMenu extends BxBaseMenu {

function genBreadcrumb($aPath = array()) {

$x = parent::genBreadcrumb($aPath);

return preg_replace('{<a href=.*?' . _t('_sys_breadcrumb_account') . '</a>', '', $x); // regex might not be right, but close

}

} // class

As long as there's a way to instantiate my custom subclass, then upgrades should work seamlessly.  At least that's the theory!  Thoughts?

 

Sorry about the funky font colors -- I'm trying to figure out a way to format the code in this Forum, it's surprisingly difficult.

Tac

Quote · 2 Nov 2010

Hi, Thank you for the answer but isn't what i mean (sorry for my english). I want delete the word "Account".


And i want that when i log in my website that i redirected on index.php (not member.php).

 

This is 2 differentes question.

 

Thank you.

/unity/forums/?action=goto&my_threads#topic/Video-is-being-processed-for-the-second-time.htm
Quote · 2 Nov 2010

Deano's solution does that (deleted the word Account, and the <a> tag that surrounds it.  My proposed solution would also do that, although it is harder to implement, but in theory is easier to maintain, since you're not actually modifying the base classes.  BTW, it's not really the word "Account", that's only true if the site language is English.  Subtle difference, it's really the link that goes to the member.php page that you're asking to delete.

Tac

Quote · 2 Nov 2010

I am aware of that.

The first mod i posted removes the word account. Account in the photo your provided is in what is called the breadcrumb menu. So i did answer that, and i answered it accurately. I even tested it to make sure it was removed exactly as shown in your photo.

The second one i pointed you to a mod in the market which will accomplish the redirect to index.php on logon.

So i did answer both your questions.

https://www.deanbassett.com
Quote · 2 Nov 2010

 

Out of curiosity, is there a more "correct" way to make the menu mod you just suggested?  7.0.4 is about to come out, at least the beta version, and a change like this would have to be re-done for each beta and finally the release.

What I'm wondering is if there's a way to extend the class and excise the unwanted link, e.g.

class myBxBaseMenu extends BxBaseMenu {

function genBreadcrumb($aPath = array()) {

$x = parent::genBreadcrumb($aPath);

return preg_replace('{<a href=.*?' . _t('_sys_breadcrumb_account') . '</a>', '', $x); // regex might not be right, but close

}

} // class

As long as there's a way to instantiate my custom subclass, then upgrades should work seamlessly.  At least that's the theory!  Thoughts?

 

Sorry about the funky font colors -- I'm trying to figure out a way to format the code in this Forum, it's surprisingly difficult.

Tac

Yes. It's easy if you have a custom template. Just copy the genBreadcrumb function into the custom templates BxTemplMenu.php in the scripts folder.

If your running the uni template, then you can make a copy of it, with a different name and put your change there. That way if the uni template is updated it will not affect your custom template.

This is of course assuming the next dolphin update does not change the breadcrumb menu requiring an update to that function.


https://www.deanbassett.com
Quote · 2 Nov 2010

Ohh sorry i have not unterstand. It work !


Thank you very much all :)))

/unity/forums/?action=goto&my_threads#topic/Video-is-being-processed-for-the-second-time.htm
Quote · 2 Nov 2010

Can you point me to instructions on how to create / modify / extend a template?  An overview of the whole template system, with events and such?

Thx,

Tac

Quote · 2 Nov 2010

Your kidding right?

Dolphin is very poorly documented. Always has been.

http://www.boonex.com/trac/dolphin/wiki/DolDesign

The above link is pretty much all there is on templates. It does not cover much other than how to create a copy of the UNI template.

All docs for dolphin, what little there is is found in trac. Just click support from the top boonex.com menu. What litte is available is there.



https://www.deanbassett.com
Quote · 2 Nov 2010
 
 
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.