پارس جوم :: انجمن های تخصصی جوملا

نسخه‌ی کامل: حذف آیکن های اضافی مدیریت جوملا
شما در حال مشاهده‌ی نسخه‌ی متنی این صفحه می‌باشید. مشاهده‌ی نسخه‌ی کامل با قالب بندی مناسب.
سلام
من می خواستم جوملا 2.5 رو برای یه شرکتی نصب کنم ولی گزینه های اضافه و بدرد نخور برای اون ها زیاد داره مثل آیکن های قالب زبان راهنما و از این موارد!
چطور میشه اون ها رو پاک کرد؟
درود بر شما
هیچ چیزی به درد نخور نیست، اما می توانید برای حذف دکمه راهنما از مدیریت جوملا باید به این شیوه عمل کنید
این فایل را ویرایش کنید administrator/includes/toolbar.php
و این کد
کد:
    function help($ref, $com = false)
    {
        $bar = & JToolBar::getInstance('toolbar');
        // Add a help button
        $bar->appendButton( 'Help', $ref, $com );
    }
را با این کد جاگیزین و سپس ذخیره نمایید
کد:
    function help($ref, $com = false)
    {
        $bar = & JToolBar::getInstance('toolbar');
        // Add a help button
        //$bar->appendButton( 'Help', $ref, $com );
    }

و برای حذف منو راهنما باید فایل helper.php در مسیر administrator/modules/mod_menu/ را ویرایش کنید و کد زیر را حذف کنید
کد:
    $menu->addChild(new JMenuNode(JText::_('Help')), true);
        $menu->addChild(new JMenuNode(JText::_('Joomla! Help'), 'index.php?option=com_admin&task=help', 'class:help'));
        $menu->addChild(new JMenuNode(JText::_('System Info'), 'index.php?option=com_admin&task=sysinfo', 'class:info'));

        $menu->getParent();

شاد باشید و شادی بخش دیگران
این فایل را ویرایش کنید administrator/includes/toolbar.php

سلام چنین فایلی در این مسیر وجود نداره
چطور چنین چیزی وجود نداره این فایل مربوط به تولبار جوملاست و ابزار ها رو در بخش مدیریت سایت نمایش میده با جوملا 2.5 که صد در صد همین فایل در همین مسیر رو باید ویرایش کنید
جوملا 1.5 رو فعلا نصب ندارم ولی حتما فایل مشابهی باید باشه
(۱۶-۲-۱۳۹۲ ۰۷:۵۱ عصر)mahan نوشته شده توسط: دیدن لینک ها برای شما امکان پذیر نیست. لطفا ثبت نام کنید یا وارد حساب خود شوید تا بتوانید لینک ها را ببینید.
و برای حذف منو راهنما باید فایل helper.php در مسیر administrator/modules/mod_menu/ را ویرایش کنید و کد زیر را حذف کنید
کد:
    $menu->addChild(new JMenuNode(JText::_('Help')), true);
        $menu->addChild(new JMenuNode(JText::_('Joomla! Help'), 'index.php?option=com_admin&task=help', 'class:help'));
        $menu->addChild(new JMenuNode(JText::_('System Info'), 'index.php?option=com_admin&task=sysinfo', 'class:info'));

        $menu->getParent();

شاد باشید و شادی بخش دیگران

سلامی مجدد من درhelper.php چنین کد هایی ندیدم!
کد:
<?php
/**
* @copyright    Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license        GNU General Public License version 2 or later; see LICENSE.txt
*/

// no direct access
defined('_JEXEC') or die;

/**
* @package        Joomla.Administrator
* @subpackage    mod_menu
* @since        1.5
*/
abstract class ModMenuHelper
{
    /**
     * Get a list of the available menus.
     *
     * @return    array    An array of the available menus (from the menu types table).
     * @since    1.6
     */
    public static function getMenus()
    {
        $db        = JFactory::getDbo();
        $query    = $db->getQuery(true);

        $query->select('a.*, SUM(b.home) AS home');
        $query->from('#__menu_types AS a');
        $query->leftJoin('#__menu AS b ON b.menutype = a.menutype AND b.home != 0');
        $query->select('b.language');
        $query->leftJoin('#__languages AS l ON l.lang_code = language');
        $query->select('l.image');
        $query->select('l.sef');
        $query->select('l.title_native');
        $query->where('(b.client_id = 0 OR b.client_id IS NULL)');
        //sqlsrv change
        $query->group('a.id, a.menutype, a.description, a.title, b.menutype,b.language,l.image,l.sef,l.title_native');

        $db->setQuery($query);

        $result = $db->loadObjectList();

        return $result;
    }

    /**
     * Get a list of the authorised, non-special components to display in the components menu.
     *
     * @param    boolean    $authCheck    An optional switch to turn off the auth check (to support custom layouts 'grey out' behaviour).
     *
     * @return    array    A nest array of component objects and submenus
     * @since    1.6
     */
    public static function getComponents($authCheck = true)
    {
        // Initialise variables.
        $lang    = JFactory::getLanguage();
        $user    = JFactory::getUser();
        $db        = JFactory::getDbo();
        $query    = $db->getQuery(true);
        $result    = array();
        $langs    = array();

        // Prepare the query.
        $query->select('m.id, m.title, m.alias, m.link, m.parent_id, m.img, e.element');
        $query->from('#__menu AS m');

        // Filter on the enabled states.
        $query->leftJoin('#__extensions AS e ON m.component_id = e.extension_id');
        $query->where('m.client_id = 1');
        $query->where('e.enabled = 1');
        $query->where('m.id > 1');

        // Order by lft.
        $query->order('m.lft');

        $db->setQuery($query);
        // component list
        $components    = $db->loadObjectList();

        // Parse the list of extensions.
        foreach ($components as &$component) {
            // Trim the menu link.
            $component->link = trim($component->link);

            if ($component->parent_id == 1) {
                // Only add this top level if it is authorised and enabled.
                if ($authCheck == false || ($authCheck && $user->authorise('core.manage', $component->element))) {
                    // Root level.
                    $result[$component->id] = $component;
                    if (!isset($result[$component->id]->submenu)) {
                        $result[$component->id]->submenu = array();
                    }

                    // If the root menu link is empty, add it in.
                    if (empty($component->link)) {
                        $component->link = 'index.php?option='.$component->element;
                    }

                    if (!empty($component->element)) {
                        // Load the core file then
                        // Load extension-local file.
                        $lang->load($component->element.'.sys', JPATH_BASE, null, false, false)
                    ||    $lang->load($component->element.'.sys', JPATH_ADMINISTRATOR.'/components/'.$component->element, null, false, false)
                    ||    $lang->load($component->element.'.sys', JPATH_BASE, $lang->getDefault(), false, false)
                    ||    $lang->load($component->element.'.sys', JPATH_ADMINISTRATOR.'/components/'.$component->element, $lang->getDefault(), false, false);
                    }
                    $component->text = $lang->hasKey($component->title) ? JText::_($component->title) : $component->alias;
                }
            } else {
                // Sub-menu level.
                if (isset($result[$component->parent_id])) {
                    // Add the submenu link if it is defined.
                    if (isset($result[$component->parent_id]->submenu) && !empty($component->link)) {
                        $component->text = $lang->hasKey($component->title) ? JText::_($component->title) : $component->alias;
                        $result[$component->parent_id]->submenu[] = &$component;
                    }
                }
            }
        }

        $result = JArrayHelper::sortObjects($result, 'text', 1, true, $lang->getLocale());

        return $result;
    }
}
[/php]
لینک مرجع