joomla-extensions

Joomla 3 Plugin Design

霸气de小男生 提交于 2020-01-26 04:16:20
问题 Does anybody know of any good references/tutorials for plugin/extension design for Joomla 3? I'm struggling to find up to date information. Specifically I want to make a plugin to extend the K2 registration functionality so information on how to integrate plugins with other Joomla extension would also be great! I'm reasonably proficient with php but I've only started to look at Joomla code so maybe that's worth considering! 回答1: For Joomla! specific information use the Joomla Docs website at

Tutorial code is not working any more in Joomla 2.5

淺唱寂寞╮ 提交于 2020-01-23 03:32:25
问题 I followed a tutorial from the Joomla developer wiki (http://docs.joomla.org/Developers#Developing_a_Model-View-Controller_.28MVC.29_Component_2) to create a Joomla component. It all worked fine in Joomla 1.7, but when I upgraded to Joomla 2.5 the checkboxes in the backend are not working any more. I checked the code from http://docs.joomla.org/Developing_a_Model-View-Controller_(MVC)_Component_for_Joomla!1.7_-_Part_09#Adding_a_toolbar in Joomla 2.5 extensions and the boxchecked hidden field

Joomla setRedirect doesn't work

会有一股神秘感。 提交于 2020-01-22 16:52:24
问题 I have a simple Joomla controller, but I can't redirect anything. According to the documentation: class MyController extends MyBaseController { function import() { $link = JRoute::_('index.php?option=com_foo&ctrl=bar'); $this->setRedirect($link); } } //The url contains & html escaped character instead of "&" This should work, but I get a malformed URL. Is there something I'm missing here? Why is Joomla converting all the "&" characters into & 's? How am I suppose to use setRedirect? Thank you

How to make file permissions and file ownership stick?

拜拜、爱过 提交于 2020-01-15 09:24:38
问题 I'm trying to figure out how I would go about setting permissions (and ownership) that will just stick for a directory and its recursive contents, when creating new files or folders. I'm using the XAMPP bundle under Ubuntu, which provides me with Apache (among other services). By default Apache using XAMPP is configured to run under user daemon and group daemon . I use the setgid bit to propagate the daemon group to newly created files and directories. I also use ACL because when a component

Errors while upgrading joomla 2.5 to 3.x.x

半世苍凉 提交于 2020-01-06 14:17:15
问题 I attempted to upgrade from joomla 2.5.11 to 3.2.3 which is latest right now. First of all I checked and upgraded all extensions - CB, k2, kunena, xmap (I did not upgrade xmap as I got errors so I left it, little one not important) to latest by going extensions manager -> update tab . Then going components-> joomla-> update update to 3.2.3. The update finished but I got an error about remember.php and could not access admin panel. Getting suggestions from Fatal error when updating joomla from

JFolder::create: Could not create directory - Joomla

北战南征 提交于 2019-12-30 08:32:18
问题 I end up with below error when I try to install a component,module or plugin. JFolder::create: Could not create directory What could be the issue? 回答1: Change the below variable to in your configuration file( configuration.php ) as shown. public $log_path = '/logs'; public $tmp_path = '/tmp'; Also make sure that these folder has the folder permission 755. Read more 回答2: Now I found two solutions for resolving this issue,and both of them has been worked very well: Solution One: First find the

How to use multiple models in joomla MVC Component

做~自己de王妃 提交于 2019-12-29 06:29:28
问题 I am using different model in joomla than view's own model that is similar to its name by assigning it from controller, like: $view->setModel($this->getModel('user')); Now how can I use its method getSingleUser($user_id) in view. In an example in joomla documentation , it is using is some thing like this: $this->get("data1","model2"); So I assume data1 is name of method in model2? If so then how can I pass argument that is userid in my case. I know this is easy thing that many of joomla

How to use multiple models in joomla MVC Component

孤者浪人 提交于 2019-12-29 06:29:07
问题 I am using different model in joomla than view's own model that is similar to its name by assigning it from controller, like: $view->setModel($this->getModel('user')); Now how can I use its method getSingleUser($user_id) in view. In an example in joomla documentation , it is using is some thing like this: $this->get("data1","model2"); So I assume data1 is name of method in model2? If so then how can I pass argument that is userid in my case. I know this is easy thing that many of joomla

Run custom php code in joomla module backend page

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-25 07:20:33
问题 i am using Joomla 2.5 , I am working on a module .My module loads some javascripts in frontend. I want to run few php code in backend, when admin click on save button. How to do that? 回答1: You can write a plugin that uses the event trigger onBeforeSave, then when you hit the save button, the plugin is run. You can do any validation on the data sent by post, if it fails just return false and you will return to your form. You can see some documentation on how to do this here: http://docs.joomla

How to remove a single product from mod_virtuemart_cart

一世执手 提交于 2019-12-25 04:23:00
问题 I've found the solution by the link http://forum.virtuemart.net/index.php?topic=127483.0 from Virtuemart Projectleader: if (!class_exists('VirtueMartCart')) require(VMPATH_SITE . DS . 'helpers' . DS . 'cart.php'); $cart = VirtueMartCart::getCart(); $cart->removeProductCart($yourId); but it doesn't work. I tried to replace DS with DIRECTORY_SEPARATOR because I use Joomla 3.x but nothing changed At the same time $cart->emptyCart() works Joomla 3.3.6, VM 3.0.3 回答1: This is my solutions function