joomla2.5

How to use Joomla recaptcha plugin with my custom module?

萝らか妹 提交于 2019-11-27 12:23:58
I have created a custom module for my contactus form. Now I want to use Joomla recaptcha plugin with this module. Any idea how to get this done? Irfan In order to use joomla default recaptcha plugin follow these steps- 1)Get recaptcha keys from http://www.google.com/recaptcha 2)Set these keys to recaptcha plugin and activate it if it's not. 3)Put below code where you want to show recaptcha //php code JPluginHelper::importPlugin('captcha'); $dispatcher = JDispatcher::getInstance(); $dispatcher->trigger('onInit','dynamic_recaptcha_1'); //html code inside form tag <div id="dynamic_recaptcha_1"><

How to Save Uploaded File's Name on Database

£可爱£侵袭症+ 提交于 2019-11-27 06:21:47
问题 Cont. - Add File Uploader to Joomla Admin Component I could able to upload file and save it on disk. But its not saving file name on the database. How can i do it ? Here is the controller - class InvoiceManagerControllerInvoiceManager extends JControllerForm { function save(){ $file = JRequest::getVar('jform', null, 'files', 'array'); $path = JPATH_BASE; // Make the file name safe. jimport('joomla.filesystem.file'); $file['name']['invoice'] = JFile::makeSafe($file['name']['invoice']); // Move

Why should I keep my Joomla version up to date?

孤街浪徒 提交于 2019-11-27 05:41:21
When posting a question and referring to my Joomla version, I have always been told to update to the latest version. I don't see why updating is such a big deal. What are the benefits of updating? Lodder Whenever I see someone post a question and stating an old version of Joomla, usually, the first thing I say is "Upgrade to the latest version of Joomla (1.5.26, 2.5.26 or 3.3.5 depending what build you're on)". I shouldn't have to explain why upgrading to the latest version is important, but I will for those who have older or absolutely ancient versions. The 2 reasons for updating are: Fix

How to use Joomla recaptcha plugin with my custom module?

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-26 15:59:27
问题 I have created a custom module for my contactus form. Now I want to use Joomla recaptcha plugin with this module. Any idea how to get this done? 回答1: In order to use joomla default recaptcha plugin follow these steps- 1)Get recaptcha keys from http://www.google.com/recaptcha 2)Set these keys to recaptcha plugin and activate it if it's not. 3)Put below code where you want to show recaptcha //php code JPluginHelper::importPlugin('captcha'); $dispatcher = JDispatcher::getInstance(); $dispatcher-

Importing jQuery into Joomla

允我心安 提交于 2019-11-26 15:29:42
I have been a Joomla developer for almost an year now. I have been struggling to import jQuery into joomla everyday. Joomla comes with mootools. When I import jQuery it crashes. Also when I create modules I have to import jQuery into each module which makes to site slow. Sometimes it makes the whole site crashes. I want both mootools and jquery to work hand in hand so I can use both without any crashes. What's the best way to import jQuery into Joomla ? Is there a specific place where the import should be done to use one jquery library site-wide( both backend and frontend ) ? Thanks This is

Why should I keep my Joomla version up to date?

醉酒当歌 提交于 2019-11-26 12:49:24
问题 When posting a question and referring to my Joomla version, I have always been told to update to the latest version. I don\'t see why updating is such a big deal. What are the benefits of updating? 回答1: Whenever I see someone post a question and stating an old version of Joomla, usually, the first thing I say is "Upgrade to the latest version of Joomla (1.5.26, 2.5.26 or 3.3.5 depending what build you're on)". I shouldn't have to explain why upgrading to the latest version is important, but I

Importing jQuery into Joomla

ぐ巨炮叔叔 提交于 2019-11-26 04:27:22
问题 I have been a Joomla developer for almost an year now. I have been struggling to import jQuery into joomla everyday. Joomla comes with mootools. When I import jQuery it crashes. Also when I create modules I have to import jQuery into each module which makes to site slow. Sometimes it makes the whole site crashes. I want both mootools and jquery to work hand in hand so I can use both without any crashes. What\'s the best way to import jQuery into Joomla ? Is there a specific place where the