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.
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 |
To remove account from the breadcrumb menu edit the following file. https://www.deanbassett.com |
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 |
Hi, Thank you for the answer but isn't what i mean (sorry for my english). I want delete the word "Account".
This is 2 differentes question.
Thank you. /unity/forums/?action=goto&my_threads#topic/Video-is-being-processed-for-the-second-time.htm |
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 |
I am aware of that. https://www.deanbassett.com |
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. https://www.deanbassett.com |
Ohh sorry i have not unterstand. It work !
/unity/forums/?action=goto&my_threads#topic/Video-is-being-processed-for-the-second-time.htm |
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 |
Your kidding right? https://www.deanbassett.com |