Due to health issues support is very limited

file How to give access to JoomFish, but not include on menu bar?

More
8 years 3 months ago #7985 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?

Please Log in or Create an account to join the conversation.

More
8 years 3 months ago #7991 by carsten888
sorry. can not do that.

Please Log in or Create an account to join the conversation.

More
8 years 3 months ago #8006 by alexblock
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.

More
8 years 3 months ago - 8 years 3 months ago #8007 by carsten888
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
if($components[$c][3]==$pi_ua_config['dropdown_buttons'][$b][0]){
replace with
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)){
replace with
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.

More
8 years 3 months ago - 8 years 3 months ago #8010 by alexblock
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.

More
8 years 3 months ago #8011 by carsten888
you're right. I corrected the code. thanks.

Please Log in or Create an account to join the conversation.

Time to create page: 0.113 seconds
Powered by Kunena Forum
 
spicy-sacerdotal