-
AuthorPosts
-
February 9, 2017 at 5:42 am #1009249
Hi there I have a question about the Directory template. I’m am dealing with a 3rd party developer and they have asked me this —- We think the module is not controlled by the Joomla! default framework and it should be controlled by the template. Could you please ask the template vendor/developer about which files in the template load the modules on the site? We might need to patch their module files.
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
February 9, 2017 at 5:55 am #1009253Hi
can you let me know which module you are talking?
The template has some override for module for design purpose, that you can find in the /html folder of the template.Regards
February 9, 2017 at 6:27 am #1009262Hi there thanks for your reply. It’s the JA CUSTOM MODULE.
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
February 9, 2017 at 6:33 am #1009267Hi
If you are talking about the JA ACM Module, you can find them in the template /acm folder.
RegardsFebruary 9, 2017 at 1:14 pm #1009310Thanks for your reply. My developer has sent me the following –
We mean the file in the template which runs the script to load the module on the site. It should be in the /template folder but we cannot locate it.
Can you advise ??
Many thanks for your assistance
Regards
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
February 10, 2017 at 2:19 am #1009383Hi
Its in the same folder Open /html/modules.php file.
Rest all the files and features from Joomla and Framework.Regards
February 10, 2017 at 6:19 am #1009433Hi there thanks for your continued assistance.
My developer has said the following. We are trying to hide the MODULE to certain members and load the MODULE from the DB
Hopefully u can assist
We are sorry but we cannot find the related codes in that file.
We will try to make it more detailed,
Is there some file like the Joomla file:
libraries/cms/module/helper.phpprotected static function &load()
{
static $clean;if (isset($clean))
{
return $clean;
}$app = JFactory::getApplication();
$Itemid = $app->input->getInt(‘Itemid’);
$user = JFactory::getUser();
$groups = implode(‘,’, $user->getAuthorisedViewLevels());
$lang = JFactory::getLanguage()->getTag();
$clientId = (int) $app->getClientId();$db = JFactory::getDbo();
$query = $db->getQuery(true)
->select(‘m.id, m.title, m.module, m.position, m.content, m.showtitle, m.params, mm.menuid’)
->from(‘#modules AS m’)
->join(‘LEFT’, ‘#modules_menu AS mm ON mm.moduleid = m.id’)
->where(‘m.published = 1’)->join(‘LEFT’, ‘#__extensions AS e ON e.element = m.module AND e.client_id = m.client_id’)
->where(‘e.enabled = 1’);$date = JFactory::getDate();
$now = $date->toSql();
$nullDate = $db->getNullDate();
$query->where(‘(m.publish_up = ‘ . $db->quote($nullDate) . ‘ OR m.publish_up <= ‘ . $db->quote($now) . ‘)’)
->where(‘(m.publish_down = ‘ . $db->quote($nullDate) . ‘ OR m.publish_down >= ‘ . $db->quote($now) . ‘)’)->where(‘m.access IN (‘ . $groups . ‘)’)
->where(‘m.client_id = ‘ . $clientId)
->where(‘(mm.menuid = ‘ . (int) $Itemid . ‘ OR mm.menuid <= 0)’);// Filter by language
if ($app->isSite() && $app->getLanguageFilter())
{
$query->where(‘m.language IN (‘ . $db->quote($lang) . ‘,’ . $db->quote(‘*’) . ‘)’);
}It’s to load the module from the DB.
Our purpose is to hide the specific modules on the site pages.
Thanks very much.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 10, 2017 at 7:49 am #1009444Hi there,
Basically, you can control where the module appears on your site via the ACL or menu assignment section.
- ACL: you can decide which users can view the module
- Menu assignment: which page the module will display
Or you can provide the login info of your site and clarify which module you’re working on and how you want it should be so I will take a look.
Regards
February 10, 2017 at 3:14 pm #1009579Hi there –
I am actually installing a 3rd party component (ose-membership) where there is the facility for module, menus, articles, components etc to appear for some paid memberships of the site and not for other paid membership.
The JA ACM Module doesnt work like normal modules where it can be on the site but hidden for some site members of the component.
e.g membership A – can see the module membership B – module to be hidden
Is this something you can help with for my developer as per previous post?
I have given you access to the admin of the site – we are trying to work on modue ID 149 to hide this to a section of the membership.
Kind regards
February 13, 2017 at 6:03 am #1009954Hi there any further help you can give me in this query?
Regards
Kenneth thorkildsen
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 13, 2017 at 10:48 am #1010029Hi Kenneth,
I’ve not used this component before. Could you check the admin login info again so I will take a look? and clarify the member and module you want to hide for that member.
Regards
February 13, 2017 at 11:02 am #1010037Hi there , yes the admin details are correct. The MODULE is number 149 the ja acm MODULE and this is to be hidden to all members.
The developer at the component is dealing with it and has asked for some details as per my previous info.
Regards
Kenneth Thorkildsen
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 14, 2017 at 6:56 am #1010382It’s weird. I checked with other PCs from my colleagues but still can’t access backend of your site, could you check again?
February 14, 2017 at 5:06 pm #1010644Hi there I’ve just reset the password so it should be working. Can you recheck.
Many thanks
Kenneth Thorkildsen
-
AuthorPosts
This topic contains 27 replies, has 3 voices, and was last updated by Saguaros 7 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum