Giter VIP home page Giter VIP logo

joomla-override's People

Contributors

haydenyoung avatar juliopontes avatar kris-sum avatar nicksavov avatar phproberto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

joomla-override's Issues

Joomla 2.5 Support

/administrator/index.php?option=com_plugins&view=plugins

On activation see the following notices:

Notice: Undefined variable: option in /plugins/system/joomlaoverride/core/controller/controller.php on line 84

Notice: Undefined variable: option in /plugins/system/joomlaoverride/core/controller/controller.php on line 84

Load correct models

Add ability to have plugin look for administrator models while in site. Some
component (e.g. K2) use administrator models for "Edit Button", which required to load admin models rather than frontend models.

Joomla 3.x and error 0

I try to override the login function from com_users components but i receive "Error 0" without any other information. I copied from components\com_users\controllers\user.php in my template folder into code\com_users\controllers\user.php and i modified it. Missing something?

not compatible with joomla 3.8

after upgrade to j3.8.0 the plugin causes a problem due to changed include paths.
error thrown is:
Call to undefined method Joomla\CMS\Helper\ModuleHelper::addIncludePath()

Joomla 2.5: Cannot redeclare class ContentModelArticles

In Joomla 2.5 on home page receiving the following error:

Fatal error: Cannot redeclare class ContentModelArticles in /components/com_content/models/articles.php on line 596

My articles.php:

class ContentModelArticles extends ContentModelArticlesDefault
{
}

On category page it works perfectly.

Cannot reference $this

Seeing the above error in latest master due to $this being referenced outside an instantiated class (around line 27 in joomlaoverride.php).

Loaded the plugin params via the jpluginhelper class instead which rectified the problem:

$plugin = JPluginHelper::getPlugin('system', 'joomlaoverride');
$pluginParams = new JRegistry($plugin->params);
$customPath = JPath::clean($pluginParams->get('global_path','override'));

Cheers

Hayden

LIB_JModuleHelperDefault fatal error on J 3.2.1

The plugin is already being used on a Joomla 3.1.5 site. When upgraded to Joomla 3.2.1 comes the white screen of death. The Apache error log shows a fatal error:

"Class 'LIB_JModuleHelperDefault' not found" apontando para "plugins/system/joomlaoverride/core/module/helper.php on line 13"

Disabling the plugin on the database makes the site work again.

Conflict with Advanced Module Manager

The plugin breaks when AMM by NoNumber is installed. I believe that this is due to your recent additions of module overrides. I'd like to try the earlier version that did not provide for module overrides. Perhaps you'd be kind enough to repost that one?

Regards,

John Whelan

Syntax error on loader.php

Hi, I'm using jomla 2.5.14 and when I activate the plugin, I get this error:

Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /my_address/plugins/system/joomlaoverride/core/loader.php on line 2

Does not work with T3 Framework

Hello, if enabled on a T3 Framework Joomla! installation generates the following error:

( ! ) Fatal error: Call to undefined method JModuleHelper::addIncludePath() in plugins/system/joomlaoverride/helper/codepool.php on line 187

Is there any solution?

Module Class Suffix bug

Hi, In Joomla 3.0.2 Stable with Protostart template, Module Style "html5", Module tag "div", It generates module classes without "moduletable" prefix. For modules located in "right" position (position-7) It is always adding the "well" BS class too. For modules located in "breadcrumbs" position (position-2) no div is rendered.
Best regards

Syntax error, unexpected T_FUNCTION in loader.php

Hi, I'm using Joomla! 2.5.20 and when I activate the plugin, I get this error:

Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /home/u432683545/public_html/j25/plugins/system/joomlaoverride/core/loader.php on line 2

http://bit.ly/1klEeDb

I think its due to this anonymous function, but I am not sure....might be due to PHP version 5.2.17.

Cannot use non-default template for any menu item

To reproduce:

  • Fresh install of Joomla 3.2.1
  • Default site template set to protostar
  • Create a home menu item (if not already available)
  • Open Beez3 and assign home menu item to this template (using Template's Menu Assignment)

View the site home page. Beez3 loads instead of default protostar (correct outcome).

Install Joomla Override master code from this repository and enable plugin.

Reload home page. Default protostar template is loaded instead of Beez3 (incorrect outcome).

Disable Joomla Override from plugin manager. Refresh home page. Beez3 will load correctly again.

This issue occurs for other menu items as well; a category blog menu item assigned to Beez3 will load protostar when Joomla Override is enabled.

Changing the load order of system plugins does nothing (moved to first then last but still the default template was loaded).

Cheers

Hayden

Module chromes doesn't work when plg enabled

Joomla 3.2.3.

Module chromes defined in template (modules.php) no longer apply when plugin is enabled, specifically chrome for mod_menu.
In the administrator site there is no changes, but in the site all chromes are reverted to "html5" chrome.

Error on model override

Hi,
thank you so much for this plugin, it is very very useful!

I have a problem in custom model classes. For example, I put my custom model of virtuemart orders into code folder, and I get this error message:

 PHP Notice:  Use of undefined constant JPATH_VM_ADMINISTRATOR - assumed 'JPATH_VM_ADMINISTRATOR' in /var/www/mywebsite/plugins/system/joomlaoverride/helper/override.php(116) : eval()'d code on line 25

and connected Warning and Fatal errors.

What do you think about?

Fatal error: Cannot redeclare class ContentModelArticles

Joomla 3.3.1

I am trying to override /components/com_content/models/articles.php

Created /override/com_content/models/articles.php

defined('_JEXEC') or die;

class ContentModelArticles extends ContentModelArticlesDefault
{
    protected function getListQuery()
    {
        return parent::getListQuery();
    }
}

Created "Featured Articles" menu item.

Receiving the following error:
Fatal error: Cannot redeclare class ContentModelArticles in /components/com_content/models/articles.php on line 680

Not overriding component main file

Hi,

I am trying to set up overrides on the Media Manager component.
I have done the following:

  • Install and enable latest Github version of plugin
  • Created folder override/com_media
  • Changed the plugin params to match the Global Override folder (e.g.: override)
  • Placed a modified version of media.php in the override/com_media folder

Somehow my changes are not visible in the site itself. When I put the changes in the original media.php file, it works fine.

I used to work with the JED version of the plugin, Plugin Override (http://extensions.joomla.org/extensions/style-a-design/templating/15611) , and that didn't seem to work either.

Oh, little detail: I am aware that I am changing the front-end version of com_media. :-)

Any suggestions?

Apart from that: fantastic plugin that should be part of the Joomla core! Big time-saver when updating customized components/modules!

issue with K2: the parent class cose is executed after the overriding class

Hello again, I tested it also with K2 trying to override the view K2ViewItemlist.

I put the code in templates/mytemplate/code/com_k2/views/view.html.php and the code is executed, but then it is executed also the code of the core class.

Is it a normal behavior? I expected it was executed only the overrider class in templates/mytemplate/code/com_k2/views/view.html.php path.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.