Due to health issues support is very limited
- Forum
- Deprecated old stuff
- Admin-User-Access
- How to give access to JoomFish, but not include on menu bar?
How to give access to JoomFish, but not include on menu bar?
- alexblock
- Offline
Less
More
- Posts: 10
8 years 3 months ago #7985
by alexblock
How to give access to JoomFish, but not include on menu bar? was created by alexblock
I need to give users access to JoomFish in Joomla 1.5 -- that is easy to do with AUA.
What I do need though is to not show the JoomFish component on the Joomla toolbar.
Users will be able to select content to translate because they will have access to the built-in plugin that presents a language selection box on the Joomla status bar at top right.
But, I don't want to give users full access to JoomFish via the AUA menu bar.
Any suggestions how I can accomplish this?
What I do need though is to not show the JoomFish component on the Joomla toolbar.
Users will be able to select content to translate because they will have access to the built-in plugin that presents a language selection box on the Joomla status bar at top right.
But, I don't want to give users full access to JoomFish via the AUA menu bar.
Any suggestions how I can accomplish this?
Please Log in or Create an account to join the conversation.
- carsten888
- Offline
Less
More
- Posts: 4784
8 years 3 months ago #7991
by carsten888
Replied by carsten888 on topic Re: How to give access to JoomFish, but not include on menu bar?
sorry. can not do that.
Please Log in or Create an account to join the conversation.
- alexblock
- Offline
Less
More
- Posts: 10
8 years 3 months ago #8006
by alexblock
Replied by alexblock on topic Re: How to give access to JoomFish, but not include on menu bar?
Any way to create a custom version of the component that would allow this (ie: a special case handler for JoomFish)?
Please Log in or Create an account to join the conversation.
- carsten888
- Offline
Less
More
- Posts: 4784
8 years 3 months ago - 8 years 3 months ago #8007
by carsten888
Replied by carsten888 on topic Re: How to give access to JoomFish, but not include on menu bar?
You can hack the backend module.
file:
administrator/modules/mod_admin_user_access_backend2.php
if this is a menu item in a dropdown, line 917
replace with
if this is a menu item not in a dropdown, line 941replace with
Asuming in the above code that com_joomfish is the value of the option-variable in the url when you go to the admin > joomfish. If that variable is different, change it to that in the code.
file:
administrator/modules/mod_admin_user_access_backend2.php
if this is a menu item in a dropdown, line 917
if($components[$c][3]==$pi_ua_config['dropdown_buttons'][$b][0]){
if(($components[$c][3]==$pi_ua_config['dropdown_buttons'][$b][0]) && ($components[$c][2]!='com_joomfish')){
if this is a menu item not in a dropdown, line 941
if(!in_array($component[2], $displayed_links_array)){
if((!in_array($component[2], $displayed_links_array)) && ($components[2]!='com_joomfish')){
Asuming in the above code that com_joomfish is the value of the option-variable in the url when you go to the admin > joomfish. If that variable is different, change it to that in the code.
Last edit: 8 years 3 months ago by carsten888.
Please Log in or Create an account to join the conversation.
- alexblock
- Offline
Less
More
- Posts: 10
8 years 3 months ago - 8 years 3 months ago #8010
by alexblock
Replied by alexblock on topic Re: How to give access to JoomFish, but not include on menu bar?
Thanks, I tried the 2nd code option as it meets my needs, and it works, but for both code replacments, the additional condition should be:
&& ($component[2]!='com_joomfish'))
Last edit: 8 years 3 months ago by alexblock.
Please Log in or Create an account to join the conversation.
- carsten888
- Offline
Less
More
- Posts: 4784
8 years 3 months ago #8011
by carsten888
Replied by carsten888 on topic Re: How to give access to JoomFish, but not include on menu bar?
you're right. I corrected the code. thanks.
Please Log in or Create an account to join the conversation.
- Forum
- Deprecated old stuff
- Admin-User-Access
- How to give access to JoomFish, but not include on menu bar?
Time to create page: 0.113 seconds