Joomla

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

(Joomla 2.5) JAuthentication: :__construct: Could not load authentication libraries

。_饼干妹妹 提交于 2020-01-26 03:24:08
问题 I know it is duplicate of this JAuthentication: :__construct: Could not load authentication libraries question but the answer there couldn't help me. What I have done is accidentally disabled Joomla - Authentication plugin in my site's back end. It's been two days I've been trying to solve this problem by browsing on internet. I found most people's problems were solved by enabling plg_authentication_joomla in PhpMyAdmin. Some forums instruct to change permission of tmp,logs,cache and

(Joomla 2.5) JAuthentication: :__construct: Could not load authentication libraries

删除回忆录丶 提交于 2020-01-26 03:24:07
问题 I know it is duplicate of this JAuthentication: :__construct: Could not load authentication libraries question but the answer there couldn't help me. What I have done is accidentally disabled Joomla - Authentication plugin in my site's back end. It's been two days I've been trying to solve this problem by browsing on internet. I found most people's problems were solved by enabling plg_authentication_joomla in PhpMyAdmin. Some forums instruct to change permission of tmp,logs,cache and

Prevent joomla api to log deprecated warning

◇◆丶佛笑我妖孽 提交于 2020-01-25 07:38:04
问题 I have joomla 2.5 which log many deprecated warnings like Error::raiseNotice() is deprecated. So I result width a big log file. Can I turn off this option, and log just my own exceptions? 回答1: You can always place an error reporting condition in your index.php like: error_reporting(E_ALL ^ E_DEPRECATED); For more info: http://php.net/manual/en/function.error-reporting.php Or you can edit error.php in your joomla directory, and public static function raiseNotice($code, $msg, $info = null) { //

/var/php_sessions not being recognized

六月ゝ 毕业季﹏ 提交于 2020-01-24 22:45:32
问题 I'm trying to set up Joomla as a CMS for a web site I made. I have the site hosted with Globat. When I try to install Joomla, I get this message. Warning: Unknown: open(/var/php_sessions/sess_cc24fb3a1ba0e66a653237dd88762ac6, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/php_sessions) in Unknown on line 0 I checked the PHP ini file for the

Joomla - Where is the code in K2 which saves a new item's Title and alias

白昼怎懂夜的黑 提交于 2020-01-24 15:06:08
问题 I have looked every where in the administrator\components\com_k2 folder but am not able to find the code that saves a new item\article in K2. I checked the item.php file under models folder. No luck. I need to override the K2 item save method. I need a know the exact method that saves the Item's title and alias into the #__K2_content table. I have to duplicate the K2 items in joomla articles on save and remove on trash/delete. I have successfully been able to override the K2 core code. But am

Joomla 2.5 Custom Field List not SELECTED in display

て烟熏妆下的殇ゞ 提交于 2020-01-24 08:48:29
问题 I have a created a custom field type in my components "/models/fields/time.php" with the following php: defined('JPATH_BASE') or die; jimport('joomla.form.formfield'); class JFormFieldTime extends JFormField { protected $type = 'time'; public function getInput() { return '<select id="'.$this->id.'" name="'.$this->name.'">'. '<option value="08:00:00" > 8:00 AM</option>'. '<option value="09:30:00" > 9:30 AM</option>'. '</select>'; } } and my course.xml (/models/forms/course.xml) as such: <field

Joomla 2.5 Custom Field List not SELECTED in display

空扰寡人 提交于 2020-01-24 08:48:07
问题 I have a created a custom field type in my components "/models/fields/time.php" with the following php: defined('JPATH_BASE') or die; jimport('joomla.form.formfield'); class JFormFieldTime extends JFormField { protected $type = 'time'; public function getInput() { return '<select id="'.$this->id.'" name="'.$this->name.'">'. '<option value="08:00:00" > 8:00 AM</option>'. '<option value="09:30:00" > 9:30 AM</option>'. '</select>'; } } and my course.xml (/models/forms/course.xml) as such: <field

Joomla 3.2 Grouped List Custom Field List doesn't have SELECTED value

只愿长相守 提交于 2020-01-23 18:01:08
问题 I am trying to create a custom field form for template parameter for Joomla 3, by following instruction from this page Creating a custom form field type Here are my codes : class JFormFieldMy extends JFormField { protected $type = 'my'; public function getInput() { return '<select id="'.$this->id.'" name="'.$this->name.'">'. '<optgroup label="First">'. '<option value="1">One</option>'. '<option value="2">Two</option>'. '<option value="3">Three</option>'. '</optgroup>'. '<optgroup label=

Best way to prevent SQL injections in Joomla

烂漫一生 提交于 2020-01-23 06:20:29
问题 I take variables from POST method and query them on MySQL with Joomla 2.5. What is the most secured method to use ? Currently I'm using JRequest::getVar with mysql_real_escape_string. Is it correct ? $_POST with mysql_real_escape_string $password = mysql_real_escape_string($_POST["pwd"])); JRequest::getVar with mysql_real_escape_string $password= mysql_real_escape_string(JRequest::getVar('pwd', '', 'post')); JRequest::getVar $password= JRequest::getVar('pwd', '', 'post'); JInput $password =