Viewing 15 posts - 1 through 15 (of 28 total)
  • Author
    Posts
  • ajarnken Friend
    #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 Moderator
    #1009253

    Hi
    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

    ajarnken Friend
    #1009262

    Hi there thanks for your reply. It’s the JA CUSTOM MODULE.

    Pankaj Sharma Moderator
    #1009267

    Hi
    If you are talking about the JA ACM Module, you can find them in the template /acm folder.
    Regards

    ajarnken Friend
    #1009310

    Thanks 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 Moderator
    #1009383

    Hi
    Its in the same folder Open /html/modules.php file.
    Rest all the files and features from Joomla and Framework.

    Regards

    ajarnken Friend
    #1009433

    Hi 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.php

    protected 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 Moderator
    #1009444

    Hi 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

    ajarnken Friend
    #1009579

    Hi 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

    ajarnken Friend
    #1009954

    Hi there any further help you can give me in this query?

    Regards

    Kenneth thorkildsen

    Saguaros Moderator
    #1010029

    Hi 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

    ajarnken Friend
    #1010037

    Hi 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 Moderator
    #1010382

    It’s weird. I checked with other PCs from my colleagues but still can’t access backend of your site, could you check again?

    ajarnken Friend
    #1010644

    Hi there I’ve just reset the password so it should be working. Can you recheck.

    Many thanks

    Kenneth Thorkildsen

    Saguaros Moderator
    #1010798
    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 28 total)

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