joomla2.5

Add a new view to a custom Joomla component

人盡茶涼 提交于 2019-12-11 15:44:23
问题 I'm trying to add a new view to my custom component. I've followed this post but the instructions are not quite clear to me. This is what I did: I copied the structure of my other view (called plandetails) So now I have: site controllers helpers language models views controller.php billingdetails.php //new controller plandetails.php //previous controller plandetails //previous view tmpl default.php metadata.xml view.html.php billingdetails //new view tmpl default.php view.html.php I changed

Joomla component how to avoid refilling the password field

霸气de小男生 提交于 2019-12-11 14:06:10
问题 protected function postSaveHook(JModel &$model, $validData = array()) { // Get a handle to the Joomla! application object $application = JFactory::getApplication(); $date = date('Y-m-d H:i:s'); if($validData['date_created'] == '0000-00-00 00:00:00'){ $data['date_created'] = $date; } $data['date_modified'] = $date; $user = JFactory::getUser(); if($validData['user_created'] == 0){ $data['user_created'] = $user->id; } $data['user_modified'] = $user->id; //$password = md5($this->form->getValue(

Custom cursor with .less

那年仲夏 提交于 2019-12-11 11:39:14
问题 I am using Joomla 2.5 with a Gantry-powered theme. I am trying to build a custom text type with .less, and I am way out of my depth. The text is clickable, and that plays an audio file. Now I am looking for a clean way to be able to change the text attributes site-wide without editing every article every time. I am trying to make a custom class in a .less file that will change the mouse cursor on hover, but I can't get it to work at all. Here is how I set up the audio: <audio type="audio/mpeg

Joomla! 2.5 language file - translate description

江枫思渺然 提交于 2019-12-11 10:30:37
问题 I create a new plugin for joomla 2.5, and in xml i use: <description>PLG_VAR_DESC</description> But when install, he dont show the the translation but the var on file. <languages folder=""> <language tag="en-GB">en-GB.plg_system_name.ini</language> <language tag="en-GB">en-GB.plg_system_name.sys.ini</language> </languages> <files> <folder>images</folder> <filename>index.html</filename> <filename>parameters.xml</filename> <filename plugin="plg_name">plg_name.php</filename> </files> I try

Upgrading to Google Fusion Tables to Google API V.1

流过昼夜 提交于 2019-12-11 10:19:59
问题 I am upgrading a joomla component i once made for google fusion tables. I downloaded the new php api. But I have some doubts about how I should develop my site and some things with oauth. So my site reads the fusion tables and allows my (Joomla) users to change, delete or add data to any of those tables. So my question is, do I need a client login that is a web application type or a service account. It seems more logically to use the service account. If so how do I connect using php and the

uninstalling joomla package not uninstalling all child extensions

时光总嘲笑我的痴心妄想 提交于 2019-12-11 09:57:52
问题 I created a joomla package including all component and module zips inside packages folder of the package. all required settings in package xml file as follows - <extension type="package" version="2.5" method="upgrade"> ........ <packagename>mypackage</packagename> ........ <files folder="packages"> <filename type="module" id="mypackage">Ajax-Session-Module-master.zip</filename> <filename type="component" id="mypackage">component-develop.zip</filename> </files> ....... When i install package,

500 :: Error 500 in joomla login module

Deadly 提交于 2019-12-11 09:29:27
问题 i'm getting 500 :: Error 500 in joomla login module. When the password or username is typed wrongly(only in the server). This is the link of the live project http://bluepink.co.in/login but error message is displayed in the localhost. And Having problem with User mail activation link. Users are not activated when the activation link is clicked. Using Joomla 2.5 and Virtuemart. I have enabled htaccess. 回答1: This may happen due to the temp directory path or log directory invalid path. check the

why does joomla 2.5 session table corrupt?

五迷三道 提交于 2019-12-11 09:05:13
问题 I am running a website using Joomla! 2.5.9 for 7 months. Everything was going fine until this week. On monday and today(Friday) web site fails to run because of ****_session table has been broken down. I don't have a chance to take a look at logs about what is wrong. Anyway, I repaired the table on Monday and everything was normal until today. Today it repeated the same error. Then I repaired again. I don't want the table to be broken and don't want to repair it again. I want to know if there

Is is possible to use joomla 3 modules on joomla 2.5?

自古美人都是妖i 提交于 2019-12-11 08:07:06
问题 Is there any way to use Joomla! 3 extensions on J!2.5 ? I need to use Noo Timeline on Joomla! 2.5 but there is no version for it. http://extensions.joomla.org/extensions/calendars-a-events/time/content-date-a-time/25732 Best regards, 回答1: Change below codes in below files In modules/mod_noo_timeline/elements/nootimeline.php Line no: 25 Change JHtml::_('jquery.ui', array('core','sortable')); To: $document = JFactory::getDocument(); $document->addScript("//ajax.googleapis.com/ajax/libs/jquery/1

Cannot access protected property JException::$code

≡放荡痞女 提交于 2019-12-11 07:27:50
问题 Fatal error: Cannot access protected property JException::$code in /.../templates/abrax/error.php on line 14 Lines 14-17: if (($this->error->code) == '404') { header('Location: http://www.example.com/404'); exit; } 回答1: Use getters, you can't access property directly because it's visibility is not public Like if (($this->error->getCode()) == '404') { ... 回答2: try this if ($this->_error->get('code') == '404') { header('Location: http://www.example.com/404'); exit; } 来源: https://stackoverflow